freemartianWeekly Staking Action
    Updated 2022-12-06
    select
    date_trunc('week', block_timestamp::date) as TIME,
    count(tx_id) as action_count,
    sum(amount) as amount,
    action
    from terra.core.ez_staking
    where tx_succeeded = 'TRUE'
    and block_timestamp >= CURRENT_DATE - {{Past_X_Days}}
    group by TIME, action

    Run a query to Download Data