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

Question: What is the lowest wins with points larger than 46, and a rank of 10th?
SQL: SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "points">46 AND "rank"='10th';

Question: What is the average points with a year higher than 1989, and a rank of 7th?
SQL: SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "year">1989 AND "rank"='7th';

Question: What is the year that has points larger than 20?
SQL: SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "points">20;

Question: What is year that has points larger than 46, and a rank of 6th?
SQL: SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "points">46 AND "rank"='6th';

Question: What earliest year with points larger than 68 and a rank of 7th?
SQL: SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "points">68 AND "rank"='7th';