select player,
play_type,
count(distinct(tx_id)) as txn_num,
sum(price) as total_price,
avg(price) as avg_price,
median(price) as median_price,
max(price) as max_price,
min(price) as min_price
from flow.core.dim_allday_metadata
left join flow.core.ez_nft_sales
using (nft_id)
where player not in ('N/A', '')
and price is not null
and nft_collection = 'A.e4cf4bdc1751c65d.AllDay'
and block_timestamp::date >= '2022-09-09'
group by player, play_type
order by total_price desc
limit 10