CREATE TABLE teachers (lastname CLOB, firstname CLOB, classroom NUMBER)
CREATE TABLE list (lastname CLOB, firstname CLOB, grade NUMBER, classroom NUMBER)

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"