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

Question: What was the bronze medal count of the team that finished with 47 total medals?
SQL: SELECT AVG("bronze") FROM "medal_count" WHERE "total"=47;

Question: What is the silver medal count of the team that finished with 8 bronze medals?
SQL: SELECT SUM("silver") FROM "medal_count" WHERE "bronze"=8;