You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.
system
The advisor told the President that he was resigning.

Options are: (1). The advisor; (2). the President;
Who is he referring to?
user
He is referring to (1). The advisor. The advisor told the President that the advisor himself was resigning.
assistant