John_GaltUnique Addresses Boosting per Day
    Updated 2022-07-06
    with table1 as (select ----***this query includes addresses that have had up to two unpledging events, but not three or more***
    tx_id,
    block_timestamp as date
    from terra.msg_events
    where event_index = 3
    and event_attributes:action = 'activate_boost'
    and event_attributes:contract_address= 'terra1ns5nsvtdxu53dwdthy3yxs6x3w2hf3fclhzllc'
    ),

    table2 as (select
    tx_id,
    event_attributes:sender as amper_address
    from terra.msg_events
    where date(block_timestamp) > '2022-02-01'
    and event_index = 2
    ),

    table3 as (select --this is all boosting events, manual and auto, by address and date
    table1.date as date, table2.amper_address
    from table1
    inner join table2 on table1.tx_id = table2.tx_id
    ),

    table4 as (select
    distinct amper_address, date(date) as date
    from table3
    )

    select date as Date, count(amper_address) as "Addresses"
    from table4
    group by date
    Run a query to Download Data