Table: millwall_west_ham_matches
Columns: competition
played
millwall_wins
drawn
west_ham_wins
millwall_goals
west_ham_goals

Question: How many wins did West Ham get when Millwall had more than 23 goal and 5 wins, and they tied 8 times?
SQL: SELECT "west_ham_wins" FROM millwall_west_ham_matches WHERE "millwall_wins" > 5 AND "millwall_goals" > 23 AND "drawn" = 8

Question: What is the least number of wins West Ham got when they tied 27 times?
SQL: SELECT MIN("west_ham_wins") FROM millwall_west_ham_matches WHERE "drawn" > 27