Updated 2023-03-22
    select
    voter,
    count(distinct tx_hash) as votes,
    sum(tx_fee) as fee_eth,
    avg(tx_fee) as average_fee_eth
    from ethereum.core.fact_transactions
    join ethereum.aave.ez_votes
    using(tx_hash)
    where block_timestamp > current_date - interval '{{ months}} months'
    group by 1
    order by fee_eth desc
    limit 10
    Run a query to Download Data