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 Gold when the rank is less than 3 and the bronze is less than 1?
gpt
SELECT AVG Gold FROM table WHERE Rank < 3 AND Bronze < 1