The company official______I thought would be fired received a ra

The company official______I thought would be fired received a raise

A.whom

B.whoever

C.when

D.of whom

正确答案是D