peteerNumber of rewards and their types per month
    Updated 2022-08-31
    with number_of_reward_type as
    (
    select count(tx_hash),reward_type from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,number_of_reward_type_day as
    (
    select count(tx_hash),reward_type,date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2,3
    )
    ,number_of_reward_type_week as
    (
    select count(tx_hash),reward_type,date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2,3
    )
    ,number_of_reward_type_month as
    (
    select count(tx_hash),reward_type,date_trunc('month', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2,3
    )

    ,amount_of_reward_type as
    (
    select sum(claimed_amount_usd),reward_type from optimism.velodrome.ez_claimed_rewards
    group by 2
    )
    ,amount_of_reward_type_day as
    (
    select sum(claimed_amount_usd),reward_type,date_trunc('day', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2,3
    )
    ,amount_of_reward_type_week as
    (
    select sum(claimed_amount_usd),reward_type,date_trunc('week', block_timestamp) from optimism.velodrome.ez_claimed_rewards
    group by 2,3
    Run a query to Download Data