单项选择题

(To wait) in the queue (for) half an hour, the old man suddenly (realized) that he (had left) the wallet in the car.()

A.To wait
B.for
C.realized
D.had left