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

Question: What is the smallest grid with collision as the Time/Retired for pedro diniz?
SQL: SELECT MIN("grid") FROM "race" WHERE "time_retired"='collision' AND "driver"='pedro diniz';

Question: What is the number of laps for Grid 14?
SQL: SELECT COUNT("laps") FROM "race" WHERE "grid"=14;

Question: What is the number of the grid for mika häkkinen and more than 45 laps?
SQL: SELECT COUNT("grid") FROM "race" WHERE "driver"='mika häkkinen' AND "laps">45;