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

Question: What is the smallest grid for Ayrton Senna?
SQL: SELECT MIN("grid") FROM "race" WHERE "driver"='ayrton senna';

Question: What is the Time/Retired for laps higher than 52 on a grid larger than 21?
SQL: SELECT "time_retired" FROM "race" WHERE "laps">52 AND "grid">21;

Question: What is the sum of laps for grid 20?
SQL: SELECT SUM("laps") FROM "race" WHERE "grid"=20;

Question: What is the most laps for Ayrton Senna?
SQL: SELECT MAX("laps") FROM "race" WHERE "driver"='ayrton senna';