Updated 2022-07-05
    with addresses as(
    select distinct address, count(*) as NFT from "FLIPSIDE_PROD_DB"."ALGORAND"."ACCOUNT_ASSET"
    where (asset_id = 790226679 or asset_id = 790227414)
    and amount = 1
    group by address )
    select count(*) from addresses
    where NFT = 2




    Run a query to Download Data