Query editor
selectcoalesce(a.dt,b.dt) dt,coalesce(a.to_address_type,b.from_address_type) address_label,a.total_tx_amt total_deposit_usd,b.total_tx_amt total_withdraw_usd,a.total_tx_cnt total_deposit_cnt,b.total_tx_cnt total_withdraw_cnt,a.tx_amt_eth deposit_eth_amt,a.tx_usd_eth deposit_eth_usd,b.tx_amt_eth withdraw_eth_amt,b.tx_usd_eth withdraw_eth_usd,a.tx_amt_usd deposit_usdt_amt,b.tx_amt_usd withdraw_usdt_amtfrom(selectdate(block_time) dt,to_address_type,sum(tx_usd_amt) total_tx_amt,count(distinct tx_hash) total_tx_cnt,round(sum(if(symbol='ETH',tx_amt,0)),2) tx_amt_eth,sum(if(symbol='ETH',tx_usd_amt,0)) tx_usd_eth,count(distinct if(symbol='ETH', tx_hash, null)) tx_cnt_eth,round(sum(if(symbol in ('USDT','USDC'),tx_amt,0)),2) tx_amt_usd,count(distinct if(symbol in ('USDT','USDC'), tx_hash, null)) tx_cnt_usdfrom(selectblock_time,to_address_type,tx_amt,tx_usd_amt,tx_hash,symbolfromquery_4067549whereentity = 'bp'union allselectblock_time,'bn' to_address_type,tx_amt,tx_usd_amt,tx_hash,symbolfromquery_4069589)group by1,2) afull outer join(selectdate(block_time) dt,from_address_type,sum(tx_usd_amt) total_tx_amt,count(distinct tx_hash) total_tx_cnt,round(sum(if(symbol='ETH',tx_amt,0)),2) tx_amt_eth,