Table: tuscany_politics
Columns: municipality
inhabitants
mayor
party
election

Question: What is livorno's average election?
SQL: SELECT AVG("election") FROM tuscany_politics WHERE "municipality" = 'livorno'

Question: Which Election has a Party of democratic party, and a Mayor of leonardo betti?
SQL: SELECT MAX("election") FROM tuscany_politics WHERE "party" = 'democratic party' AND "mayor" = 'leonardo betti'

Question: Which Inhabitants have a Mayor of matteo renzi, and an Election larger than 2009?
SQL: SELECT MIN("inhabitants") FROM tuscany_politics WHERE "mayor" = 'matteo renzi' AND "election" > 2009

Question: Which Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009?
SQL: SELECT MIN("inhabitants") FROM tuscany_politics WHERE "party" = 'democratic party' AND "municipality" = 'florence' AND "election" < 2009