For each classroom, report the classroom number and the number of grades using it.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE list (classroom VARCHAR, grade VARCHAR) Question: For each classroom, report the classroom number and the number of grades using it. [/INST] SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom </s>