Your analysis of both is correct. However, we aren't sure in the first if the persons have moved or have died.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
contrapositionThank you very much, but I don't seem to undertand your second sentenceThe past perfect implies that they no longer live there. We don't know if that's because they moved or because they died.