Query editor
with mint_txs as (select to as minter, evt_tx_hash, count(tokenId) as amount_minted from erc721_arbitrum.evt_transferwhere contract_address=0x2e660787BcECCd39f67b8190A5bc4fc3Ad3B64F7 and "from"=0x0000000000000000000000000000000000000000and evt_tx_hash!=0x31341df43b8fed800097e664272bde78c12472019cd8229f9073654c834bb027 --exclude airdropand evt_tx_hash!=0xf9df5cd2b92375864928e33a3b20ec6e1ef48af44f8c49a90ac837576a19874f --exclude airdropand to!=0x000000000000000000000000000000000000dEaDgroup by 1,2), --exclude burnsmint_values as (select minter, amount_minted, value/1e18 as total_cost, (value/1e18)/amount_minted as mint_pricefrom arbitrum.transactionsjoin mint_txs on evt_tx_hash=hashorder by amount_minted desc),tx_sums as (select COALESCE(name, cast(minter as VARCHAR)) as minter,minter as address, sum(amount_minted) as total_minted, sum(total_cost) as total_cost, avg(mint_price) as avg_mint_pricefrom mint_valuesleft join labels.ens on minter=addressgroup by 1,2),mint_groups as (select minter,address, total_minted, total_cost, avg_mint_price,count(minter) over (order by total_minted) as unique_minters,caseWHEN (avg_mint_price > 0.01 and avg_mint_price < 0.07) then 'Mega Yeeted'WHEN (avg_mint_price > 0.07 and avg_mint_price < 0.09) then 'Yeeted FR'WHEN avg_mint_price > 0.09 then 'Yeetling'END as mint_groupfrom tx_sumsorder by total_minted desc)select minter,address, total_minted, total_cost, avg_mint_price, unique_minters, mint_group,(select count(minter) from mint_groups where mint_group='Yeeted FR') as yeeted_minter,(select count(minter) from mint_groups where mint_group='Mega Yeeted') as mega_yeeted_minter,(select count(minter) from mint_groups where mint_group='Yeetling') as yeetling_minterfrom mint_groupsorder by total_minted desc