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

Question: What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?
SQL: SELECT MAX("laps") FROM "race" WHERE "time_retired"='+1:23.297' AND "grid">4;

Question: What is the time/retired with a toyota constructor and a 5 grid?
SQL: SELECT "time_retired" FROM "race" WHERE "constructor"='toyota' AND "grid"=5;

Question: What is the average number of laps with 16 grids?
SQL: SELECT AVG("laps") FROM "race" WHERE "grid"=16;