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 average total has 0 as the gold, with 6 as the rank?
gpt
SELECT AVG Total FROM table WHERE Gold = 0 AND Rank = 6