What is the average total for teams with over 3 bronzes and over 8 golds?
CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medal_table" WHERE "bronze">3 AND "gold">8;