Table: t_1895_ahac_season
Columns: team
games_played
wins
losses
ties
goals_for
goals_against

Question: What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
SQL: SELECT MIN("wins") FROM t_1895_ahac_season WHERE "goals_against" < 39 AND "losses" > 2 AND "ties" > 0

Question: Which team has the most ties with fewer than 4 losses and GA smaller than 20?
SQL: SELECT MAX("ties") FROM t_1895_ahac_season WHERE "losses" < 4 AND "goals_against" < 20

Question: How many games did the team lose that played 7 games and has a GA of less than 27?
SQL: SELECT COUNT("losses") FROM t_1895_ahac_season WHERE "games_played" = 7 AND "goals_against" < 27