CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);

Question: Which Laps have a Grid larger than 8, and a Rider of anthony west?
SQL: SELECT MAX("laps") FROM "moto_gp_classification" WHERE "grid">8 AND "rider"='anthony west';

Question: Which time has a Rider of anthony west?
SQL: SELECT "time" FROM "moto_gp_classification" WHERE "rider"='anthony west';

Question: Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?
SQL: SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='colin edwards' AND "laps"<28;

Question: Which Laps have a Rider of andrea dovizioso?
SQL: SELECT MIN("laps") FROM "moto_gp_classification" WHERE "rider"='andrea dovizioso';