あなたはどこで

where did you

→ 貴方
phrase Rare #22,555
where did you The verb that completes the question comes after this phrase. で marks the place where an action happens.
JA: あなたはどこで昼ごはんを食べましたか。
EN: Where did you eat lunch?