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

Question: Which driver had a grid number of 10?
SQL: SELECT "driver" FROM "race" WHERE "grid"=10;

Question: Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
SQL: SELECT "constructor" FROM "race" WHERE "grid"<3 AND "time_retired"='1:34:31.522';

Question: Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?
SQL: SELECT "constructor" FROM "race" WHERE "time_retired"='collision' AND "grid"<18 AND "driver"='nick heidfeld';