ArioDistribution of Users by # of Pools
    Updated 7 days ago
    with tab1 as (
    select
    FROM_ADDRESS as "User Address",
    count(POOL_NAME) as "# Pools"
    from thorchain.defi.fact_swaps
    where 1=1
    and POOL_NAME is not NULL
    group by 1
    )
    select
    case when "# Pools" = 1 then 'A: 1'
    when "# Pools" = 2 then 'B: 2'
    when "# Pools" = 3 then 'C: 3'
    when "# Pools" = 4 then 'D: 4'
    when "# Pools" = 5 then 'E: 5'
    else 'F: > 5'
    end as "# Pools Bin",
    count("User Address") as "# Users"
    from tab1
    group by 1
    order by "# Users" desc


    Last run: 7 days ago
    # Pools Bin
    # Users
    1
    C: 3281267
    2
    F: > 5222594
    3
    B: 2195189
    4
    D: 448032
    5
    A: 144839
    6
    E: 517684
    6
    96B
    3s