Task: Text to Code
Input (English): What are the first name and gender of the students who have allergy to milk but can put up with cats?
Output (English): SELECT fname ,  sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy  =  "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy  =  "Cat")