CryptoIcicleFLASH BOUNTY: FLOW NFT Floor Tracker - Average Number of NFTs per Wallet
    Updated 2022-10-27

    -- Pay by Quality Your score determines your final payout.
    -- Grand Prize 153.061 FLOW (A score of 11 or 12 earns you a Grand Prize title)
    -- Payout 102.041 FLOW
    -- Score Multiplier 0-7 : 0% 8 : 50% 9 : 75% 10 : 100% 11 : 125% 12 : 150%
    -- Payout Network Flow
    -- Level Intermediate
    -- Difficulty Hard
    -- Let’s sweep some floors. Build a dashboard that tracks the floor by contract for various NFT projects in the FLOW ecosystem.
    -- We’re interested to see how you come up with your own methodology.
    -- Include at least five projects in your dashboard, as well as any interesting metrics, notes, trends, or outliers that you see.
    -- BONUS: Post your dashboard on Twitter and tag @flipsidecrypto and any relevant accounts!

    -- SQL Credit: https://app.flipsidecrypto.com/velocity/queries/9c9bed26-4380-44d0-bd7e-0bed48864df4
    with nft_sales as (
    select
    split(nft_collection,'.')[2] as name,
    *
    from flow.core.fact_nft_sales
    where block_timestamp >= '{{start_date}}'
    ),
    top_n as (
    select
    name,
    nft_collection,
    count(distinct tx_id) as n_txns,
    sum(price) as sale_volume,
    count(distinct buyer) as n_wallets_daily
    from nft_sales
    group by name,nft_collection
    order by sale_volume desc
    limit {{top_n}}
    )
    select name, avg(n_nfts) as average_n_nfts , avg(avg_price) as avg_price, median(median_price) as median_price from (
    SELECT
    Run a query to Download Data