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

Question: How many laps for a grid larger than 1 with a Time/Retired of halfshaft?
SQL: SELECT "laps" FROM "classification" WHERE "grid">1 AND "time_retired"='halfshaft';

Question: What is the average grid that has over 8 laps, a Time/Retired of +2 laps, and peter gethin driving?
SQL: SELECT AVG("grid") FROM "classification" WHERE "laps">8 AND "time_retired"='+2 laps' AND "driver"='peter gethin';

Question: What is the low grid that has brm and over 54 laps?
SQL: SELECT MIN("grid") FROM "classification" WHERE "constructor"='brm' AND "laps">54;