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

Question: What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?
SQL: SELECT AVG("bronze") FROM "medal_table" WHERE "rank"<11 AND "nation"='trinidad and tobago' AND "total"<1;

Question: What is the sum of gold medal totals for nations with 1 silver, less than 2 bronze, and ranked below 10?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "silver"=1 AND "bronze"<2 AND "total"=1 AND "rank"<10;