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

Question: What is the average gold medals of the nation with 2 total medals, more than 1 bronze, and less than 0 silvers?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "total"=2 AND "bronze">1 AND "silver"<0;

Question: What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?
SQL: SELECT MAX("total") FROM "medal_table" WHERE "silver">1 AND "nation"='russia' AND "bronze">6;

Question: What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=1 AND "total"<1;

Question: What is the total number of silver medals of the nation with more than 16 total medals?
SQL: SELECT COUNT("silver") FROM "medal_table" WHERE "total">16;

Question: What is the average total medals of the nation with 4 bronze and more than 1 silver medals?
SQL: SELECT AVG("total") FROM "medal_table" WHERE "bronze"=4 AND "silver">1;

Question: What is the total number of gold medals of slovakia, which has less than 1 silver medal?
SQL: SELECT COUNT("gold") FROM "medal_table" WHERE "silver"<1 AND "nation"='slovakia';