Question: What is the number of professors for different school?
Schema: create table department (school_code varchar, dept_code varchar, PRIMARY KEY (school_code)); create table professor (dept_code varchar, PRIMARY KEY (dept_code))
SQL: select count(*), t1.school_code from department as t1 join professor as t2 on t1.dept_code = t2.dept_code group by t1.school_code