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: How many bronze medals were won when the total is more than 1, and gold is more than 0?
gpt
SELECT AVG Bronze FROM table WHERE Total > 1 AND Gold > 0