CREATE TABLE "ncaa_championship_game_appearances" (
  "rank" real,
  "school" text,
  "appearances" real,
  "wins" real,
  "losses" real
);

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_championship_game_appearances" 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_championship_game_appearances" WHERE "wins"<2 AND "rank"=10 AND "appearances">3;