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