ArashhTrending NFT Projects-2
Updated 2022-06-14Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
›
⌄
with t1 as(
select
count(CONTRACT_NAME) as numer_of_transactions,
CONTRACT_NAME as name_of_collection
FROM flow.core.fact_nft_sales a
full join flow.core.dim_contract_labels b
on a.NFT_COLLECTION=b.EVENT_CONTRACT
WHERE
block_timestamp >= '2022-05-9'
group by CONTRACT_NAME
order by numer_of_transactions desc
limit 10),
t2 as
(select
sum(PRICE) as volume,
CONTRACT_NAME as name_of_collection
FROM flow.core.fact_nft_sales a
full join flow.core.dim_contract_labels b
on a.NFT_COLLECTION=b.EVENT_CONTRACT
WHERE
block_timestamp >= '2022-05-9'
group by CONTRACT_NAME
order by volume desc),
t3 as( select * from t2
where volume<10000000
limit 10
)
select *
from t1 a
inner join t3 b
on a.NAME_OF_COLLECTION=b.NAME_OF_COLLECTION
Run a query to Download Data