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

Question: What is the average lap total for grids under 19 and a Time/Retired of +4 laps?
SQL: SELECT AVG("laps") FROM "race" WHERE "time_retired"='+4 laps' AND "grid"<19;

Question: Who drive over 43 laps in grid 5?
SQL: SELECT "driver" FROM "race" WHERE "laps">43 AND "grid"=5;