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: How many bronzes for nations with over 22 golds and ranked under 2?
gpt
SELECT MAX Bronze FROM table WHERE Gold > 22 AND Rank < 2