MLDZMNmerge4
    Updated 2023-04-13
    with tb1 as (select
    distinct ORIGIN_FROM_ADDRESS as u1,
    count(distinct tx_hash) as stake_no
    from ethereum.core.ez_token_transfers

    where ORIGIN_TO_ADDRESS=lower('0xC874b064f465bdD6411D45734b56fac750Cda29A')
    and from_address='0x0000000000000000000000000000000000000000'
    group by 1)

    select
    case
    when stake_no=1 then 'a. 1 stake'
    when stake_no>1 and stake_no<3 then 'b. between 1-3 stake'
    when stake_no>=3 and stake_no<10 then 'c. Between 3-10 stake'
    when stake_no>10 then 'd. Over 10 stake'
    end as no_type,
    count(distinct u1) as n_users
    from tb1
    group by 1 having no_type is not null

    Run a query to Download Data