NavidUntitled Query
Updated 2022-11-24Copy 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
25
26
27
28
29
30
›
⌄
with daily_stats as (
select
PROPOSAL_ID,
count(distinct voter) as voters,
count(distinct tx_id) as votes,
avg(vote_weight) as avg_weight
from
osmosis.core.fact_governance_votes
where tx_status='SUCCEEDED' and proposal_id != '362'
group by 1
)
select
'Other Proposals Average' as lbl,
avg(voters) as avg_voters,
avg(votes) as avg_votes,
avg(avg_weight) as avgweight
from
daily_stats
union all
select
'Proposal #362' as lbl,
count(distinct voter) as voters,
count(distinct tx_id) as votes,
avg(vote_weight) as avg_weight
from
osmosis.core.fact_governance_votes
where tx_status='SUCCEEDED' and proposal_id = '362'
group by 1
Run a query to Download Data