Query editor
withaddress(address) as (values(0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2),(0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)),token_price as (selectdate_trunc('day', minute) as time,avg(price) as eth_pricefromprices.usdwheresymbol = 'ETH'and minute >= cast('2022-11-06' as TIMESTAMP)and minute < cast('2022-11-07' as TIMESTAMP)group by1),total_eth_deposited AS (SELECTdate_trunc('day', block_time) as time,SUM(cast(value as DECIMAL) / 1e18) AS total_deposited_ethFROMethereum.traces -- WHERE to in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)whereto in (selectaddressfromaddress)AND successAND cast(value as DOUBLE) > 0and block_time >= cast('2022-11-06' as TIMESTAMP)and block_time < cast('2022-11-07' as TIMESTAMP)GROUP by1),total_eth_withdraw AS (SELECTdate_trunc('day', block_time) as time,SUM(value / 1e18) AS total_withdrawed_ethFROMethereum.transactions -- WHERE to in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)where"from" in (selectaddressfromaddress)AND successAND value > 0and block_time >= cast('2022-11-06' as TIMESTAMP)and block_time < cast('2022-11-07' as TIMESTAMP)GROUP by1),in_flow as (