Find the number of classes in each department.
CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR)
SELECT COUNT(*), dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR) Question: Find the number of classes in each department. [/INST] SELECT COUNT(*), dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code </s>