Query editor
-- select nft_from, event_type,count(1) from dune.socialscan.result_one_pool_positions_events-- group by 1,2-- order by 3 desc;-- select * from dune.socialscan.result_one_pool_positions_events-- where owner_current != owner_at_event-- and owner_current != 0x0000000000000000000000000000000000000000-- ;-- select * from dune.socialscan.result_one_pool_positions_events-- where owner_current != mint_recipient-- and owner_current != 0x0000000000000000000000000000000000000000-- ;-- select * from dune.socialscan.result_one_pool_positions_events-- where tokenid = 1499488;-- select mint_recipient, event_type,count(1) from dune.socialscan.result_one_pool_positions_events-- group by 1,2 ORDER by 3 desc;select * from dune.socialscan.result_multi_tokens_positions_events where mint_recipient = 0x12e789D7B3425dda7e3d35d1Be5e52203c07F819;select evt_tx_to, count(1) from dune.socialscan.result_multi_tokens_positions_events where mint_recipient = 0x12e789D7B3425dda7e3d35d1Be5e52203c07F819group by 1 order by 2 desc;WITH base AS (SELECTe.*,CAST(to_unixtime(evt_block_time) * 1000 AS bigint) * 1000000+ COALESCE(evt_tx_index, 0) * 1000+ COALESCE(evt_index, 0) AS sort_key,COALESCE(amount0_usd, 0e0) + COALESCE(amount1_usd, 0e0) AS event_usdFROM dune.socialscan.result_multi_tokens_positions_events e),token_static AS (SELECTtokenId,max_by(owner_current, sort_key) AS owner_current,max_by(mint_recipient, sort_key) AS mint_recipient,max_by(token0, sort_key) AS token0,max_by(token1, sort_key) AS token1,max_by(fee, sort_key) AS fee,max_by(tickLower, sort_key) AS tickLower,max_by(tickUpper, sort_key) AS tickUpper,min(evt_block_time) AS first_evt_time,max(evt_block_time) AS last_evt_timeFROM baseGROUP BY tokenId),token_sum AS (SELECTtokenId,SUM(CASE WHEN event_type = 'Collect' THEN event_usd ELSE 0e0 END) AS total_collect_usd,SUM(CASE WHEN event_type = 'IncreaseLiquidity' THEN event_usd ELSE 0e0 END) AS total_increase_usd,