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

Question: What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
SQL: SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='2:41:38.4' AND "laps">40;

Question: Which constructor had laps amounting to more than 21 where the driver was John Surtees?
SQL: SELECT "constructor" FROM "classification" WHERE "laps">21 AND "driver"='john surtees';

Question: How many laps did Jo Bonnier driver when the grid number was smaller than 11?
SQL: SELECT SUM("laps") FROM "classification" WHERE "driver"='jo bonnier' AND "grid"<11;

Question: How many laps were there when time/retired was gearbox?
SQL: SELECT SUM("laps") FROM "classification" WHERE "time_retired"='gearbox';