MLDZMNAGD8
Updated 2023-03-19
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
with tb1 as (select
VOTER,
count(distinct PROPOSAL_id) as no_proposals
from ethereum.aave.ez_votes
where BLOCK_TIMESTAMP >= CURRENT_DATE-180
group by 1
)
select
case
when no_proposals<3 then 'under 3 proposals'
when no_proposals>=3 and no_proposals<10 then '3-10 proposals'
when no_proposals>=10 and no_proposals<30 then '10-30 proposals'
when no_proposals>=30 then 'Over 30 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