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

Question: What is the time/retired for a grid over 17 with 74 laps?
SQL: SELECT "time_retired" FROM "race" WHERE "grid">17 AND "laps"=74;

Question: What is the grid total for david coulthard?
SQL: SELECT SUM("grid") FROM "race" WHERE "driver"='david coulthard';