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

Question: What points have 500cc as a class, and nsr500 as a machine?
SQL: SELECT "points" FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "machine"='nsr500';

Question: How many years have 78 for points?
SQL: SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "points"=78;

Question: What class has nsr250 as the machine, with points greater than 97?
SQL: SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "machine"='nsr250' AND "points">97;

Question: What is the lowest year that have wins greater than 0?
SQL: SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0;

Question: What are the highest points that have a year less than 1992, with wins less than 0?
SQL: SELECT MAX("points") FROM "motorcycle_grand_prix_results" WHERE "year"<1992 AND "wins"<0;