Sam pulled up a chair to the piano , but *it* was broken, so he had to stand instead.

Are "the piano" and "it" the same entity?
no