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

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"