SocioCryptoVotes over time
    Updated 2023-02-01
    SELECT 'osmosis' as chain,
    date_trunc('day',block_timestamp) as date,
    COUNT (DISTINCT tx_id) as n_votes,
    COUNT(DISTINCT voter) as n_voters
    FROM osmosis.core.fact_governance_votes
    WHERE proposal_id not in (2226,1304, 1000, 719)
    GROUP BY date
    UNION
    SELECT 'terra' as chain,
    date_trunc('day',block_timestamp) as date,
    COUNT (DISTINCT tx_id) as n_votes,
    COUNT(DISTINCT voter) as n_voters
    FROM terra.core.fact_governance_votes
    GROUP BY date
    UNION
    SELECT 'cosmos' as chain,
    date_trunc('day',block_timestamp) as date,
    COUNT (DISTINCT tx_id) as n_votes,
    COUNT(DISTINCT voter) as n_voters
    FROM cosmos.core.fact_governance_votes
    GROUP BY date
    UNION
    SELECT 'axelar' as chain,
    date_trunc('day',block_timestamp) as date,
    COUNT (DISTINCT tx_id) as n_votes,
    COUNT(DISTINCT voter) as n_voters
    FROM axelar.core.fact_governance_votes
    GROUP BY date

    ORDER BY date DESC
    Run a query to Download Data