CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);

Question: What is the earliest year with fewer than 5 wins and 89 points?
SQL: SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<5 AND "points"=89;

Question: When is the most recent year with more than 27 points and more than 5 wins?
SQL: SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "points">27 AND "wins">5;

Question: What are the sum of points in 1989 with 0 wins?
SQL: SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "year"=1989;

Question: Which class has fewer than 89 points and the Honda team later than 1987?
SQL: SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "points"<89 AND "team"='honda' AND "year">1987;

Question: How many points are there later than 1992?
SQL: SELECT COUNT("points") FROM "motorcycle_grand_prix_results" WHERE "year">1992;