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

Question: What is the average year that has a win less than 1, yamaha as the team, with points greater than 2?
SQL: SELECT AVG("year") FROM "grand_prix_motorcycle_racing_results" WHERE "wins"<1 AND "team"='yamaha' AND "points">2;

Question: What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979?
SQL: SELECT MAX("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='350cc' AND "team"='yamaha' AND "points"<37 AND "year">1979;

Question: How many points have 500cc for the class, a win greater than 0, with a year after 1974?
SQL: SELECT SUM("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "wins">0 AND "year">1974;

Question: How many wins have a year after 1976, and 350cc as the class?
SQL: SELECT SUM("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "year">1976 AND "class"='350cc';