Aephiaplayer reg
    Updated 2023-09-26

    SELECT
    fact_events.*
    --distinct value:parsed:info:source as reg_players
    --count(distinct signers[0]) as reg_players



    from solana.core.fact_events, lateral flatten(input => inner_instruction:instructions)
    WHERE program_id = 'pprofELXjL5Kck7Jn5hCpwAL82DpTkSYBENzahVtbc9'
    AND value:parsed:type = 'createAccount'
    --AND tx_id = '5E2FuzoXJEpyraJNFvFR3PiZXxdnk5BjWGu6muXEkGKY4qL3pkNrp2w1ExVg5x3HWgTjw7YaBs3DP967mCoBL7Tr'
    --AND instruction:parsed:info:mint IN ('Ev3xUhc1Leqi4qR2E5VoG9pcxCvHHmnAaSRVPg485xAT', '267DbhCypYzvTqv72ZG5UKHeFu56qXFsuoz3rw832eC5', '9czEqEZ4EkRt7N3HWDcw9qqwys3xRRjGdbn8Jhk8Khwj', 'AkNbg12E9PatjkiAWJ3tAbM479gtcoA1gi6Joa925WKi', 'CWxNX9sTexuqvQefqskhP9f6AP5C8hq2VNkicRseqAT5', '2iMhgB4pbdKvwJHVyitpvX5z1NBNypFonUgaSAt9dtDt', '9ABNesWj7NVdkDgko7UjVaDp5pTh8a6wfXHLWz3bZM6W', '7V9C2XUQgCb31n7hGKqKGu4ENcvqXhJLJzU77CAQtXhw', 'DdpXnnYsyUQgJby8TDHbmPwkKyGF4U6bXwCXTQZsrfKP', '9MvZS3TVfv4DZL9W2pT12po384aBHf7wi89KXQ9Z7uwW', 'FpwV1Da6BZJnYPr1JSLUm14UwBmZHA7J5WLY4TXgbde8', 'HzBx8PP86pyPrrboTHqPYWhxnEB5vXDHDBP8femWfPTS', '2bCgKTo11QayWBy6QryHZMqZL2ZgWd5LEAZKiTGQi4g7', 'H2jHqvXA2oxSpEp6dKkpK7WeszQEdFW5n25mNfrJFAc1', '5f1jUARhtSypVA4uTpgpLp76WYGdB2dGr8zMbh4WjYRf', '9ifQ16N5DdUFoejCwsgR73ihUwadAe3srCo9HhQe2zL2', 'DsJHgpnNovjJ981QJJnqMggexAekNawbSavfV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b4mhSySBcryzBPamw8v4xeneFRA6xTUA4JA99w6vqey', 'H3cgBXWpUiNsYjUWS7cNR5Bmehh7k5CgpJccc5wSfRbJ', 'DB8CSxoakPRtXhHcc2cA3iETWfGaYY6zE2T8huJTE2Nw', '2BMTgfgapuqYBwSRGu6HCafwDGRVTxMkQVhYrNWQGTWH', '56nh4FvMJnSpkWJcmXc1nJtYhSQXuqb7nVMGALr31RVc', 'F3HitKsp52UPqBMEWSeTFqrGgnfYbS9DMrJCz9dM3w6D', 'GxpbUDxYYvxiUejHcAMzeV2rzdHf6KZZvT86ACrpFgXa', '7SUoWHWWJCxCe5g9XqZkCRufGHXRV8nauuz69HPjuewr', 'DTbNmLWfu1pm4AuXRKYTApnDNfxMz73VET7nW5wizG5t', 'ARNZXUQoBKx3JCX3UJB4aitSnvcjMMphN9YVDFy1PdKq', 'GmVKV9W3qZcERxk7hjqwRDcn9Kgtz3XDi7KfFLdGqyaW', 'MEXfyQHowwqoTHsN6yjfeXVaxZxALUFJAHuzY8gFiUu', 'BBUTCn3jcXKjFYuuYtY8MNo8bDg9VsZaKwaSYnRr2Qse')
    --AND value:parsed:info:mint IN ('9ifQ16N5DdUFoejCwsgR73ihUwadAe3srCo9HhQe2zL2')
    --AND signers[0] = 'Gnru4mue9vDYqzn5C4H6sQfpghSFv7JpxCh1qsf8QxCH'
    --AND value:parsed:info:mint NOT IN ('ammoK8AkX2wnebQb35cDAZtTkvsXQbi82cGeTnUvvfK', 'foodQJAztMzX1DKpLaiounNe2BDMds5RNuPC6jsNrDG', 'fueL3hBZjLLLJHiFH9cqZoozTG3XQZ53diwFPwbzNim', 'tooLsNYLiVqzg8o4m3L2Uetbn62mvMWRqkog6PQeYKL')
    AND block_timestamp > '2023-09-22' --AND block_timestamp < '2023-04-01'

    --group by 1



    /*
    SELECT
    --fact_events.*
    --count(distinct value:parsed:info:account) as reg_players
    count(distinct signers[0]) as reg_players


    from solana.core.fact_events, lateral flatten(input => inner_instruction:instructions)
    WHERE program_id = 'SAGEqqFewepDHH6hMDcmWy7yjHPpyKLDnRXKb3Ki8e6'
    --AND value:parsed:type = 'assign'
    --AND instruction:parsed:info:mint IN ('Ev3xUhc1Leqi4qR2E5VoG9pcxCvHHmnAaSRVPg485xAT', '267DbhCypYzvTqv72ZG5UKHeFu56qXFsuoz3rw832eC5', '9czEqEZ4EkRt7N3HWDcw9qqwys3xRRjGdbn8Jhk8Khwj', 'AkNbg12E9PatjkiAWJ3tAbM479gtcoA1gi6Joa925WKi', 'CWxNX9sTexuqvQefqskhP9f6AP5C8hq2VNkicRseqAT5', '2iMhgB4pbdKvwJHVyitpvX5z1NBNypFonUgaSAt9dtDt', '9ABNesWj7NVdkDgko7UjVaDp5pTh8a6wfXHLWz3bZM6W', '7V9C2XUQgCb31n7hGKqKGu4ENcvqXhJLJzU77CAQtXhw', 'DdpXnnYsyUQgJby8TDHbmPwkKyGF4U6bXwCXTQZsrfKP', '9MvZS3TVfv4DZL9W2pT12po384aBHf7wi89KXQ9Z7uwW', 'FpwV1Da6BZJnYPr1JSLUm14UwBmZHA7J5WLY4TXgbde8', 'HzBx8PP86pyPrrboTHqPYWhxnEB5vXDHDBP8femWfPTS', '2bCgKTo11QayWBy6QryHZMqZL2ZgWd5LEAZKiTGQi4g7', 'H2jHqvXA2oxSpEp6dKkpK7WeszQEdFW5n25mNfrJFAc1', '5f1jUARhtSypVA4uTpgpLp76WYGdB2dGr8zMbh4WjYRf', '9ifQ16N5DdUFoejCwsgR73ihUwadAe3srCo9HhQe2zL2', 'DsJHgpnNovjJ981QJJnqMggexAekNawbSavfV1QuTpis', 'HJBmBYyGR8z1oajAM4jiK46uobuxeJoKDYpFwzWHBvhb', '4txpjHspP4usEsQTr3AcrpyHVjN4fi3d4taM6cmKJnd1', 'HsdbLvZrEgN2ZhsrZs5ag4F2FNFCHjjuXPfbVAhkeJBZ', '6SqLuwHNRC1qjo9KATLKJLszFHMWyYaNxDXraCEUtfdR', '8RveLFEyteyL1vbCKPQJxjf3JT1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r31RVc', 'F3HitKsp52UPqBMEWSeTFqrGgnfYbS9DMrJCz9dM3w6D', 'GxpbUDxYYvxiUejHcAMzeV2rzdHf6KZZvT86ACrpFgXa', '7SUoWHWWJCxCe5g9XqZkCRufGHXRV8nauuz69HPjuewr', 'DTbNmLWfu1pm4AuXRKYTApnDNfxMz73VET7nW5wizG5t', 'ARNZXUQoBKx3JCX3UJB4aitSnvcjMMphN9YVDFy1PdKq', 'GmVKV9W3qZcERxk7hjqwRDcn9Kgtz3XDi7KfFLdGqyaW', 'MEXfyQHowwqoTHsN6yjfeXVaxZxALUFJAHuzY8gFiUu', 'BBUTCn3jcXKjFYuuYtY8MNo8bDg9VsZaKwaSYnRr2Qse')
    --AND value:parsed:info:mint IN ('9ifQ16N5DdUFoejCwsgR73ihUwadAe3srCo9HhQe2zL2')
    --AND signers[0] = 'Gnru4mue9vDYqzn5C4H6sQfpghSFv7JpxCh1qsf8QxCH'
    --AND value:parsed:info:mint NOT IN ('ammoK8AkX2wnebQb35cDAZtTkvsXQbi82cGeTnUvvfK', 'foodQJAztMzX1DKpLaiounNe2BDMds5RNuPC6jsNrDG', 'fueL3hBZjLLLJHiFH9cqZoozTG3XQZ53diwFPwbzNim', 'tooLsNYLiVqzg8o4m3L2Uetbn62mvMWRqkog6PQeYKL')
    Run a query to Download Data