human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Season, League, Finish, Wins, Losses, Ties
###Question: What is the losses in the NFL in the 2011 season with less than 13 wins?
gpt
SELECT AVG Losses FROM table WHERE League = nfl AND Season = 2011 AND Wins < 13