banbannardFLOW vs Others NFT Behaviour 2
    Updated 2022-07-17
    with base as (select date_trunc('day', block_timestamp) as first_buying_date,
    buyer,
    nft_collection
    from flow.core.fact_nft_sales
    where price > 0
    and tx_succeeded = 'TRUE'),

    flow as (select date_trunc('day', block_timestamp) as selling_date,
    count(distinct(a.tx_id)) as flip_tx_count_flow
    from flow.core.fact_nft_sales a
    join base b
    on a.seller = b.buyer
    and a.nft_collection = b.nft_collection
    where selling_date > first_buying_date
    and datediff(day, selling_date, first_buying_date) <= 7
    group by 1),

    base2 as (select date_trunc('day', block_timestamp) as first_buying_date,
    buyer_address,
    nft_address
    from ethereum.core.ez_nft_sales
    where price > 0),

    eth as (select date_trunc('day', block_timestamp) as selling_date,
    count(distinct(a.tx_hash)) as flip_tx_count_eth
    from ethereum.core.ez_nft_sales a
    join base2 b
    on a.seller_address = b.buyer_address and a.nft_address = b.nft_address
    where selling_date > first_buying_date
    and datediff(day, selling_date, first_buying_date) <= 7
    group by 1),

    base3 as (select date_trunc('day', block_timestamp) as first_buying_date,
    purchaser,
    mint
    from solana.core.fact_nft_sales
    Run a query to Download Data