rajsUniswap NFT USDC Airdrop by Tier
    Updated 2022-12-20
    with reqd_tab as
    (
    SELECT
    address,
    sum(no_of_nfts) as no_of_nfts
    FROM
    (
    SELECT
    nft_from_address as address,
    -count(*) as no_of_nfts
    from ethereum.core.ez_nft_transfers
    where nft_address = '0xc466e2f98f95cc4cde31b134906f59e8264c1be0'
    -- and tx_hash = '0x241b928b5528184dc093c6d373edadb07e9b56375b57ab99e9c42d05e9413ff4'
    and block_timestamp <= '2022-04-15'
    group by 1

    UNION ALL

    SELECT
    nft_to_address as address,
    count(*) as no_of_nfts
    from ethereum.core.ez_nft_transfers
    where nft_address = '0xc466e2f98f95cc4cde31b134906f59e8264c1be0'
    -- and tx_hash = '0x241b928b5528184dc093c6d373edadb07e9b56375b57ab99e9c42d05e9413ff4'
    and block_timestamp <= '2022-04-15'
    group by 1

    UNION ALL

    SELECT
    nft_to_address as address,
    count(*) as no_of_nfts
    from ethereum.core.ez_nft_transfers
    where nft_address = '0xc466e2f98f95cc4cde31b134906f59e8264c1be0'
    -- and tx_hash = '0x241b928b5528184dc093c6d373edadb07e9b56375b57ab99e9c42d05e9413ff4'
    and block_timestamp >= '2022-06-21 5:59:00.000'
    Run a query to Download Data