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

Question: How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?
SQL: SELECT AVG("gold") FROM "medals_table" WHERE "bronze">6 AND "silver">18;

Question: How many Gold medals did the Soviet Union receive?
SQL: SELECT AVG("gold") FROM "medals_table" WHERE "nation"='soviet union';