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: Tell me the lowest gold for rank of 6 and total less than 2
gpt
SELECT MIN Gold FROM table WHERE Rank = 6 AND Total < 2