CREATE TABLE "composition" (
  "party" text,
  "1999_election" real,
  "2003_election" real,
  "2007_election" real,
  "may_2010" real,
  "2011_election" real,
  "may_2012" real
);

Question: Which election, in 2003 had the lowest turnout, but also had 57 in 1999 and less then 54 in 2007?
SQL: SELECT MIN("2003_election") FROM "composition" WHERE "1999_election"=57 AND "2007_election"<54;

Question: What is the total of the 2003 election but also had 5 in May 2010 and also less than 6 in 1999?
SQL: SELECT SUM("2003_election") FROM "composition" WHERE "may_2010"=5 AND "1999_election"<6;

Question: In May 2010, which party had a turnout of less than 3, but also the hightest turnout in May 2012?
SQL: SELECT MAX("may_2012") FROM "composition" WHERE "may_2010"<3;

Question: What average election in 2003 had an election greater then 6 in 1999 and less then 7 in 2007?
SQL: SELECT AVG("2003_election") FROM "composition" WHERE "1999_election">6 AND "2007_election"<7;