Find the number of professors with a Ph.D. degree in each department.
CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR)
SELECT COUNT(*), dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR) Question: Find the number of professors with a Ph.D. degree in each department. [/INST] SELECT COUNT(*), dept_code FROM professor WHERE prof_high_degree = 'Ph.D.' GROUP BY dept_code </s>