rajs# of Voters and Proposals Voted On
    Updated 2023-01-12
    SELECT
    'Cosmos' as blockchain,
    count(distinct voter) as no_of_voters,
    count(distinct proposal_id) as no_of_proposals,
    round(count(distinct voter) / count(distinct proposal_id),0) as avg_voters_per_proposal
    from cosmos.core.fact_governance_votes
    where tx_succeeded
    and block_timestamp >= '2022-06-01'

    UNION

    SELECT
    'Osmosis' as blockchain,
    count(distinct voter) as no_of_voters,
    count(distinct proposal_id) as no_of_proposals,
    round(count(distinct voter) / count(distinct proposal_id),0) as avg_voters_per_proposal
    from osmosis.core.fact_governance_votes
    where tx_succeeded
    and block_timestamp >= '2022-06-01'

    UNION

    SELECT
    'Terra' as blockchain,
    count(distinct voter) as no_of_voters,
    count(distinct proposal_id) as no_of_proposals,
    round(count(distinct voter) / count(distinct proposal_id),0) as avg_voters_per_proposal
    from terra.core.fact_governance_votes
    where tx_succeeded
    and block_timestamp >= '2022-06-01'

    -- union

    -- SELECT
    -- 'Terra Classic' as blockchain,
    -- count(distinct voter) as no_of_voters,
    Run a query to Download Data