Query editor
with pair_data as(select*from query_5588099),mint_burn_data as(selectt1.pair,t1.mint_tx,t2.burn_tx,t1.mint_user,t2.burn_userfrom(selectcontract_address as pair,count(evt_tx_hash) as mint_tx,count(distinct evt_tx_from) as mint_userfrom uniswap_v2_ethereum.pair_evt_mintgroup bycontract_address)t1left join(selectcontract_address as pair,count(evt_tx_hash) as burn_tx,count(distinct evt_tx_from) as burn_userfrom uniswap_v2_ethereum.pair_evt_burngroup bycontract_address)t2 on t1.pair = t2.pair),swap_data_24h as(selectpair,count(distinct evt_tx_hash) as swap_tx,sum(swap_usd_value) as swap_usd_valuefrom(selectt1.evt_block_time,t1.evt_tx_hash,t1.pair,t2.token_pair,t2.token0,t2.token0_decimal,t1.swap_token0_amount,t1.swap_token0_amount / power(10,t2.token0_decimal) as real_swap_token0_amount,t1.swap_token0_amount / power(10,t2.token0_decimal) * coalesce(t3.price,0) as swap_usd_valuefrom(selectevt_block_time,contract_address as pair,evt_tx_hash,amount0In + amount0Out as swap_token0_amountfrom uniswap_v2_ethereum.pair_evt_swap as t1where evt_block_time >= CAST(current_time AS TIMESTAMP) - INTERVAL '24' hour -- 最新24小时-- and contract_address = 0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852)t1left join pair_data as t2 on t1.pair = t2.pair