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

Question: Who constructed pedro diniz's car?
SQL: SELECT "constructor" FROM "race" WHERE "driver"='pedro diniz';

Question: What is the grid total for david coulthard with over 45 laps?
SQL: SELECT COUNT("grid") FROM "race" WHERE "driver"='david coulthard' AND "laps">45;