どこにいた

where were ...?

→ どこ
phrase Rare #20,533
where were ...? The subject is usually understood from context. いた is the past form of いる, used for people and other living things.
JA: 昨日、彼はどこにいたの?
EN: Where was he yesterday?

今日どこにいたんだよ?

Where the hell were you today?

どこにいたんだ

Where have you been?

— 花様年華 (2000)

昨夜どこにいた?

Where were you last night?

— オープン・ユア・アイズ (1997)

トムはその夜どこにいたのか、思い出すことができなかった。

Tom couldn't remember where he had been that night.

去年の今日は どこにいた?

Where were you a year ago today?

— ザ・マン・フロム・アース (2007)

どこにいた?

Where were you?

— ミスティック・リバー (2003)

どこにいたんだ?

Where have you been?

— アトランティス 失われた帝国 (2001)

昨日の夜どこにいたのか、トムはあなたに言いましたか?

Did Tom tell you where he was last night?

トムは私がどこにいたか知ってたんだよ。

Tom knew where I had been.

トムがどこにいたのか、知りたかったんだ。

I wanted to know where Tom had been.