Updated 2022-10-19
    -- reference - --ref : https://app.flipsidecrypto.com/dashboard/gXhhQ8

    with active as (
    select distinct tx_from as Active_Users,
    date_trunc (week,block_timestamp) as Week,
    count (distinct block_timestamp::date) as active_days
    from osmosis.core.fact_transactions
    where tx_status = 'SUCCEEDED'
    and week >= '2022-01-01'
    group by 1,2
    having active_days >= 5)

    select date_trunc (week,block_timestamp) as Week,project_name , count(distinct TX_ID) as txs
    from osmosis.core.fact_transfers t join osmosis.core.dim_labels l on t.CURRENCY = l.address
    where TX_STATUS = 'SUCCEEDED'
    and TRANSFER_TYPE = 'IBC_TRANSFER_OUT'
    and sender in (SELECT Active_Users from active)
    and BLOCK_TIMESTAMP > '2022-01-01'
    and currency in
    (
    with active as (
    select distinct tx_from as Active_Users,
    date_trunc (week,block_timestamp) as Week,
    count (distinct block_timestamp::date) as active_days
    from osmosis.core.fact_transactions
    where tx_status = 'SUCCEEDED'
    and week >= '2022-01-01'
    group by 1,2
    having active_days >= 5)

    select CURRENCY
    from osmosis.core.fact_transfers t join osmosis.core.dim_labels l on t.CURRENCY = l.address
    where TX_STATUS = 'SUCCEEDED'
    and TRANSFER_TYPE = 'IBC_TRANSFER_OUT'
    and sender in (SELECT Active_Users from active)
    and BLOCK_TIMESTAMP > '2022-01-01'
    Run a query to Download Data