Question: Find the number of departments in each school.
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