CREATE TABLE teachers (lastname TEXT, firstname TEXT, classroom DECIMAL)
CREATE TABLE list (lastname TEXT, firstname TEXT, grade DECIMAL, classroom DECIMAL)

For each classroom, show the classroom number and count the number of distinct grades that use the room.
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
SELECT "classroom", COUNT(DISTINCT "grade") FROM "list" GROUP BY "classroom"