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

Question: What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total?
SQL: SELECT MIN("gold") FROM "medals_table" WHERE "rank"<5 AND "silver"=1 AND "nation"='poland' AND "total">1;

Question: How many silver medals are there with 3 gold medals at a rank above 1?
SQL: SELECT COUNT("silver") FROM "medals_table" WHERE "gold"=3 AND "rank">1;

Question: What is the average number of gold medals with more than 1 bronze medal?
SQL: SELECT AVG("gold") FROM "medals_table" WHERE "bronze">1;

Question: What is the average number of silver medals for rank 2 and more than 1 bronze medal?
SQL: SELECT AVG("silver") FROM "medals_table" WHERE "rank"=2 AND "bronze">1;