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

Question: What is the average number of goals for games played that total more than 8?
SQL: SELECT AVG("goals_for") FROM ottawa_hockey_1895 WHERE "games_played" > 8

Question: What is the sum of wins and the sum of losses less than 4 for teams larger than 20?
SQL: SELECT SUM("wins") FROM ottawa_hockey_1895 WHERE "losses" < 4 AND "goals_against" > 20