How many budgets are above 3000 in year 2001 or before?
CREATE TABLE budget (budgeted VARCHAR, YEAR VARCHAR)
SELECT COUNT(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE budget (budgeted VARCHAR, YEAR VARCHAR) Question: How many budgets are above 3000 in year 2001 or before? [/INST] SELECT COUNT(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001 </s>