SELECT count(*) FROM Student WHERE sex  =  "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy  =  T2.Allergy WHERE T2.allergytype  =  "food")
How many male students (sex is 'M') are allergic to any type of food?
SELECT count ( * ) FROM Student WHERE sex = `` M '' AND StuID IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = `` food '' )
select count ( * ) from student where sex = value and stuid in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1 . allergy = t2 . allergy where t2 . allergytype = value )
How many male students ( sex is 'M ' ) are allergic to any type of food ?