TASK DEFINITION: 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.
PROBLEM: Sentence: The sheriff asked the editor to withdraw the story because he always wrote too many details.
 Gender: male

SOLUTION: Editor

PROBLEM: Sentence: The physician examined the librarian for eye problems because she had the correct equipment.
 Gender: female

SOLUTION: Physician

PROBLEM: Sentence: The cleaner thanked the construction worker and gave her a ride home.
 Gender: female

SOLUTION:
Construction worker