Ann asked Mary what time the library closes, because *she* had forgotten.

Are "Mary" and "she" the same entity?
no