nsa2000osmo12
Updated 2022-11-24
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
-- this code is thankfully burrowed from alik110: https://app.flipsidecrypto.com/dashboard/MIXbqK
with maintable as (
select voter,
count (distinct vote_option) as options_count
from osmosis.core.fact_governance_votes
where tx_status = 'SUCCEEDED'
and proposal_id in ('362')
group by 1 having options_count > 1)
select case when options_count = 1 then 'Voted Once'
when options_count = 2 then 'Voted 2 Different Options'
when options_count = 3 then 'Voted 3 Different Options'
when options_count = 4 then 'Voted 4 Different Options'
else null end as type,
count (distinct voter) as Voters_Count
from maintable
where type is not null
group by 1
order by 2 desc
Run a query to Download Data