What's the total number that had a rank larger than 17 and a gold greater than 0?
CREATE TABLE "total" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT COUNT("total") FROM "total" WHERE "rank">17 AND "gold">0;