human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Gold, Silver, Bronze, Total
###Question: What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
gpt
SELECT MAX Total FROM table WHERE Bronze = 1 AND Rank = 7 AND Gold > 0