CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR)
CREATE TABLE Student (StuID VARCHAR, sex VARCHAR)

How many female students have milk or egg allergies?
SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs"
SELECT COUNT(*) FROM "has_allergy" AS "T1" JOIN "Student" AS "T2" ON ("Eggs" = "T1"."allergy" OR "F" = "T2"."sex") AND "T1"."StuID" = "T2"."StuID" WHERE "Eggs" = "T1"."allergy" OR "Milk" = "T1"."allergy"