How to query the NFT assets on the Principal ID and the corresponding transfer records?

How to query the NFT assets on the Principal ID and the corresponding transfer records?