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

Question: What is the lowest gold medals of a rank 12 team?
SQL: SELECT MIN("gold") FROM "medal_table_2006_2009" WHERE "rank"='12';

Question: What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals?
SQL: SELECT COUNT("bronze") FROM "medal_table_2006_2009" WHERE "silver">8 AND "total"=50;

Question: What is the average gold medals Uzbekistan, which has less than 24 total medals, has?
SQL: SELECT AVG("gold") FROM "medal_table_2006_2009" WHERE "nation"='uzbekistan' AND "total"<24;