adambalamotor22
    Updated 2022-09-04
    with table1 as (
    select buyer_address as Buyers,
    count (distinct tx_hash) as TX_Count,
    count (distinct tokenid) as Tokens_Count,
    sum (price_usd) as USD_Value,
    sum (price) as ETH_Value
    FROM optimism.core.ez_nft_sales
    where platform_name = 'quixotic' and EVENT_TYPE = 'sale' and CURRENCY_SYMBOL = 'ETH' and NFT_ADDRESS=lower('0x5c9D55b78FEBCC2061715BA4f57EcF8EA2711F2c')

    group by 1)

    select avg(TX_Count),
    avg (Tokens_Count),
    avg (USD_Value),
    avg (ETH_Value)
    from table1
    Run a query to Download Data