select
play_type,
avg(price) as Average_Sales_Price,
median(price) as Median_Sales_Price
from flow.core.ez_nft_sales left outer join flow.core.dim_allday_metadata
on flow.core.ez_nft_sales.nft_id = flow.core.dim_allday_metadata.nft_id
where play_type is not null
--and play_type not like 'Pressure'
group by 1
order by 2 desc