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 rank of the country with more than 2 medals, and 2 gold medals?
gpt
SELECT Rank FROM table WHERE Total > 2 AND Gold = 2