rahoraho OP vote history
    Updated 2023-04-13
    with vote_history as (
    select
    voter,
    vote_option,
    voting_power,
    proposal_title,
    space_id
    from ethereum.core.ez_snapshot
    where voter = lower('0xE6156d93fbA1F2387fCe5f50f1BB45eF51ed5f2b')
    and space_id = 'opcollective.eth'
    ),
    choices as(
    select
    voter,
    vote_option,
    voting_power,
    proposal_title
    from
    vote_history
    order by vote_option
    ),

    yes_votes as (
    select
    count(vote_option) as decisions
    from choices
    where vote_option = ['1']
    ),

    no_votes as (
    select
    count(vote_option)
    from choices
    where vote_option = ['2']
    ),
    Run a query to Download Data