bachidaily users1
    -- Daily Active User
    -- What does a Daily Active User look like on Osmosis?
    -- First, plot out how many DAUs there are on Osmosis.
    -- For this exercise, consider a DAU would be any wallet transacting on Osmosis a majority of days every week.
    -- What does a Daily Active User look like on Osmosis? First, plot out how many DAUs there are on Osmosis.
    -- For this exercise, consider a DAU would be any wallet transacting on Osmosis a majority of days every week.
    -- Once you have the DAUs, what does their activity look like?
    -- Do they LP more or swap more?
    -- How often do they transfer tokens into Osmosis?
    -- Where are these transfers coming from?


    -- Grand Prize 103.592 OSMO
    -- Payout 69.061 OSMO
    -- Payout Network Osmosis
    -- Level Intermediate
    -- Difficulty Hard

    with wallets as (
    select
    date_trunc('week',date) as date,
    tx_from,
    sum(n_days) as n_days_week
    from (
    select
    block_timestamp::date as date,
    tx_from,
    1 as n_days
    from osmosis.core.fact_transactions
    group by 1,2
    )
    group by 1, 2
    having n_days_week >= {{majority_n_days}}
    )

    Run a query to Download Data