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

Question: How many laps did mike spence complete grids above 12?
SQL: SELECT COUNT("laps") FROM "classification" WHERE "driver"='mike spence' AND "grid">12;

Question: How many average laps did brm complete in grids larger than 12?
SQL: SELECT AVG("laps") FROM "classification" WHERE "constructor"='brm' AND "grid"=12;

Question: Who drove in grids more than 3 and exited in an accident?
SQL: SELECT "driver" FROM "classification" WHERE "grid">3 AND "time_retired"='accident';

Question: In what grid did jim clark drive in?
SQL: SELECT "grid" FROM "classification" WHERE "driver"='jim clark';