What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?
CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
SELECT AVG("total") FROM "medals_table" WHERE "gold">0 AND "silver">0 AND "bronze">2;