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 average Rank for lossess less than 6 and wins less than 11 for michigan state
gpt
SELECT AVG Rank FROM table WHERE Losses < 6 AND Wins < 11 AND School = michigan state