Who was the opponent when the record was 31-24?
CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_40 WHERE record = "31-24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent when the record was 31-24? [/INST] SELECT opponent FROM table_name_40 WHERE record = "31-24" </s>