How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?
CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=3 AND "rank">7 AND "total"<5;