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

Question: How many laps did ben spies do on the grid less than 7?
SQL: SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid"<7 AND "rider"='ben spies';

Question: which grid did less than 20 laps in a time of +58.353?
SQL: SELECT MIN("grid") FROM "moto_gp_classification" WHERE "time"='+58.353' AND "laps"<20;

Question: what was valentino rossi's rider time?
SQL: SELECT "time" FROM "moto_gp_classification" WHERE "rider"='valentino rossi';