Query editor
selectdt,sum(total) as net_flowfrom (selectdate_trunc('day', evt_block_time) as dt,sum(value / 1e18 * price) as totalfrom erc20_optimism.evt_Transfer ajoin prices.usd b on date_trunc('minute', a.evt_block_time) = b.minute and b.contract_address = 0x4200000000000000000000000000000000000042 and b.blockchain = 'optimism'where to = 0xacd03d601e5bb1b275bb94076ff46ed9d753435aand evt_block_time >= now() - interval '3' monthgroup by 1union allselectdate_trunc('day', evt_block_time) as dt,-sum(value / 1e18 * price) as totalfrom erc20_optimism.evt_Transfer ajoin prices.usd b on date_trunc('minute', a.evt_block_time) = b.minute and b.contract_address = 0x4200000000000000000000000000000000000042 and b.blockchain = 'optimism'where "from" = 0xacd03d601e5bb1b275bb94076ff46ed9d753435aand evt_block_time >= now() - interval '3' monthgroup by 1)group by 1