human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Republic, Gold, Silver, Bronze, Total
###Question: What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?
gpt
SELECT AVG Total FROM table WHERE Gold > 1 AND Rank > 3 AND Bronze > 3