Query editor
with dex_trades as (selectt.block_time,project,token,token_pair,amount_usd,token_bought_symbol,token_sold_symbol,token_bought_address,token_sold_address,token_bought_amount,token_sold_amount,tx_hash,tx_from as user,'Bought' as Actionfromquery_4279044 qinner join dex.trades ton t.blockchain = 'base'and token_bought_address = tokenwhere t.block_time >= date '2024-10-18'and t.block_time > q.evt_block_timeunion allselectt.block_time,project,token,token_pair,amount_usd,token_bought_symbol,token_sold_symbol,token_bought_address,token_sold_address,token_bought_amount,token_sold_amount,tx_hash,tx_from as user,'Sold' as Actionfromquery_4279044 qinner join dex.trades ton t.blockchain = 'base'and token_sold_address = tokenwhere t.block_time >= date '2024-10-18'and t.block_time > q.evt_block_time)select * from dex_tradeswhere amount_usd is not null