What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?
CREATE TABLE table_name_90 (date INTEGER, works_number VARCHAR, type VARCHAR, number VARCHAR)
SELECT MAX(date) FROM table_name_90 WHERE type = "0-4-4 forney locomotive" AND number > 20 AND works_number > 23754
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date INTEGER, works_number VARCHAR, type VARCHAR, number VARCHAR) Question: What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754? [/INST] SELECT MAX(date) FROM table_name_90 WHERE type = "0-4-4 forney locomotive" AND number > 20 AND works_number > 23754 </s>