CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);

Question: What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
SQL: SELECT MAX("1987") FROM "elections_to_the_legislative_assembly_of" WHERE "1995"<1995 AND "1999"<9;

Question: What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
SQL: SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">74 AND "1985"=125 AND "1995">130;

Question: What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
SQL: SELECT MAX("2007") FROM "elections_to_the_legislative_assembly_of" WHERE "1985">52 AND "1987">130 AND "1990"<1990;

Question: What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
SQL: SELECT MAX("1995") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">36 AND "1987"<1987 AND "2007">107;

Question: What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
SQL: SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "2011"<107 AND "1995"<17;