Question: How many professors who are from either Accounting or Biology department?
Schema: create table department (dept_code varchar, dept_name varchar, PRIMARY KEY (dept_code)); create table professor (dept_code varchar, PRIMARY KEY (dept_code))
SQL: select count(*) from professor as t1 join department as t2 on t1.dept_code = t2.dept_code where t2.dept_name = 'accounting' or t2.dept_name = 'biology'