cypherGovernance Votes Differences between Orion.Money and Staking Fund
    Updated 2022-01-15
    with orion_votes as (select
    block_timestamp,
    tx_id,
    cast(proposal_id as int) as int_proposal_id,
    voter_address_label,
    CASE
    when option = 'VOTE_OPTION_NO' then 'no'
    when option = 'VOTE_OPTION_YES' then 'yes'
    when option = 'No' then 'no'
    when option = 'Yes' then 'yes'
    when option = 'Abstain' then 'abstain'
    end as clean_choice
    from terra.gov_vote
    where voter = 'terra1259cmu5zyklsdkmgstxhwqpe0utfe5hhyygjdc'),

    staking_fund_votes as (select
    block_timestamp,
    tx_id,
    cast(proposal_id as int) as int_proposal_id,
    voter_address_label,
    CASE
    when option = 'VOTE_OPTION_NO' then 'no'
    when option = 'No' then 'no'
    when option = 'NoWithVeto' then 'no_veto'
    when option = 'VOTE_OPTION_YES' then 'yes'
    when option = 'Yes' then 'yes'
    when option = 'YesWithVeto' then 'yes_veto'
    when option = 'VOTE_OPTION_ABSTAIN' then 'abstain'
    when option = 'Abstain' then 'abstain'
    end as clean_choice
    from terra.gov_vote
    where voter = 'terra123gn6j23lmexu0qx5qhmgxgunmjcqsx8g5ueq2'),

    proposal_info as (
    select proposal_id,
    title,
    Run a query to Download Data