CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);

Question: How many laps were driven in 2:54:23.8?
SQL: SELECT SUM("laps") FROM "classification" WHERE "time_retired"='2:54:23.8';

Question: Which constructor has laps less than 100 and a time/retired +10 laps?
SQL: SELECT "constructor" FROM "classification" WHERE "laps"<100 AND "time_retired"='+10 laps';

Question: What are the highest number of laps for grid 8?
SQL: SELECT MAX("laps") FROM "classification" WHERE "grid"=8;

Question: Which grid is the highest and has a time/retired of +0.3?
SQL: SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+0.3';

Question: Which driver for Maserati has more laps than 23 and a grid greater than 7?
SQL: SELECT "driver" FROM "classification" WHERE "constructor"='maserati' AND "laps">23 AND "grid">7;