SniperQ5
Updated 2022-10-14
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
Base as (
SELECT
Buys_Base.buyer as wallet,
Buys_Base.team,
Buys_Base.counts - Sale_Base.counts as Hold_Count
from
(select
buyer,
team,
count(distinct tx_id) as counts
from
flow.core.EZ_NFT_SALES NFTS
join flow.core.dim_topshot_metadata TopShop on NFTS.nft_id = TopShop.nft_id
where
TX_SUCCEEDED = 'TRUE'
group by
1,
2)Buys_Base
left join
(select
seller,
team,
count(distinct tx_id) as counts
from
flow.core.EZ_NFT_SALES NFTS
join flow.core.dim_topshot_metadata TopShop on NFTS.nft_id = TopShop.nft_id
where
TX_SUCCEEDED = 'TRUE'
group by
1,
2)Sale_Base
on Buys_Base.buyer = Sale_Base.seller
and Buys_Base.team = Sale_Base.team
having
Run a query to Download Data