How many departments offer any degree?
CREATE TABLE Degree_Programs (department_id VARCHAR)
SELECT COUNT(DISTINCT department_id) FROM Degree_Programs
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Degree_Programs (department_id VARCHAR) Question: How many departments offer any degree? [/INST] SELECT COUNT(DISTINCT department_id) FROM Degree_Programs </s>