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 smallest number of gold of a country of rank 6, with 2 bronzes?
gpt
SELECT MIN Gold FROM table WHERE Bronze = 2 AND Rank = 6 AND Total > 2