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

Question: Name the least goals for goal difference of 7 and losses more than 13
SQL: SELECT MIN("goals_against") FROM segunda_division_1989_90 WHERE "goal_difference" = 7 AND "losses" > 13

Question: Tell me the total number of positions with goal difference more than -17 and played less than 38
SQL: SELECT COUNT("position") FROM segunda_division_1989_90 WHERE "goal_difference" > -17 AND "played" < 38