Table: segunda_division_1975_76
Columns: position
club
played
points
wins
draws
losses
goals_for
goals_against
goal_difference

Question: Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23?
SQL: SELECT MAX("position") FROM segunda_division_1975_76 WHERE "goals_against" < 54 AND "losses" = 7 AND "goal_difference" > 23

Question: Which is the lowest played with 28-10 points and goals higher than 29?
SQL: SELECT MIN("played") FROM segunda_division_1975_76 WHERE "points" = '28-10' AND "goals_for" > 29

Question: How many positions have 14 wins, goals against of 61 and fewer than 19 losses?
SQL: SELECT COUNT("position") FROM segunda_division_1975_76 WHERE "wins" = 14 AND "goals_against" = 61 AND "losses" < 19

Question: What is the average loss with a goal higher than 51 and wins higher than 14?
SQL: SELECT AVG("losses") FROM segunda_division_1975_76 WHERE "goals_against" > 51 AND "wins" > 14