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

Question: What is the rank with 0 bronze?
SQL: SELECT AVG("rank") FROM "medals_table" WHERE "bronze"<0;

Question: What is the total where the gold is larger than 2?
SQL: SELECT COUNT("total") FROM "medals_table" WHERE "gold">2;

Question: What is the smallest number of gold where the total is less than 3 and the silver count is 2?
SQL: SELECT MIN("gold") FROM "medals_table" WHERE "silver"=2 AND "total"<3;