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

Question: What grid is the lowest when the time/retired is + 5 laps and the laps is less than 161?
SQL: SELECT MIN("grid") FROM "race" WHERE "time_retired"='+ 5 laps' AND "laps"<161;

Question: What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs?
SQL: SELECT MAX("points") FROM "race" WHERE "grid"<13 AND "time_retired"='+7.538 secs';

Question: Driver Ricardo Sperafico has what as his average laps?
SQL: SELECT AVG("laps") FROM "race" WHERE "driver"='ricardo sperafico';

Question: What is the name of the driver with 6 points?
SQL: SELECT "driver" FROM "race" WHERE "points"=6;

Question: What is the average points that the driver Ryan Hunter-Reay has?
SQL: SELECT AVG("points") FROM "race" WHERE "driver"='ryan hunter-reay';