adambala101 doodles
    Updated 2022-09-22
    with
    Backgroundss as
    (select
    ((count(distinct TOKEN_ID)/10000))*100 as " Backgroundss rarity ",
    TOKEN_METADATA:background as Backgrounds ,TOKEN_ID as "Backgrounds TOKEN_ID"
    from ethereum.core.dim_nft_metadata where CONTRACT_ADDRESS ='0x8a90cab2b38dba80c64b7734e58ee1db38b8992e'
    group by 2,3 order by 1 asc )

    ,bodys as
    (select
    ((count(distinct TOKEN_ID)/10000))*100 as "bodys rarity" ,
    (TOKEN_METADATA:body) as body ,TOKEN_ID as "body TOKEN_ID"
    from ethereum.core.dim_nft_metadata where CONTRACT_ADDRESS ='0x8a90cab2b38dba80c64b7734e58ee1db38b8992e'
    group by 2,3 order by 1 asc )

    ,facess as
    (select
    ((count(distinct TOKEN_ID)/10000))*100 as "facess rarity",
    (TOKEN_METADATA:face) as faces ,TOKEN_ID as "faces TOKEN_ID"
    from ethereum.core.dim_nft_metadata where CONTRACT_ADDRESS ='0x8a90cab2b38dba80c64b7734e58ee1db38b8992e'
    group by 2,3 order by 1 asc )

    ,hairs as
    (select
    ((count(distinct TOKEN_ID)/10000))*100 as " hairs rarity ",
    (TOKEN_METADATA:hair) as hair ,TOKEN_ID as "hair TOKEN_ID"
    from ethereum.core.dim_nft_metadata where CONTRACT_ADDRESS ='0x8a90cab2b38dba80c64b7734e58ee1db38b8992e'
    group by 2,3 order by 1 asc )

    , heads as
    (select
    ((count(distinct TOKEN_ID)/10000))*100 as "heads rarity",
    (TOKEN_METADATA:head) as head ,TOKEN_ID as "heads TOKEN_ID"
    from ethereum.core.dim_nft_metadata where CONTRACT_ADDRESS ='0x8a90cab2b38dba80c64b7734e58ee1db38b8992e'
    group by 2,3 order by 1 asc )

    Run a query to Download Data