barbodLuna comes from validators vs (regular wallets)
Updated 2022-04-25
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
31
32
33
34
›
⌄
with val as(with t1 as(SELECT
MSG_VALUE:voter::string as voter
from terra.msgs
where MSG_TYPE='gov/MsgVote'
and MSG_VALUE:option::string='VOTE_OPTION_YES')
select
'From validators' as voters,
count(PROPOSAL_ID) as vote,
sum(voting_power) as voting_LUNA,
voting_LUNA/vote as average_LUNA
from terra.gov_vote
where voter in (select voter from t1)
and voter_address_label is not null
),
wl as (with t1 as(SELECT
MSG_VALUE:voter::string as voter
from terra.msgs
where MSG_TYPE='gov/MsgVote'
and MSG_VALUE:option::string='VOTE_OPTION_YES')
select
'From regular wallets' as voters,
count(PROPOSAL_ID) as vote,
sum(voting_power) as voting_LUNA,
voting_LUNA/vote as average_LUNA
from terra.gov_vote
where voter in (select voter from t1)
and voter_address_label is null)
select * from val
union all
select * from wl
Run a query to Download Data