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

Question: What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
SQL: SELECT AVG("laps") FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='olivier panis' AND "grid">4;

Question: What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
SQL: SELECT "constructor" FROM "race" WHERE "laps"<62 AND "time_retired"='gearbox' AND "grid">1 AND "driver"='pedro diniz';

Question: What is the time/retired with 60 laps and a grid 19?
SQL: SELECT "time_retired" FROM "race" WHERE "laps"=60 AND "grid"=19;