きたのか

did ... come?

→ 来る
phrase Rare #36,291
did ... come? The のか form asks for an explanation or confirmation. It can sound direct, depending on context.
JA: あなたはどうして今朝ここにきたのか。
EN: Why did you come here this morning?

なんだ今日もきたのか

Oh, you came again today.

— The Garden of Sinners: Paradox Spiral (2008)

あなたはどうして今朝ここにきたのか。

Why did you come here this morning?

ポニョ遠くからきたのかな

Ponyo, I wonder if you came from far away.

— 崖の上のポニョ (2008)

スーザンはその子犬がどこからきたのかわかった。

Susan found out where the puppy came from.