How many lessons were in cancelled state?
CREATE TABLE Lessons (lesson_status_code VARCHAR)
SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = "Cancelled"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Lessons (lesson_status_code VARCHAR) Question: How many lessons were in cancelled state? [/INST] SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = "Cancelled" </s>