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

Question: What was the time of the driver who had a grid of 22?
SQL: SELECT "time_retired" FROM "race" WHERE "grid"='22';

Question: What is the construction of Olivier Panis' car that retired due to a collision?
SQL: SELECT "constructor" FROM "race" WHERE "time_retired"='collision' AND "driver"='olivier panis';

Question: Which driver retired from a collision after 41 laps?
SQL: SELECT "driver" FROM "race" WHERE "time_retired"='collision' AND "laps"='41';

Question: Who retired at lap 77 and was grid 11?
SQL: SELECT "time_retired" FROM "race" WHERE "laps"='77' AND "grid"='11';