rahoTotal Votes Cast by Proposal
    Updated 2022-11-22
    -- all snapshots with outcome
    with wallet_age as (
    with all_ss as (
    select
    date_trunc('day', proposal_start_time) as start_date,
    proposal_title,
    voter,
    vote_option,
    voting_power
    from ethereum.core.ez_snapshot
    where space_id = 'stgdao.eth'
    ),
    eth as (
    select
    date_trunc('day', block_timestamp) as create_date,
    cast(getdate() as date) as cur_date,
    datediff('day', create_date, cur_date) as days_old,
    nonce,
    from_address
    from ethereum.core.fact_transactions
    inner join all_ss
    on lower(voter) = lower(from_address)
    where nonce = 0
    ),

    arb as (
    select
    date_trunc('day', block_timestamp) as create_date,
    cast(getdate() as date) as cur_date,
    datediff('day', create_date, cur_date) as days_old,
    nonce,
    from_address
    from arbitrum.core.fact_transactions
    inner join all_ss
    Run a query to Download Data