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

Question: Who built michael schumacher's car that went under 31 laps?
SQL: SELECT "constructor" FROM "race" WHERE "laps"<31 AND "driver"='michael schumacher';

Question: How many grids for heinz-harald frentzen with 61 laps?
SQL: SELECT COUNT("grid") FROM "race" WHERE "laps"=61 AND "driver"='heinz-harald frentzen';