MLDZMNwgno8
    Updated 2022-10-16
    with tb1 as (select
    distinct TO_ADDRESS,
    count(distinct FROM_ADDRESS) as no_users
    from gnosis.core.fact_transactions
    where block_timestamp >= current_date - 30
    group by 1
    order by 2 desc limit 10
    )

    select
    block_timestamp::date as day,
    TO_ADDRESS,
    count(distinct FROM_ADDRESS) as no_users
    from gnosis.core.fact_transactions
    where block_timestamp >= current_date - 30
    and TO_ADDRESS in (select TO_ADDRESS from tb1)
    group by 1,2




    Run a query to Download Data