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

Question: with a Time/Retired of +47.376 what is the lap sum?
SQL: SELECT SUM("laps") FROM "moto_gp_classification" WHERE "time_retired"='+47.376';

Question: with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
SQL: SELECT MAX("laps") FROM "moto_gp_classification" WHERE "rider"='marco melandri' AND "grid"<10;

Question: with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
SQL: SELECT MIN("grid") FROM "moto_gp_classification" WHERE "rider"='sylvain guintoli' AND "laps">32;