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

Question: What is the sum of bronzes for teams with more than 0 silver and a total under 1?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "silver">0 AND "total"<1;

Question: What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?
SQL: SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "total">2 AND "silver"<3;