Interrogative pronoun
The lady whom you saw just now is my teacher.
I consulted a doctor whom I met in Paris
I am not sure whom did he invite for the wedding
This is the girl who told me where to park my car.
I agree that these are correct sentences, but, if it matters, I'm not sure...