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 Rank when there are 2 bronze, the total is 2 and gold is less than 0?
gpt
SELECT AVG Rank FROM table WHERE Bronze = 2 AND Total = 2 AND Gold < 0