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

Question: What is the largest gold with a Total of 2, and a Rank smaller than 2?
SQL: SELECT MAX("gold") FROM "medals_table" WHERE "total"=2 AND "rank"<2;

Question: What is the lowest total from United States with a Rank smaller than 2?
SQL: SELECT MIN("total") FROM "medals_table" WHERE "nation"='united states' AND "rank"<2;

Question: What is the average silver with a Rank smaller than 2 and more than 1 gold?
SQL: SELECT AVG("silver") FROM "medals_table" WHERE "rank"<2 AND "gold">1;

Question: What is the smallest rank with a Total smaller than 1?
SQL: SELECT MIN("rank") FROM "medals_table" WHERE "total"<1;