Hossein2023-06-25 06:20 PM
    with main as (
    select
    method_name as action,
    label_type,
    project_name,
    tx_hash,
    signer_id as user
    from near.core.fact_actions_events_function_call a
    join near.core.dim_address_labels b
    where a.receiver_id = b.address
    and block_timestamp::date >= current_date - 90
    and project_name is not null
    )

    select
    label_type,
    count(distinct tx_hash) as txns,
    count(distinct user) as users
    from main
    group by 1
    order by 3 desc
    limit 10
    Run a query to Download Data