How many budget record has a budget amount smaller than the invested amount?
CREATE TABLE budget (budgeted INTEGER, invested VARCHAR)
SELECT COUNT(*) FROM budget WHERE budgeted < invested
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE budget (budgeted INTEGER, invested VARCHAR) Question: How many budget record has a budget amount smaller than the invested amount? [/INST] SELECT COUNT(*) FROM budget WHERE budgeted < invested </s>