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

Question: Which driver had a grid of 2?
SQL: SELECT "driver" FROM "race" WHERE "grid"=2;

Question: What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing?
SQL: SELECT MIN("grid") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"='16';

Question: What is the number of points associated with 165 laps?
SQL: SELECT "points" FROM "race" WHERE "laps"=165;

Question: What is the total number of laps associated with 8 points and a grid under 8?
SQL: SELECT COUNT("laps") FROM "race" WHERE "points"='8' AND "grid"<8;