CREATE TABLE "municipalities" (
  "municipality" text,
  "inhabitants" real,
  "mayor" text,
  "party" text,
  "election" real
);

Question: How many elections had more than 36,599 inhabitants when Mayor was giovanni manildo?
SQL: SELECT COUNT("election") FROM "municipalities" WHERE "inhabitants">'36,599' AND "mayor"='giovanni manildo';

Question: What party was achille variati afilliated with?
SQL: SELECT "party" FROM "municipalities" WHERE "mayor"='achille variati';

Question: In the election earlier than 2012 how many Inhabitants had a Party of five star movement?
SQL: SELECT SUM("inhabitants") FROM "municipalities" WHERE "party"='five star movement' AND "election"<2012;

Question: How many Inhabitants were in the democratic party for an election before 2009 for Mayor of stefano cimatti?
SQL: SELECT COUNT("inhabitants") FROM "municipalities" WHERE "party"='democratic party' AND "mayor"='stefano cimatti' AND "election"<2009;