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

Question: Which driver has a grid value of 22?
SQL: SELECT "driver" FROM "race" WHERE "grid"='22';

Question: What is the value of time/retired for Jean Alesi?
SQL: SELECT "time_retired" FROM "race" WHERE "driver"='jean alesi';

Question: When the time/retired is electrical how many laps did Rubens Barrichello have?
SQL: SELECT "laps" FROM "race" WHERE "time_retired"='electrical' AND "driver"='rubens barrichello';

Question: How many laps did Eddie Irvine have?
SQL: SELECT "laps" FROM "race" WHERE "driver"='eddie irvine';