human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Gain, Loss, Long, Avg/G
###Question: What's the sum of all average yards gained when the gained yards is under 1,276 and lost more than 3 yards?
gpt
SELECT SUM Avg/G FROM table WHERE Gain < 1,276 AND Loss > 3