NuveveCryptoArchivedUntitled Query
    with weekly as (
    select
    tx_from as user,
    date_trunc('week', block_timestamp) as week,
    count(tx_id) as tx_count
    from osmosis.core.fact_transactions
    group by user, week
    ),

    daus as (
    select
    user,
    avg(tx_count) as weekly_count
    from weekly
    group by user
    having weekly_count >= 5
    ),

    staking as (
    select
    staking.block_timestamp::date as date,
    count(tx_id) as tx_count
    from osmosis.core.fact_staking as staking
    inner join daus on staking.delegator_address = daus.user
    group by 1
    )
    Run a query to Download Data