CREATE TABLE "town_councils" (
  "town" text,
  "fianna_f_il" real,
  "fine_gael" real,
  "labour_party" real,
  "green_party" real,
  "total" real
);

Question: What is the lowest number in the Labour Party for the Fianna Fail higher than 5?
SQL: SELECT MIN("labour_party") FROM "town_councils" WHERE "fianna_f_il">5;

Question: How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party?
SQL: SELECT SUM("labour_party") FROM "town_councils" WHERE "fianna_f_il"=3 AND "total">9 AND "green_party">2;

Question: How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less than 2 in Athy?
SQL: SELECT SUM("green_party") FROM "town_councils" WHERE "fine_gael"<4 AND "fianna_f_il"<2 AND "town"='athy';