Query editor
with nft_transfer_detail as (select e.evt_block_time,e.evt_tx_hash,e."to" as address,e."tokenId" as token_id,1 as token_countfrom erc721_ethereum.evt_Transfer ewhere e.contract_address = 0x4b15a9c28034dC83db40CD810001427d3BD7163Dand e.evt_block_time > TIMESTAMP '2023-01-01 00:00:00'union allselect evt_block_time,evt_tx_hash,"from" as address,tokenId as token_id,-1 as token_countfrom erc721_ethereum.evt_Transfer ewhere e.contract_address = 0x4b15a9c28034dC83db40CD810001427d3BD7163Dand e.evt_block_time > TIMESTAMP '2023-01-01 00:00:00'and "from" <> 0x0000000000000000000000000000000000000000 -- Mint),nft_transfer_token_summary as (select address,token_id,sum(token_count) as token_countfrom nft_transfer_detail tgroup by 1, 2having sum(token_count) > 0),user_hold_nft_summary as (select address,count(distinct token_id) as hold_token_countfrom nft_transfer_token_summarygroup by 1),nft_user_summary as (select hold_token_count,count(address) as user_countfrom user_hold_nft_summarygroup by 1), holding_count_details as (select hold_token_count,cast(hold_token_count as varchar) || ' NFT' as hold_token_type,sum(user_count) as total_user_countfrom nft_user_summarygroup by 1, 2order by 1)SELECThold_token_count, hold_token_type, total_user_count, holder_count