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

Question: How many totals have golds of 3, silvers of 3, and bronzes under 3?
SQL: SELECT SUM("total") FROM "medal_count" WHERE "gold"='3' AND "bronze"<3 AND "silver"='3';

Question: Which nation has a rank of 7?
SQL: SELECT "nation" FROM "medal_count" WHERE "rank"='7';

Question: What is the average bronze with silvers of 1 and totals over 2?
SQL: SELECT AVG("bronze") FROM "medal_count" WHERE "silver"='1' AND "total">2;

Question: How many golds does Germany have?
SQL: SELECT "gold" FROM "medal_count" WHERE "nation"='germany';

Question: What is the total number of bronzes with totals under 4 and ranks of 10?
SQL: SELECT COUNT("bronze") FROM "medal_count" WHERE "total"<4 AND "rank"='10';