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

Question: How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?
SQL: SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "silver">1 AND "rank"='total';

Question: How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?
SQL: SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "nation"='total' AND "silver"<18;

Question: How many bronzes have west germany as the nation?
SQL: SELECT SUM("bronze") FROM "medals_table" WHERE "nation"='west germany';

Question: How many golds have denmark as the nation, with a total less than 1?
SQL: SELECT COUNT("gold") FROM "medals_table" WHERE "nation"='denmark' AND "total"<1;

Question: How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?
SQL: SELECT COUNT("total") FROM "medals_table" WHERE "gold"=1 AND "rank"='12' AND "silver">0;

Question: What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
SQL: SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=1 AND "total"=1 AND "rank"='17' AND "gold"<0;