with arb as (
select
block_timestamp::date as date,
count(distinct(from_address)) as wallets
from arbitrum.core.fact_transactions
where block_timestamp > '2022-06-20 00:00'
and block_timestamp < '2022-06-27 01:00'
group by date
),
bsc as (
select
block_timestamp::date as date,
count(distinct(from_address)) as wallets
from bsc.core.fact_transactions
where block_timestamp > '2022-06-20 00:00'
and block_timestamp < '2022-06-27 01:00'
group by date
)
select
arb.date as date,
arb.wallets as arbitrum,
bsc.wallets as bsc
from arb
inner join bsc on arb.date = bsc.date