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

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"