CREATE TABLE "most_caps" (
  "rank" real,
  "player" text,
  "nation" text,
  "caps" real,
  "goals" real,
  "years" text
);

Question: What is the sum of caps for players with less than 9 goals ranked below 8?
SQL: SELECT SUM("caps") FROM "most_caps" WHERE "goals"<9 AND "rank">8;