Sandeshtrend of top 5 losers
    Updated 2022-07-19
    with unstakes as
    (
    (
    select
    block_timestamp,
    TX_ID,
    VALIDATOR_ADDRESS,
    'normal_unstake' as "stake",
    amount
    from
    osmosis.core.fact_staking
    where
    action='undelegate'
    and TX_STATUS='SUCCEEDED'
    )
    union
    (
    select
    block_timestamp,
    TX_ID,
    VALIDATOR_ADDRESS,
    'super_unstake' as "stake" ,
    amount
    from osmosis.core.fact_superfluid_staking
    where action='Superfluiddelegate'
    )
    ),
    top_5_losers as
    (
    select
    fs.REDELEGATE_SOURCE_VALIDATOR_ADDRESS as source,
    dl.label as labels,
    count(distinct fs.tx_id) as redelgates,
    sum(amount) as amount
    Run a query to Download Data