MLDZMNCoG2
    Updated 2023-01-12
    select
    date_trunc('week',BLOCK_TIMESTAMP) as date,
    'Osmosis' as network,
    count (distinct tx_id) as no_votes,
    count (distinct voter) as no_voters,
    count(distinct PROPOSAL_ID) as no_proposal
    from osmosis.core.fact_governance_votes
    where TX_SUCCEEDED = 'TRUE'
    group by 1

    union all

    select
    date_trunc('week',BLOCK_TIMESTAMP) as date,
    'Cosmos' as network,
    count (distinct tx_id) as no_votes,
    count (distinct voter) as no_voters,
    count(distinct PROPOSAL_ID) as no_proposal
    from cosmos.core.fact_governance_votes
    where TX_SUCCEEDED = 'TRUE'
    group by 1

    union all

    select
    date_trunc('week',BLOCK_TIMESTAMP) as date,
    'Terra' as network,
    count (distinct tx_id) as no_votes,
    count (distinct voter) as no_voters,
    count(distinct PROPOSAL_ID) as no_proposal
    from terra.core.fact_governance_votes
    where TX_SUCCEEDED = 'TRUE'
    group by 1
    Run a query to Download Data