mattkstewPII SnapShot 5
Updated 2022-08-12Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
›
⌄
with tab1 as (
select
voter,
count(*) as votes
from ethereum.core.ez_snapshot
group by 1
)
select
case
when votes = 1 then '1 Vote'
when votes between 1 and 3 then 'Between 1 and 3 Votes'
when votes between 3 and 5 then 'Between 3 and 5 Votes'
when votes between 5 and 7 then 'Between 5 and 7 Votes'
when votes between 7 and 10 then 'Between 7 and 10 Votes'
Else 'Greater than 10 Votes'
end as Voter_Votes_Distribution,
count(*)
from tab1
group by 1
Run a query to Download Data