Query editor
WITH ownership_counts AS (SELECT"to" AS wallet,COUNT(*) AS nft_count,MIN(DATE_TRUNC('week', evt_block_time)) AS first_weekFROM (SELECT"to",evt_block_timeFROM utilify_polygon.UtilifyMemories_evt_TransferSingleWHEREcontract_address = FROM_HEX('0x57dea368a8bff24057718f84869aa0f740e017fd')UNION ALLSELECT"to",evt_block_timeFROM utilify_polygon.UtilifyMemories_evt_TransferBatchWHEREcontract_address = FROM_HEX('0x57dea368a8bff24057718f84869aa0f740e017fd')) AS CombinedGROUP BY"to"HAVINGCOUNT(*) > 0)SELECTwallet,nft_countFROM ownership_countsORDER BYnft_count DESC