单项选择题

I went to see William, ______that he had left two days before.

A.only to learn
B.only learning
C.to learn
D.learned