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

Question: What is the average gold that has a total of 2 and more than 1 bronze.
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "total"=2 AND "bronze">1;