HosseinUntitled Query
    Updated 2023-01-22
    with t1 as (
    select
    'Swap' as event,
    count(distinct tx_id) as txns_count
    from osmosis.core.fact_swaps
    where block_timestamp > current_date - 90
    and tx_succeeded = 1
    ),

    t2 as (
    select
    'Stake' as event,
    count(distinct tx_id) as txns_count
    from osmosis.core.fact_staking
    where block_timestamp > current_date - 90
    and tx_succeeded = 1
    ),

    t3 as (
    select
    'Liquidity' as event,
    count(distinct tx_id) as txns_count
    from osmosis.core.fact_liquidity_provider_actions
    where block_timestamp > current_date - 90
    and tx_succeeded = 1
    ),

    t4 as (
    select
    'Transfer' as event,
    count(distinct tx_id) as txns_count
    from osmosis.core.fact_transfers
    where block_timestamp > current_date - 90
    and tx_succeeded = 1
    )
    Run a query to Download Data