vendettaUntitled Query
    Updated 2022-08-31
    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