CREATE TABLE "relegation_table" (
  "team" text,
  "1982" text,
  "1983" text,
  "1984" real,
  "total_points" real,
  "seasons" real,
  "points_average" real
);

Question: What is the total for 1984 for the team with 100 points total and more than 3 seasons?
SQL: SELECT SUM("1984") FROM "relegation_table" WHERE "total_points"=100 AND "seasons">3;

Question: What is the points total for the team with points average more than 34, 1984 score more than 37 and N/A in 1982?
SQL: SELECT COUNT("total_points") FROM "relegation_table" WHERE "1982"='n/a' AND "points_average">34 AND "1984">37;

Question: What team had 3 seasons and fewer than 27 in 1984?
SQL: SELECT "team" FROM "relegation_table" WHERE "seasons"=3 AND "1984"<27;

Question: What is the number of seasons for the team with a total fewer than 24?
SQL: SELECT SUM("seasons") FROM "relegation_table" WHERE "total_points"<24;