0xHaM-dFlowverse - Time based Cohort Wide
    Updated 2024-09-07
    -- forked from Near - Time based Cohort Wide @ https://flipsidecrypto.xyz/studio/queries/97dfffc0-0fba-4665-b578-a0d841933cf9

    -- forked from Avalanche - Time based Cohort Wide @ https://flipsidecrypto.xyz/edit/queries/30c5c221-2545-4cab-a7f8-d5101c110db0

    -- forked from Vertex - Time based Cohort Wide @ https://flipsidecrypto.xyz/edit/queries/bf6452ec-d6f2-4a55-b0ff-65a4b16265d6

    -- forked from Aptos - Time based Cohort Wide @ https://flipsidecrypto.xyz/edit/queries/e35e250f-faea-4ec5-9d2c-e44fb9350b9d

    -- forked from Terra Time based Cohort Wide @ https://flipsidecrypto.xyz/edit/queries/b47e0739-b3bf-473e-aa3a-55b074804e8e

    with qmain as (
    SELECT
    BLOCK_TIMESTAMP,
    tx_id,
    buyer as user
    from flow.nft.ez_nft_sales
    WHERE marketplace in (
    'A.4eb8a10cb9f87357.NFTStorefront',
    'A.4eb8a10cb9f87357.NFTStorefrontV2'
    )

    UNION ALL

    SELECT
    BLOCK_TIMESTAMP,
    tx_id,
    SELLER as user
    from flow.nft.ez_nft_sales
    WHERE marketplace in (
    'A.4eb8a10cb9f87357.NFTStorefront',
    'A.4eb8a10cb9f87357.NFTStorefrontV2'
    )
    )
    , base_table as ( -- this is data prep
    select
    user as address
    QueryRunArchived: QueryRun has been archived