vendettaUntitled Query
Updated 2022-08-31
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
›
⌄
with
t1 as (
select
trunc(block_timestamp,'month') as date,
count(distinct tx_id) as votes,
sum(votes) over (order by date) as cum_votes,
count(distinct voter) as voters,
sum(voters) over (order by date) as cum_voters,
count(distinct proposal) as proposals,
sum(proposals) over (order by date) as cum_proposals,
count (distinct realms_id) as n_DAO,
sum(n_DAO) over (order by date) as cum_DAO
from solana.core.fact_proposal_votes
where governance_platform like '%realms%' and succeeded = TRUE and block_timestamp>='2022-01-01'
group by 1
),
t2 as (
select
trunc(vote_timestamp,'month') as date,
count(distinct id) as votes,
sum(votes) over (order by date) as cum_votes,
count(distinct voter) as voters,
sum(voters) over (order by date) as cum_voters,
count(distinct proposal_id) as proposals,
sum(proposals) over (order by date) as cum_proposals,
count (distinct space_id) as n_DAO,
sum(n_DAO) over (order by date) as cum_DAO
from ethereum.core.ez_snapshot
where vote_timestamp>='2022-01-01'
group by 1
)
select 'Realms' as platform, * from t1
UNION
select 'Snapshot' as platform, * from t2
Run a query to Download Data