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

Question: What is the average Laps for andrea de cesaris?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='andrea de cesaris';

Question: What is the lowest Grid for jj lehto with over 51 laps?
SQL: SELECT MIN("grid") FROM "race" WHERE "laps">51 AND "driver"='jj lehto';

Question: What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
SQL: SELECT AVG("grid") FROM "race" WHERE "time_retired"='+2 laps' AND "laps"<51;