binhachonSwap Profiles In May & June - #4
    Updated 2022-07-07
    with swapper as (
    select
    swapper,
    count(distinct tx_group_id) as freq
    from flipside_prod_db.algorand.swaps
    where block_timestamp::date >= '2022-05-01'
    and block_timestamp::date < '2022-07-01'
    group by 1
    ),
    ALGO_balance as (
    select
    address,
    created_at,
    block_timestamp
    from flipside_prod_db.algorand.account
    left join flipside_prod_db.algorand.block on (block_id = created_at)
    where address in (select swapper from swapper)
    )
    select
    date_trunc('month', block_timestamp) as time,
    count(*) as number_of_swappers
    from ALGO_balance
    group by 1
    Run a query to Download Data