がどこに住んでいるか

where … lives

→ が
phrase Uncommon #17,906
where … lives Used in an indirect question; が marks the person or thing whose place of residence is being asked about.
JA: 彼がどこに住んでいるか知っていますか。
EN: Do you know where he lives?

トムがどこに住んでいるかがはっきりとは思い出せません。

I can't clearly remember where Tom lives.

トムがどこに住んでいるか分かった。

I found out where Tom lives.

彼がどこに住んでいるか正確に教えてください。

Please tell me exactly where he lives.

ハドソンさんがどこに住んでいるか知っていますか。

Do you know where Mr. Hudson lives?

彼がどこに住んでいるか知らない。

I don't know where he lives.

私はトムがどこに住んでいるかさえも知らない。

I don't even know where Tom lives.

トムはメアリーがどこに住んでいるか知らない。

Tom doesn't know where Mary lives.

警察は犯人がどこに住んでいるかを知った。

The police found out where the suspect lives.