human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Team, Games Played, Wins, Losses, Ties, Goals For, Goals Against
###Question: what is the sum of the losses when the goals against is less than 34 and the games played is less than 8?
gpt
SELECT SUM Losses FROM table WHERE Goals Against < 34 AND Games Played < 8