Table: league_stats_8
Columns: position
team
points
played
drawn
lost
against
difference

Question: What is the smallest amount of points had a lost number of 2 when the position was less than 1?
SQL: SELECT MIN("points") FROM league_stats_8 WHERE "lost" = 2 AND "position" < 1

Question: What is the mean number of against when the position is less than 1?
SQL: SELECT AVG("against") FROM league_stats_8 WHERE "position" < 1

Question: What is the mean number of played when there are less than 18 points and the position is less than 8?
SQL: SELECT AVG("played") FROM league_stats_8 WHERE "points" < 18 AND "position" < 8

Question: What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?
SQL: SELECT COUNT("lost") FROM league_stats_8 WHERE "against" < 37 AND "drawn" > 2 AND "played" > 20