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

Find the number of students who are older than 18 and do not have allergy to either food or animal.
SELECT COUNT(*) FROM student WHERE age > 18 AND NOT stuid IN (SELECT stuid FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
SELECT COUNT(*) FROM "student" WHERE "age" > 18 AND NOT "stuid" IN (SELECT "stuid" FROM "has_allergy" "T1" JOIN "allergy_type" "T2" ON "T1"."allergy" = "T2"."allergy" AND ("T2"."allergytype" = "animal" OR "T2"."allergytype" = "food"))