When searching for antecedents, we sort candidates in the same sentential clause from left to right, and we prefer sentences that are closer to the mention under consideration (see Section 3.2.2 for details).
the sorted list of candidates for John 9 10 is It 7 7 , My favorite 8 8 , My 9 9 , A girl 5 5 , the song 6 6 , He 3 3 , a new song 4 4 , John 1 1 , a musician 2 2 .