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

Question: How many bronze medals for the United Kingdom when the silver was less than 0?
SQL: SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='united kingdom' AND "silver"<0;

Question: How many bronze medals for West Germany having a total more than 2?
SQL: SELECT COUNT("bronze") FROM "medals_table" WHERE "total">2 AND "nation"='west germany';

Question: What is the amount of silver for rank 11 having less than 0 gold?
SQL: SELECT MIN("silver") FROM "medals_table" WHERE "rank"='11' AND "gold"<0;

Question: What rank is Bulgaria with less than 3 silver and more than 1 bronze?
SQL: SELECT "rank" FROM "medals_table" WHERE "silver"<3 AND "bronze">1 AND "nation"='bulgaria';