CREATE TABLE "all_time_record" (
  "season" text,
  "team_name" text,
  "games" real,
  "losses" real,
  "points" real
);

Question: What is the greatest number of losses a team that played fewer than 25 games in 2010 had?
SQL: SELECT MAX("losses") FROM "all_time_record" WHERE "games"<25 AND "season"='2010';

Question: What is the average number of points for a team that played 17 games and had more than 15 losses?
SQL: SELECT AVG("points") FROM "all_time_record" WHERE "games"=17 AND "losses">15;