rahoVotes and Voters
    Updated 2023-04-13
    -- Lido Snapshot Data
    with all_votes as(
    select
    date(proposal_start_time) as start_time,
    date(proposal_end_time) as end_time,
    date(vote_timestamp) as vote_time,
    proposal_id,
    proposal_title,
    voter,
    vote_option,
    voting_power,
    space_id,
    proposal_author
    from ethereum.core.ez_snapshot
    where space_id = 'stgdao.eth'
    ),

    overview as (
    select
    count(distinct proposal_title) as number_of_proposals,
    count(distinct voter) as unique_voters,
    sum(voting_power) as total_power_cast
    from all_votes
    )

    select
    start_time as "Proposal Start Date",
    end_time as "Proposal End Date",
    proposal_title as "Proposal Title",
    sum(voting_power) as "Number of Votes",
    count(voter) as "Total Voters"
    from all_votes
    group by 3,2,1
    order by start_time asc

    Run a query to Download Data