elsina2024-11-30: single numbers
    Updated 2024-12-26
    WITH flow_price AS (
    SELECT
    hour,
    avg(price) AS avg_price
    FROM
    flow.price.ez_prices_hourly
    WHERE
    symbol = 'FLOW'
    GROUP BY
    hour
    ),
    filtered_sales AS (
    SELECT
    s.tx_id,
    s.buyer,
    s.seller,
    s.block_timestamp,
    s.nft_collection,
    CASE
    WHEN s.currency ILIKE '%flow%' THEN s.price * fp.avg_price
    ELSE s.price
    END AS adjusted_price
    FROM
    flow.nft.ez_nft_sales s
    JOIN
    flow_price fp
    ON
    date_trunc('hour', s.block_timestamp) = fp.hour
    WHERE
    s.nft_collection = 'A.0b2a3299cc857e29.TopShot' and
    s.block_timestamp between '2024-01-01' and '2024-12-31'
    )
    SELECT
    COUNT(DISTINCT tx_id) AS total_transaction_count,
    COUNT(DISTINCT buyer) AS unique_buyer_count,
    COUNT(DISTINCT seller) AS unique_seller_count,
    QueryRunArchived: QueryRun has been archived