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?
CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
SELECT MIN("1988_89") FROM "relegation" WHERE "average">0.965 AND "1987_88"='40' AND "1986_87"='49' AND "points">123;