Afonso_Diaznear-social-7
    Updated 2023-03-07
    with
    t as (
    select distinct
    signer_id
    from
    near.social.fact_addkey_events
    group by
    1
    ),
    t2 as (
    select distinct
    signer_id
    from
    near.social.fact_decoded_actions
    group by
    1
    union
    select distinct
    signer_id
    from
    near.social.fact_profile_changes
    group by
    1
    )
    select
    'Active Users' as
    type,
    count(distinct signer_id) as users
    from
    (
    select
    signer_id
    from
    t
    intersect
    select
    Run a query to Download Data