What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
CREATE TABLE table_name_97 (year INTEGER, working_horses VARCHAR, cows VARCHAR)
SELECT MIN(year) FROM table_name_97 WHERE working_horses = "3900.1" AND cows < 3852.1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (year INTEGER, working_horses VARCHAR, cows VARCHAR) Question: What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses? [/INST] SELECT MIN(year) FROM table_name_97 WHERE working_horses = "3900.1" AND cows < 3852.1 </s>