が尋ねてきた

asked me; came and asked

→ が
phrase Rare #44,701
asked me; came and asked が marks the person who asked. The てくる form can suggest that the question was directed toward the speaker or that someone came to ask.
JA: 自分の意見に賛成かどうか、彼女が尋ねてきた。
EN: She asked me whether I agreed with her opinion.

フランス語から英語に翻訳できる人を知ってるかと、トムが尋ねてきた。

Tom asked me if I knew anyone who could translate from French into English.

あの「反」という言葉は、サンダラーの人たちが尋ねてきたことだった。

That word, “反,” was what the people of the Thunderers had come to ask about.

スキーをどこで習ったか、トムが尋ねてきた。

Tom asked where I had learned to ski.