CREATE TABLE allergy_type (allergy TEXT, allergytype TEXT)
CREATE TABLE student (stuid DECIMAL, lname TEXT, fname TEXT, age DECIMAL, sex TEXT, major DECIMAL, advisor DECIMAL, city_code TEXT)
CREATE TABLE has_allergy (stuid DECIMAL, allergy TEXT)

How many students have each different allergy?
SELECT allergy, COUNT(*) FROM has_allergy GROUP BY allergy
SELECT "allergy", COUNT(*) FROM "has_allergy" GROUP BY "allergy"