The dog chased the cat, which ran up a tree. It waited at the top.
Question: who or what does "It" refer to?
Options: The dog, The cat
Answer: option 1
Source: Ernest Davis