Query editor
--Uses a CTE (LatestTransfers) to find the most recent transfer timestamp for each token ID.--Joins this CTE with the ERC-721 events table to get the latest transfer events.--Groups the results by the recipient address (to_address), effectively counting the NFTs currently held by each address.WITH LatestTransfers AS (SELECTtokenId,MAX(evt_block_time) AS latest_timeFROM budverse_heritage_cans_ethereum.AbiItem_evt_TransferGROUP BYtokenId)SELECTe."to" AS owner_address,COUNT(e.tokenId) AS nft_countFROM budverse_heritage_cans_ethereum.AbiItem_evt_Transfer AS eJOIN LatestTransfers AS ltON e.tokenId = lt.tokenIdWHEREe.evt_block_time = lt.latest_timeGROUP BYe."to"ORDER BYnft_count DESCLIMIT 10;