The three Democratic candidates for governor have sparred on everything from casinos and health care to President Obama's legacy in a televised debate.

During the hour-long face-off Attorney General Martha Coakley, state Treasurer Steve Grossman and former federal health care official Donald Berwick tried to sway voters with less than a week left to campaign before Primary Day.

In one of the sharper exchanges, Berwick asked Coakley how she'll avoid the mistakes that cost her the 2010 special U.S. Senate election against Republican Scott Brown. Coakley said she's had more time to put together a stronger political organization now.

The winner of the Democratic primary will face off against the victor of the Republican primary pitting Charlie Baker, the former Harvard Pilgrim CEO, against tea party-affiliated businessman Mark Fisher.

The primary elections are next Tuesday.