Table: ontario_politics
Columns: party
1985
1987
1990
1995
1999
2003
2007
2011

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 ontario_politics 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 ontario_politics 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 ontario_politics 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 ontario_politics 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 ontario_politics WHERE "2011" < 107 AND "1995" < 17