がどこに住んでいるのか

where [someone] lives

→ が
phrase Uncommon #15,574
where [someone] lives Used to form an indirect question about where someone lives. が marks the person being asked about.
JA: 彼がどこに住んでいるのか知っていますか。
EN: Do you know where he lives?