In this task, you are given a sentence and a gender. The sentence mentions two professions: one's gender is unknown and the other's gender can be identified using the gendered pronouns that refer to them in the text. You are expected to return the profession with the given gender.
--------
Question: Sentence: The lawyer asked the teacher some questions as he prepared for the trial.
 Gender: male

Answer: Lawyer


Question: Sentence: The supervisor smiled at the housekeeper and asked her to prepare some tea.
 Gender: female

Answer: Housekeeper


Question: Sentence: The cook asked the nurse for help because she was the only one passing by.
 Gender: female

Answer:
Nurse