with tab1 as (
select
date_trunc('day', block_timestamp) as date1,
count(*) as Flow_sales
from flow.core.fact_nft_sales
group by 1 )
, tab2 as (
select
date_trunc('day', block_timestamp) as date2,
count(*) as Solana_sales
from solana.core.fact_nft_sales
group by 1 )
select
split(nft_collection, '.')[2],
sum(price)
from flow.core.fact_nft_sales
where block_timestamp not between '2022-05-01' and '2022-05-31'
--and in (select * from tab1)
group by 1
Order by 2 DESC
limit 10