Table: fiba_south_america_u17
Columns: rank
gold
silver
bronze
total

Question: What's the rank that has a total of less than 1?
SQL: SELECT SUM("rank") FROM fiba_south_america_u17 WHERE "total" < 1

Question: What's the bronze medal count when the silver is less than 3 and the gold is 1?
SQL: SELECT SUM("bronze") FROM fiba_south_america_u17 WHERE "gold" = 1 AND "silver" < 3

Question: What's the gold medal count ranked 2 with a total of more than 21?
SQL: SELECT COUNT("gold") FROM fiba_south_america_u17 WHERE "rank" = 2 AND "total" > 21

Question: What's the smallest total with a bronze count of 5 and a gold count less than 8?
SQL: SELECT MIN("total") FROM fiba_south_america_u17 WHERE "bronze" = 5 AND "gold" < 8