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

Question: What is the gold for a bronze larger than 1, with a total smaller than 10, and a silver of 3?
SQL: SELECT "gold" FROM "medals_table" WHERE "bronze">1 AND "total"<10 AND "silver"=3;

Question: What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
SQL: SELECT AVG("total") FROM "medals_table" WHERE "silver">2 AND "gold">1 AND "nation"='total';

Question: When the rank is 11, and bronze a smaller than 1 what is the lowest total?
SQL: SELECT MIN("total") FROM "medals_table" WHERE "rank"='11' AND "bronze"<1;