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

Question: What's the total of Sweden (SWE) having less than 1 silver?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden (swe)' AND "silver"<1;

Question: What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver?
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<1 AND "nation"='sweden (swe)' AND "silver"<1;

Question: What's the total when the gold is less than 0 and silver is less than 1?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "silver"=1 AND "gold"<0;

Question: What's the total of rank 8 when Silver medals are 0 and gold is more than 1?
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "silver"=0 AND "rank"=8 AND "gold">1;

Question: What are the most bronze medals in a rank more than 1 with a total larger than 3?
SQL: SELECT MAX("bronze") FROM "medal_table" WHERE "total">3 AND "rank">1;

Question: What's the rank of Turkey (TUR) with a total more than 2?
SQL: SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='turkey (tur)' AND "total">2;