Show all student IDs who have at least two allergies.
CREATE TABLE Has_allergy (StuID VARCHAR)
SELECT StuID FROM Has_allergy GROUP BY StuID HAVING COUNT(*) >= 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Has_allergy (StuID VARCHAR) Question: Show all student IDs who have at least two allergies. [/INST] SELECT StuID FROM Has_allergy GROUP BY StuID HAVING COUNT(*) >= 2 </s>