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

Question: What is the average draws with less than 3 wins and more than 5 points?
SQL: SELECT AVG("draws") FROM segunda_division_stats_6 WHERE "wins" < 3 AND "points" > 5

Question: What is the average number of goals with more than 9 points, less than 14 goals against, and a goal difference less than 17?
SQL: SELECT AVG("goals_for") FROM segunda_division_stats_6 WHERE "points" > 9 AND "goals_against" < 14 AND "goal_difference" < 17

Question: What is the average number of wins with less than 10 goals?
SQL: SELECT AVG("wins") FROM segunda_division_stats_6 WHERE "goals_against" < 10

Question: What is the lowest position with a -22 goal difference and more than 5 points?
SQL: SELECT MIN("position") FROM segunda_division_stats_6 WHERE "goal_difference" = -22 AND "points" > 5