human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Nation, Gold, Silver, Bronze, Total
###Question: What is the average number of bronze medals of the Philippines, which has more than 0 gold?
gpt
SELECT AVG Bronze FROM table WHERE Nation = philippines AND Gold > 0