boomer77After August
    Updated 2021-09-07
    select
    date_trunc('day', block_timestamp) as block_day,
    count(event_to),
    count(distinct tx_id),
    sum(price_usd),
    avg(price_usd)
    from ethereum.nft_events
    where contract_address = '0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270' and event_type = 'sale' and block_day > '2021-07-31'
    and token_id in (select distinct token_id
    from ethereum.nft_metadata
    where contract_address = '0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270'
    and lower(token_name) LIKE '%fidenza%')
    group by 1
    order by 1 desc