human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Republic, Gold, Silver, Bronze, Total
###Question: What is the sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver?
gpt
SELECT SUM Bronze FROM table WHERE Gold > 2 AND Rank < 3 AND Silver < 22