Query editor
with user_eth as (select date_trunc('day', first_tx) as time, count(*) as user_ethfrom (select distinct "from" as user, min(block_time) as first_txfrom ethereum.transactionswhere "to" in (0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419)group by 1)group by 1), user_erc20 as (select date_trunc('day', first_tx) as time, count(*) as user_erc20from (select distinct "from" as user, min(evt_block_time) as first_txfrom erc20_ethereum.evt_Transferwhere "to" in (0xf6080d9fbeebcd44d89affbfd42f098cbff92816,0xbb3400f107804dfb482565ff1ec8d8ae66747605, 0xF3F62F23dF9C1D2C7C63D9ea6B90E8d24c7E3DF5,0x283751a21eafbfcd52297820d27c1f1963d9b5b4, 0xcf58536d6fab5e59b654228a5a4ed89b13a876c2,0xBf67F59D2988A46FBFF7ed79A621778a3Cd3985B, 0x0437465dfb5B79726e35F08559B0cBea55bb585C)group by 1)group by 1), base_user as (select time, user_eth, user_erc20, user_eth + user_erc20 as daily_new_user-- , user_eth/(user_eth + user_erc20) as new_eth_equivalent_totalfrom (select coalesce(a.time, b.time) as time, coalesce(user_eth, 0) as user_eth, coalesce(user_erc20,0) as user_erc20from user_eth as afull outer join user_erc20 as bon a.time = b.time)order by 1 desc), tx_eth as (select date_trunc('day', block_time) as time, count(*) as daily_tx_dep_ethfrom ethereum.transactionswhere to = 0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419group by 1), tx_erc20 as (select date_trunc('day', evt_block_time) as time, count(*) as daily_tx_dep_erc20from erc20_ethereum.evt_Transferwhere to in (0xf6080d9fbeebcd44d89affbfd42f098cbff92816, 0xbb3400f107804dfb482565ff1ec8d8ae66747605,0x283751a21eafbfcd52297820d27c1f1963d9b5b4, 0xcf58536d6fab5e59b654228a5a4ed89b13a876c2, 0xBf67F59D2988A46FBFF7ed79A621778a3Cd3985B, 0x0437465dfb5B79726e35F08559B0cBea55bb585C, 0xF3F62F23dF9C1D2C7C63D9ea6B90E8d24c7E3DF5)group by 1), base_tx as (select time, daily_tx_dep_eth, daily_tx_dep_erc20, daily_tx_dep_eth + daily_tx_dep_erc20 as daily_txfrom (select coalesce(a.time, b.time) as time