Question: Find the number of different departments in each school whose number of different departments is less than 5.
Schema: create table department (school_code varchar, dept_name varchar, PRIMARY KEY (school_code))
SQL: select count(distinct dept_name), school_code from department group by school_code having count(distinct dept_name) < 5