human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Country, Gold, Silver, Bronze, Total
###Question: What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers?
gpt
SELECT SUM Rank FROM table WHERE Bronze < 5 AND Country = japan AND Silver > 3