What is the employee id of the head whose department has the least number of employees?
CREATE TABLE department (head VARCHAR, departmentID VARCHAR)
SELECT TOP 1 head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE department (head VARCHAR, departmentID VARCHAR) Question: What is the employee id of the head whose department has the least number of employees? [/INST] SELECT TOP 1 head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID) </s>