Ali3NDistribution of Minters By Their Spent Volume for Mints (Claynosaurz )
Updated 2023-03-20
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
›
⌄
with clayt as (select * from solana.core.dim_labels where label = 'claynosaurz'),
maintable as (
select purchaser,
count (distinct tx_id) as Mints_Count,
count (distinct purchaser) as Minters_Count,
count (distinct mint) as Tokens_Count,
sum (mint_price) as Total_Mint_Volume,
avg (mint_price) as Average_Mint_Price,
median (mint_price) as Median_Mint_Price,
min (mint_price) as Minimum_Mint_Price,
max (mint_price) as Maximum_Mint_Price
from solana.core.fact_nft_mints
where mint in (select address from clayt)
and succeeded = 'TRUE'
group by 1)
select case when Total_Mint_Volume < 1 then 'Less Than 1 $SOL'
when total_mint_volume = 1 then '1 $SOL'
when Total_Mint_Volume > 1 and Total_Mint_Volume < 5 then '1 - 5 $SOL'
when Total_Mint_Volume >= 5 and Total_Mint_Volume < 10 then '5 - 10 $SOL'
when Total_Mint_Volume >= 10 and Total_Mint_Volume < 15 then '10 - 15 $SOL'
when Total_Mint_Volume >= 15 and Total_Mint_Volume < 20 then '15 - 20 $SOL'
when Total_Mint_Volume >= 20 and Total_Mint_Volume < 25 then '20 - 25 $SOL'
else 'More Than 25 $SOL' end as type,
count (distinct purchaser) as Minters_count
from maintable
group by 1
Run a query to Download Data