using nbt for detecting if a player died

I just don't know how it works and I'm interesting in learning this
Continue to help post