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

Question: what is the sum of laps when grid is less than 20 and johnny herbert is driving?
SQL: SELECT SUM("laps") FROM "race" WHERE "grid"<20 AND "driver"='johnny herbert';

Question: who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
SQL: SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "time_retired"='+1:06.683';

Question: who is the driver when grid is 11?
SQL: SELECT "driver" FROM "race" WHERE "grid"=11;