Query editor
selectblock_date, blockchain, sum(amount_usd) as trade_vol, count(distinct trader_address) as trader_cnt, 'mexc' as wallet_namefrom(selectblock_date, blockchain, tx_from as trader_address, amount_usd, evt_index, MAX(evt_index) OVER (PARTITION BY tx_hash) AS max_indexfrom dex.tradeswhere block_month >= DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '3' monthand blockchain = 'bnb'and tx_from = 0xdEE013d251045Dc4582670D2579809b3b776E7A4)whereevt_index = max_indexgroup byblock_date, blockchainunion allselectblock_date, 'solana' as blockchain, sum(amount_usd) as trade_vol, count(distinct trader_id) as trader_cnt, 'mexc' as wallet_namefrom dex_solana.tradeswhere block_month >= DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '3' monthand trader_id in ('DDyape6cJLwJVnXp75opnh2aGZQyJ8WJYmugUgy1i82h','BfQm8e2pTESBk2mmfRx2eQCYAz57j2fvQmbH2UVcUUEk')group byblock_date