MLDZMNVO11
    Updated 2022-09-30
    with tb1 as (select
    VOTER,
    count(distinct PROPOSAL) as no_proposals
    from solana.core.fact_proposal_votes
    where SUCCEEDED='TRUE' and BLOCK_TIMESTAMP>='2022-01-01'
    group by 1)

    select
    case
    when no_proposals<3 then 'a. under 3 proposals'
    when no_proposals>=3 and no_proposals<10 then 'b. 3-10 proposals'
    when no_proposals>=10 and no_proposals<20 then 'c. 10-20 proposals'
    when no_proposals>=20 then 'd. Over 20 proposals'
    end as gp,
    count(distinct voter) as no_voter
    from tb1
    group by 1 having gp is not null
    Run a query to Download Data