CREATE TABLE "medals_by_republic" (
  "rank" real,
  "republic" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);

Question: What is the total number of bronzes associated with 1 silver, ranks under 6 and under 6 golds?
SQL: SELECT SUM("bronze") FROM "medals_by_republic" WHERE "silver"=1 AND "rank"<6 AND "gold"<6;

Question: What is the highest number of bronzes for teams ranked number 7 with more than 0 silver?
SQL: SELECT MAX("bronze") FROM "medals_by_republic" WHERE "silver">0 AND "rank"=7;

Question: What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?
SQL: SELECT AVG("total") FROM "medals_by_republic" WHERE "gold">1 AND "rank">3 AND "bronze">3;

Question: What is the sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver?
SQL: SELECT SUM("bronze") FROM "medals_by_republic" WHERE "gold">2 AND "rank"<3 AND "silver"<22;

Question: What is the sum of silvers for teams with ranks over 3 and totals under 2?
SQL: SELECT SUM("silver") FROM "medals_by_republic" WHERE "rank">3 AND "total"<2;