Elprognerd4 new Star Atlas
    Updated 2023-02-11
    with t1 as (
    select
    'Star Atlas' as game,
    min(block_timestamp) as date1,
    signers[0] as "players"
    FROM solana.core.fact_events
    where program_id='ATLocKpzDbTokxgvnLew3d7drZkEzLzDpzwgrgWKDbmc'
    group by 1, 3
    )

    SELECT
    date_trunc('day', date1) as date,
    game,
    count(*) as "Number of new players",
    sum("Number of new players") over (order by date asc) as "Cumulative number of new players"
    from t1
    group by 1, 2
    order by 1


    Run a query to Download Data