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

Question: What is the total number of medals by the Czech republic?
SQL: SELECT "total" FROM "medal_table" WHERE "nation"='czech republic';

Question: How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
SQL: SELECT SUM("gold") FROM "medal_table" WHERE "rank"<2 AND "bronze">8;

Question: What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
SQL: SELECT MAX("rank") FROM "medal_table" WHERE "gold"<3 AND "silver">2 AND "total"<5;