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

Question: What is the lowest Points, when Class is 50cc, when Year is 1965, and when Wins is less than 0?
SQL: SELECT MIN("points") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "year"=1965 AND "wins"<0;

Question: What is the total number of Year, when Wins is less than 0?
SQL: SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;

Question: What is the sum of Points, when Year is after 1959, and when Class is 250cc?
SQL: SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "year">1959 AND "class"='250cc';

Question: What is the total number of Wins, when Points is less than 1?
SQL: SELECT COUNT("wins") FROM "motorcycle_grand_prix_results" WHERE "points"<1;

Question: What is the sum of Wins, when Year is 1959?
SQL: SELECT SUM("wins") FROM "motorcycle_grand_prix_results" WHERE "year"=1959;