CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: What is the average Total with a Gold that is larger than 4?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "gold">4;

Question: What is the average Total with a Bronze that is larger than 1?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze">1;