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

Question: What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
SQL: SELECT SUM("grid") FROM "classification" WHERE "time_retired"='engine' AND "driver"='teo fabi' AND "laps"<39;

Question: What is the average grid for johnny dumfries with less than 8 laps?
SQL: SELECT AVG("grid") FROM "classification" WHERE "driver"='johnny dumfries' AND "laps"<8;

Question: What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?
SQL: SELECT MIN("laps") FROM "classification" WHERE "constructor"='minardi - motori moderni' AND "grid"<18;

Question: What constructor has a 12 grid?
SQL: SELECT "constructor" FROM "classification" WHERE "grid"=12;