What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR) Question: What is the Opponent before October 31 with a Record of 2-3-1 after Game 5? [/INST] SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1" </s>