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

Question: Tell me the total number of years for wins less than 2 and class of 50cc with points of 15
SQL: SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<2 AND "class"='50cc' AND "points"=15;

Question: Tell me the year for class of 125cc
SQL: SELECT "year" FROM "motorcycle_grand_prix_results" WHERE "class"='125cc';

Question: Tell me the average wins for class of 50cc and rank of 8th
SQL: SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "rank"='8th';

Question: Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969
SQL: SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "team"='tomos' AND "year"<1969;