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

Question: What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2?
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='egypt (egy)' AND "gold"<2;

Question: What is the total number of Silver with a Total that is smaller than 1?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "total"<1;

Question: What is the highest Total with a Rank that is smaller than 4 and a Nation of tunisia (tun) with a Gold that is smaller than 2?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "rank"<4 AND "nation"='tunisia (tun)' AND "gold"<2;

Question: What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "nation"='ethiopia (eth)' AND "rank">9;