Updated 2022-05-07
    with daily as (select count(*) as count,block_timestamp::date as date from thorchain.update_node_account_status_events
    where
    (CURRENT_STATUS='Standby' or CURRENT_STATUS='Disabled') and FORMER_STATUS='Active'
    group by date)
    , weekly as (select count(*) as count,week(block_timestamp::date) as date from thorchain.update_node_account_status_events
    where
    (CURRENT_STATUS='Standby' or CURRENT_STATUS='Disabled') and FORMER_STATUS='Active'
    group by date)
    , monthly as (select count(*) as count,month(block_timestamp::date) as date from thorchain.update_node_account_status_events
    where
    (CURRENT_STATUS='Standby' or CURRENT_STATUS='Disabled') and FORMER_STATUS='Active'
    group by date)

    select * from daily
    Run a query to Download Data