Which allergy has most number of students affected?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT TOP 1 Allergy FROM Has_allergy GROUP BY Allergy ORDER BY COUNT(*) DESC
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE Has_allergy (Allergy VARCHAR) Question: Which allergy has most number of students affected? [/INST] SELECT TOP 1 Allergy FROM Has_allergy GROUP BY Allergy ORDER BY COUNT(*) DESC </s>