Query editor
with tab1 as (selectdate_trunc('hour', block_time) as hour,'Solana' as chain,count(*) as swaps,sum(amount_usd) as swap_volumefrom dex_solana.tradeswhere block_time > timestamp '2026-01-20'and (token_sold_mint_address = '8f62NyJGo7He5uWeveTA2JJQf4xzf8aqxkmzxRQ3mxfU'or token_bought_mint_address = '8f62NyJGo7He5uWeveTA2JJQf4xzf8aqxkmzxRQ3mxfU')group by 1,2), tab2 as (selectdate_trunc('hour', block_time) as hour,'BNB' as chain,count(*) as swaps,sum(amount_usd) as swap_volumefrom dex.sandwicheswhere block_time > timestamp '2026-01-20'and (token_sold_address = 0xB2D97C4ed2d0Ef452654F5CAB3da3735B5e6F3abor token_bought_address = 0xB2D97C4ed2d0Ef452654F5CAB3da3735B5e6F3ab)group by 1,2)select *from (select *from tab1union allselect *from tab2)where hour < timestamp '2026-01-22 18:00'