DiamondTables Information (Sloppy)
    with
    amount_in as (
    select
    date(block_timestamp) as date,
    event_data:to as user,
    event_data:amount as amount_in
    from
    flow.core.fact_events
    where
    event_type = 'TokensDeposited'
    and event_contract = 'A.53f389d96fb4ce5e.SloppyStakes'
    and tx_succeeded = 'TRUE'
    ),
    amount_out as (
    select
    date(block_timestamp) as date,
    event_data:
    from
    as user,
    event_data:amount as amount_out
    from
    flow.core.fact_events
    where
    event_type = 'TokensWithdrawn'
    and event_contract = 'A.53f389d96fb4ce5e.SloppyStakes'
    and tx_succeeded = 'TRUE'
    ),
    amount_in_total as (
    select
    date,
    user,
    sum(amount_in) as total_n,
    sum(total_n) over (
    partition by
    user
    order by
    Run a query to Download Data