CREATE TABLE Allergy_Type (Allergy VARCHAR2, allergytype VARCHAR2)
CREATE TABLE Has_allergy (Allergy VARCHAR2)
CREATE TABLE Student (age VARCHAR2, StuID VARCHAR2)

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"))