Table: athletics_2007_sea
Columns: rank
nation
gold
silver
bronze
total

Question: What is the number in total of silver with a gold smaller than 0?
SQL: SELECT COUNT("silver") FROM athletics_2007_sea WHERE "gold" < 0

Question: What is the sum of gold with a rank that is 3 and a silver larger than 7?
SQL: SELECT SUM("gold") FROM athletics_2007_sea WHERE "rank" = '3' AND "silver" > 7

Question: What is the average total with a nation of thailand with a gold smaller than 17?
SQL: SELECT AVG("total") FROM athletics_2007_sea WHERE "nation" = 'thailand' AND "gold" < 17

Question: What is the average gold with a bronze smaller than 5 with a rank of 8?
SQL: SELECT AVG("gold") FROM athletics_2007_sea WHERE "bronze" < 5 AND "rank" = '8'