来たのか

did [someone] come?

→ 来る
phrase Uncommon #12,336
did [someone] come? 来た means “came,” and のか forms a question or embedded question. Depending on context, it can also mean “when someone came” or express uncertainty, as in 来たのかも (“might have come”).
JA: 彼は何をしに来たのか分かりません。
EN: I don't know what he came to do.

そのことでこんな真夜中に来たのか

Did you come all the way here in the middle of the night for that?

— 惑星ソラリス (1972)

ジャクソン来たのか

Did Jackson come?

— 続・夕陽のガンマン (1966)

このためにイポ来たのか聞かれるはず

They’re bound to ask if I came to Ipo for this.

— 別れる決心 (2022)

飛行機で来たのか

Did you fly here?

— タクシー運転手 約束は海を越えて (2017)

もうチョルソク来たのか

Has Cholseok come already?

— 別れる決心 (2022)

ボブがいつ日本来たのか知りません

I don't know when Bob came to Japan.

メイド仕事をもらい来たのか

Did you come looking for a job as a maid?

— マルコムX (1992)

なぜ彼は私たちの来たのか

Why did he come to our country?

— バジュランギおじさんと、小さな迷子 (2015)

また来たのか

You're back again?

— エリート・スクワッド (2007)

試合を見に来たのか

Did you come to watch the game?

— ダンガル きっと、つよくなる (2016)

別人を探しにズボンなしでシムラーまで来たのか

Did you come all the way to Shimla without your pants on, looking for someone else?

— きっと、うまくいく (2009)

復讐来たのか

Have you come to avenge Zhao?

— HERO (2002)

ポニョ遠くから来たのかなぁ

I wonder if Ponyo came from far away.

— 崖の上のポニョ (2008)

海から来たのか

Maybe it came from the sea.

— グエムル -漢江の怪物- (2006)

忘れるものかフアヴェル来たのか

How could I forget? Did Favel come?

— レベッカ (1940)

実際にいるかどうか確かめに来たのか

Did you come to see if I really exist?

— マルホランド・ドライブ (2001)

オリベイラまた来たのか

Oliveira, you’re back again?

— エリート・スクワッド (2007)