MLDZMNGOS2
    Updated 2023-02-10
    --Credit for #Margu to complete addresses that I found

    select
    date_trunc('{{Time_basis}}', BLOCK_TIMESTAMP) as date,
    case
    when PROGRAM_ID in ('traderDnaR5w6Tcoi3NFm53i48FTDNbGjBSZwWXDRrg','FLEET1qqzpexyaDpqb2DGsSzE2sDCizewCg9WjrA6DBW','gateVwTnKyFrE8nxUUgfzoZTPKgJQZUbLsEidpG4Dp2') then 'Star Atlas'
    when PROGRAM_ID in ('EXpwP3pqPzA4arF8i89w7smtvxHzyYETmCpPspLPrR7J','STkwf3sbMapjy7KV3hgrJtcVvY4SvRxWQ8pj4Enw1i5','comp8FLpN5bbNUC2fhnkFtM7T16DWvaHs8N5dcaoZWP') then 'Aurory'
    when PROGRAM_ID in ('srmv4uTCPF81hWDaPyEN2mLZ8XbvzuEM6LsAxR8NpjU','StaKe9nb7aUjXpjpZ45o6uJBsZxj2BWCDBtjk8LCg2v','CrAFTUv7zKXBaS5471aCwHx7mq9Jp1eQQB5FQgdiSLyi','HAbiTatJVqoCJd9asyr6RxMEdwtfrQugwp7VAFyKWb1g') then 'Genopets'
    end as games,
    count(distinct SIGNERS[0]) as no_users,
    sum(no_users) over (partition by games order by date) as total_users
    from solana.core.fact_events
    where SUCCEEDED='TRUE'
    and BLOCK_TIMESTAMP >= CURRENT_DATE - {{Time_period_days}}
    group by 1,2 having games is not null
    Run a query to Download Data