にいましたか

were ... at/in?

→ に
phrase Common #2,286
were ... at/in? A polite past-tense question about whether someone was at or in a place. The subject is often understood from context.
JA: 昨日、学校にいましたか。
EN: Were you at school yesterday?

彼は昨日ニューヨークにいましたか。

Was he in New York yesterday?

トムはどこにいましたか?

Where was Tom?

あなたはどのくらい長く釧路にいましたか。

How long were you in Kushiro?

彼らは昨日図書館にいましたか。

Were they at the library yesterday?

あなたは先月アメリカにいましたか。

Were you in the United States last month?

先週の土曜日に劇場にいましたか。

Were you at the theater last Saturday?

あなたは先週ここにいましたか。

Were you here last week?

彼は昨年北海道にいましたか。

Was he in Hokkaido last year?