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 gold total for nations ranked 6 with 1 total medal and 1 bronze medal?
gpt
SELECT AVG Gold FROM table WHERE Total = 1 AND Rank = 6 AND Bronze > 1