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

Question: What is Nation, when Bronze is 1, when Gold is greater than 0, and when Rank is 2?
SQL: SELECT "nation" FROM "medal_table" WHERE "bronze"=1 AND "gold">0 AND "rank"='2';

Question: What is the average Total, when Bronze is greater than 0, when Silver is greater than 0, when Gold is greater than 2, and when Nation is Soviet Union?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze">0 AND "silver">0 AND "gold">2 AND "nation"='soviet union';

Question: What is the average Gold, when Nation is Yugoslavia, and when Silver is greater than 0?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "nation"='yugoslavia' AND "silver">0;

Question: What is the average Bronze, when Total is 4, and when Silver is less than 2?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "total"=4 AND "silver"<2;