CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);

Question: What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?
SQL: SELECT MIN("1988_89") FROM "relegation" WHERE "average">0.965 AND "1987_88"='40' AND "1986_87"='49' AND "points">123;

Question: What is Played, when Points is less than 107, and when 1987-88 is "31"?
SQL: SELECT "played" FROM "relegation" WHERE "points"<107 AND "1987_88"='31';

Question: What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?
SQL: SELECT MIN("1988_89") FROM "relegation" WHERE "points">130 AND "1987_88"='37' AND "played"<114;

Question: What is 1987-88, when Points is "136"?
SQL: SELECT "1987_88" FROM "relegation" WHERE "points"=136;