mlhcomparing whales
Updated 2022-07-16Copy 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 flow_whale as (
SELECT
COUNT(distinct buyer) as whale_numbers,
sum(volume) as volume,
sum(sale_count)as sales_number
FROM (
select top 100
buyer,
count(DISTINCT tx_id) as sale_count,
sum(price) as volume
from flow.core.fact_nft_sales
group by 1
order by 3 desc
)
)
, ethereum_whale as (
SELECT
COUNT(distinct buyer) as whale_numbers,
sum(volume) as volume,
sum(sale_count)as sales_number
FROM (
select top 100
buyer_address as buyer,
count(DISTINCT tx_hash) as sale_count,
sum(price_usd) as volume
from ethereum.core.ez_nft_sales
where price_usd is not null and block_timestamp::date >= '2022-05-09'
group by 1
order by 3 desc
)
)
, solana_whale as (
SELECT
COUNT(distinct buyer) as whale_numbers,
sum(volume) as volume,
Run a query to Download Data