QUESTION:
Bob Marley shot the sheriff, but he survived.
Who is "he"?

ANS:
the sheriff

QUESTION:
The teacher did not recommend William because he was not a good student.
Who is "he"?

ANS:
William

QUESTION:
A person is more productive on an IDE than a text editor, therefore it should be used in general practice.
Who is "it"?

ANS:
an IDE

QUESTION:
William enforced a mandatory choir practice for Ryan since he is a mean teacher.
Who is "he"?

ANS:
William