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

Question: What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation?
SQL: SELECT "total" FROM "medal_table" WHERE "gold"=2 AND "nation"='brazil (bra)';

Question: Which nation has the number of silver medals greater than 1, and bronze medals as 1?
SQL: SELECT "nation" FROM "medal_table" WHERE "silver">1 AND "bronze"=1;

Question: What is the least total number of medals when the bronze medals is 1, and Czech Republic (CZE) is the nation?
SQL: SELECT MIN("total") FROM "medal_table" WHERE "bronze"=1 AND "nation"='czech republic (cze)';

Question: For what nation is the gold medals 0, and the bronze medals less than 1?
SQL: SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "bronze"<1;

Question: What is the most gold medals when the bronze medals were 0, and the silver medals greater than 1?
SQL: SELECT MAX("gold") FROM "medal_table" WHERE "bronze"=0 AND "silver">1;

Question: What is the total bronze medals when the silver medals is 0, and 1 is the rank, Brazil (BRA) is the nation, and the gold medals is less than 2?
SQL: SELECT SUM("bronze") FROM "medal_table" WHERE "silver"=0 AND "rank"='1' AND "nation"='brazil (bra)' AND "gold"<2;