human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, School, Appearances, Wins, Losses
###Question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3
gpt
SELECT SUM Losses FROM table WHERE Wins < 2 AND Rank = 10 AND Appearances > 3