John-wa [[Mary-ga dare-ni atta-kadooka] to yuu mondai-o] kentoositeiru-no?
John-top Mary-nom who-dat met-whether that say problem-acc investigate-Q
*Who is the person x such that John is investigating the problem whether Mary met x?