Ali3NDately Cosmos Osmosis Terra New Voters Stats Over Time
Updated 2023-02-22Copy 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
31
32
33
34
35
36
›
⌄
select 'Cosmos' as chain,
date_trunc ({{Date_Trunc}},mindate) as date,
count (distinct voter) as New_Voters,
sum (New_Voters) over (order by date) as Total_Voters
from (
select voter,
min (block_timestamp) as mindate
from cosmos.core.fact_governance_votes
where tx_succeeded = 'TRUE'
group by 1)
group by 1,2
union ALL
select 'Osmosis' as chain,
date_trunc ({{Date_Trunc}},mindate) as date,
count (distinct voter) as New_Voters,
sum (New_Voters) over (order by date) as Total_Voters
from (
select voter,
min (block_timestamp) as mindate
from osmosis.core.fact_governance_votes
where tx_succeeded = 'TRUE'
group by 1)
group by 1,2
union ALL
select 'Terra' as chain,
date_trunc ({{Date_Trunc}},mindate) as date,
count (distinct voter) as New_Voters,
sum (New_Voters) over (order by date) as Total_Voters
from (
select voter,
min (block_timestamp) as mindate
from Terra.core.fact_governance_votes
Run a query to Download Data