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

Question: Which driver's grid was 24?
SQL: SELECT "driver" FROM "race" WHERE "grid"=24;

Question: What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?
SQL: SELECT AVG("laps") FROM "race" WHERE "grid"<19 AND "time_retired"='+21.3 secs';

Question: What is the smallest number of laps for Team Green when the grid is 1?
SQL: SELECT MIN("laps") FROM "race" WHERE "team"='team green' AND "grid"=1;