Table: ncaa_div_i_basketball
Columns: rank
school
appearances
wins
losses

Question: Tell me the average Rank for lossess less than 6 and wins less than 11 for michigan state
SQL: SELECT AVG("rank") FROM ncaa_div_i_basketball WHERE "losses" < 6 AND "wins" < 11 AND "school" = 'michigan state'

Question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3
SQL: SELECT SUM("losses") FROM ncaa_div_i_basketball WHERE "wins" < 2 AND "rank" = 10 AND "appearances" > 3