[subject] + 在 + 哪儿? [subject] + 去 + 哪儿? [subject] + 在哪儿 + [verb]?
哪儿 is the northern, more colloquial form; 哪里 is the southern one and the usual choice in writing.
The answers pair the same way: zhèr这儿 and nàr那儿 for "here" and "there", zhè lǐ这里 and nà li那里 alongside them.
在 + 哪儿 goes in front of the verb, not after it. English puts "where" at the start and the place at the end; neither position carries over.
A few verbs, 住 among them, also take 在 after the verb, and the answer keeps that slot.
With Dū都 or Yě也 it stops asking: 哪儿都去过 means "has been everywhere", 哪儿都不去 means "isn't going anywhere".