Table: sambo_medals
Columns: rank
nation
gold
silver
bronze
total

Question: What is the lowest gold medals of a rank 12 team?
SQL: SELECT MIN("gold") FROM sambo_medals WHERE "rank" = '12'

Question: What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals?
SQL: SELECT COUNT("bronze") FROM sambo_medals WHERE "silver" > 8 AND "total" = 50

Question: What is the average gold medals Uzbekistan, which has less than 24 total medals, has?
SQL: SELECT AVG("gold") FROM sambo_medals WHERE "nation" = 'uzbekistan' AND "total" < 24