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

Question: Tell me the lowest bronze for panama and total larger than 8
SQL: SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='panama' AND "total">8;

Question: Tell me the average total for guatemala and bronze less than 2
SQL: SELECT AVG("total") FROM "medal_table" WHERE "nation"='guatemala' AND "bronze"<2;

Question: Tell me the number of bronze for silver of 0 and total less than 1
SQL: SELECT COUNT("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1;

Question: Tell me the sum of total for rank of 1
SQL: SELECT SUM("total") FROM "medal_table" WHERE "rank"=1;

Question: Tell me the total number for costa rica and rank more than 8
SQL: SELECT COUNT("total") FROM "medal_table" WHERE "nation"='costa rica' AND "rank">8;