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: Which Gold has a Rank smaller than 5, and a Bronze of 20?
gpt
SELECT AVG Gold FROM table WHERE Rank < 5 AND Bronze = 20