What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?
CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
SELECT AVG("laps") FROM "race" WHERE "time_retired"='+16.874 secs' AND "grid"<5;