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

Question: What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver"=0 AND "gold"<0;

Question: What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "total"<8 AND "rank"=9 AND "silver"<0;

Question: What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?
SQL: SELECT "nation" FROM "medal_table" WHERE "rank">4 AND "total"=2 AND "silver">0;

Question: What was the average rank for the team that had more than 5 medals and more than 6 gold medals?
SQL: SELECT AVG("rank") FROM "medal_table" WHERE "total">5 AND "gold">6;