Query editor
WITH proxy3_transactions AS (SELECT DISTINCThash AS tx_hashFROM avalanche_c.transactionsWHERE"to" = 0xab4fe2d136efd7f8dfce3259a5e3c5e4c0130c80AND block_time >= TRY_CAST('2022-11-01' AS TIMESTAMP)), collection_activity AS (SELECTt.contract_address AS nft_contract,COUNT(*) AS total_transfers,COUNT(DISTINCT t."from") AS unique_sellers,COUNT(DISTINCT t."to") AS unique_buyers,COUNT(DISTINCT DATE_TRUNC('day', t.evt_block_time)) AS active_days,MIN(t.evt_block_time) AS first_activity,MAX(t.evt_block_time) AS last_activity,COUNT(DISTINCT t.tokenId) AS unique_tokens_tradedFROM erc721_avalanche_c.evt_Transfer AS tINNER JOIN proxy3_transactions AS pON t.evt_tx_hash = p.tx_hashWHEREt."from" <> 0x0000000000000000000000000000000000000000AND t.evt_block_time >= TRY_CAST('2022-11-01' AS TIMESTAMP)GROUP BYt.contract_address)SELECTnft_contract,total_transfers,unique_sellers,unique_buyers,unique_tokens_traded,active_days,ROUND(total_transfers * 1.0 / active_days, 2) AS avg_daily_transfers,ROUND(unique_tokens_traded * 100.0 / total_transfers, 2) AS token_diversity_pct,DATE_DIFF('day', first_activity, CURRENT_TIMESTAMP) AS days_since_first_tradeFROM collection_activityWHEREtotal_transfers >= 10ORDER BYtotal_transfers DESCLIMIT 30