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

Question: How many points are associated with a Time/Retired of +10.131 secs?
SQL: SELECT COUNT("points") FROM "race" WHERE "time_retired"='+10.131 secs';

Question: What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?
SQL: SELECT SUM("grid") FROM "race" WHERE "time_retired"='+8.180 secs' AND "laps"<47;