Table: olympic_medals_2008_2
Columns: rank
nation
gold
silver
bronze
total

Question: How many gold medals for germany (GER) having a rank less than 15?
SQL: SELECT COUNT("gold") FROM olympic_medals_2008_2 WHERE "nation" = 'germany (ger)' AND "rank" < 15

Question: How many silver medals when the bronze is more than 2 and having a rank more than 5?
SQL: SELECT MAX("silver") FROM olympic_medals_2008_2 WHERE "rank" > 5 AND "bronze" > 2

Question: What's the average number of silver medals when bronze is less than 0?
SQL: SELECT AVG("silver") FROM olympic_medals_2008_2 WHERE "bronze" < 0

Question: What's the average number of silver medals for germany (GER) having more than 3 bronze?
SQL: SELECT AVG("silver") FROM olympic_medals_2008_2 WHERE "nation" = 'germany (ger)' AND "bronze" > 3