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

Question: what is the grid when the driver is pierre levegh?
SQL: SELECT "grid" FROM "race" WHERE "driver"='pierre levegh';

Question: what is the grid when the laps is 2?
SQL: SELECT "grid" FROM "race" WHERE "laps"=2;

Question: what is the time/retired when the driver is toulo de graffenried?
SQL: SELECT "time_retired" FROM "race" WHERE "driver"='toulo de graffenried';

Question: what is the time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12?
SQL: SELECT "time_retired" FROM "race" WHERE "grid"<13 AND "constructor"='alfa romeo' AND "laps">12;

Question: what is the grid when the laps is more than 20?
SQL: SELECT SUM("grid") FROM "race" WHERE "laps">20;