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

Question: Wins smaller than 0 had what sum of year?
SQL: SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;

Question: Class of 125cc, and a Year smaller than 1966 had what lowest wins?
SQL: SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "year"<1966;

Question: Class of 500cc, and a Wins smaller than 0 had what average year?
SQL: SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "wins"<0;