Query editor
WITH target_address AS (SELECTaddressFROMdune.sovereigntzu.dataset_pudgyholderlist),nft_holdings AS (SELECT"to" AS holder,COUNT(*) AS nfts_held -- Count of NFTs held per address for the specified contractFROMnft_ethereum.transfersWHERE"to" IN (SELECT address FROM target_address)AND contract_address = 0xbd3531da5cf5857e7cfaa92426877b022e612cf8 -- The specific NFT contract addressAND "to" <> 0x0000000000000000000000000000000000000000 -- Exclude burn addressesGROUP BY"to"),erc20_approvals AS (-- Your existing ERC-20 approvals subquerySELECTowner,COUNT(DISTINCT contract_address) AS erc20_approvals_countFROM erc20_ethereum.evt_ApprovalWHEREowner IN (SELECTaddressFROM target_address)GROUP BYowner),erc721_approvals AS (-- Your existing ERC-721 approvals subquerySELECTowner,COUNT(DISTINCT contract_address) AS erc721_approvals_countFROM erc721_ethereum.evt_ApprovalWHEREowner IN (SELECTaddressFROM target_address)GROUP BYowner),erc1155_approvals AS (-- Your existing ERC-1155 approvals subquerySELECTaccount AS owner,COUNT(DISTINCT contract_address) AS erc1155_approvals_countFROM erc1155_ethereum.evt_ApprovalForAllWHEREaccount IN (SELECTaddressFROM target_address