Show the faculty id of each faculty member, along with the number of students he or she advises.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR) Question: Show the faculty id of each faculty member, along with the number of students he or she advises. [/INST] SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID </s>