What is the total number of laps associated with 8 points and a grid under 8?
CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" text
);
SELECT COUNT("laps") FROM "race" WHERE "points"='8' AND "grid"<8;