danhanUntitled Query
Updated 2022-07-18
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 top 100
buyer,
count(DISTINCT tx_id) as sale_flow_count,
sum(price) as volume
from flow.core.fact_nft_sales
group by 1
order by 3 desc
)
, flow as (
select
block_timestamp::date as date,
count(DISTINCT tx_id) as sales,
sum(sales) over (order by date asc) as cum_sales,
sum(price) as volume
from flow.core.fact_nft_sales
where block_timestamp::date >= '2022-05-09'
and buyer in ( select buyer from flow_whale)
group by 1
order by 1
)
, ethereum_whale as (
select top 100
buyer_address,
count(DISTINCT tx_hash) as sale_eth_count,
sum(price_usd) as volume
from ethereum.core.ez_nft_sales
where price_usd is not null and block_timestamp::date >= '2022-01-01'
group by 1
order by 3 desc
)
, ethereum as (
select
block_timestamp::date as date,
count(DISTINCT tx_hash) as sales,
sum(sales) over (order by date asc) as cum_sales
Run a query to Download Data