CREATE TABLE list (classroom VARCHAR, grade VARCHAR)

For each classroom, report the classroom number and the number of grades using it.
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
SELECT "classroom", COUNT(DISTINCT "grade") FROM "list" GROUP BY "classroom"