winnie-fsCumulative Lifetime Flow Owned by Pre-Sale Zeedz Owners copy
Updated 2023-04-11
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
›
⌄
-- forked from jennifertran / Cumulative Lifetime Flow Owned by Pre-Sale Zeedz Owners @ https://staging.flipsidecrypto.xyz/jennifertran/q/cumulative-flow-owned-by-pre-sale-zeedz-owners--y8GCm
with
inoContracts as (
select
event_contract
from
flow.core.dim_contract_labels
where
contract_name like '%ZeedzINO%'
),
inoItems as (
select
event_contract
from
flow.core.dim_contract_labels
where
contract_name like '%ZeedzMarketplace%'
),
inoOwners as (
select distinct
(buyer)
from
flow.core.ez_nft_sales sales
join inoContracts on inoContracts.event_contract = sales.nft_collection
where
nft_collection is not null
group by
buyer
),
flowOwnersByInoOwners as (
select
sum(amount) as cumulative_flow_owned,
recipient
from
flow.core.ez_token_transfers transfers
Run a query to Download Data