user: ### NOW ANSWER:
Question: What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
Columns: ['Game', 'October', 'Opponent', 'Score', 'Record']
Types: ['real', 'real', 'text', 'text', 'text']
Sample row: [1.0, 8.0, '@ Detroit Red Wings', '4 - 1', '0-1-0']
SQL:

assistant: SELECT "Opponent" FROM "Table" WHERE "October" < 31.0 AND "Game" > 5.0 AND "Record" = '2-3-1';