hbd19942. Degen Apes
Updated 2022-10-08Copy 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
34
35
36
›
⌄
with maintable as (select
contract_name,
a.*,
TOKEN_METADATA:Clothing as jersey,
TOKEN_METADATA:Eyewear as eyewear,
TOKEN_METADATA:Head as head
from solana.core.fact_nft_sales a
left join solana.core.dim_nft_metadata b on a.mint=b.mint
where CONTRACT_NAME = 'Degen Apes')
(select
'Jersey' as attribute_type,
jersey as attribute,
count(*) sale_count
from maintable
where attribute not in ('No Traits')
group by 2
order by 3 desc)
UNION
(select
'Eyewear' as attribute_type,
eyewear as attribute,
count(*) sale_count
from maintable
where attribute not in ('No Traits')
group by 2
order by 3 desc)
UNION
(select
'Head' as attribute_type,
head as attribute,
count(*) sale_count
from maintable
where attribute not in ('No Traits')
group by 2
Run a query to Download Data