--this can be modified to a list of wallets
--must divide list into 3 chunks if you are trying to export since csv only lets you export 100,000 rows at a time
select distinct address from algorand.nft.ez_nft_asset nft
inner join algorand.core.fact_account_asset acc
on acc.asset_id = nft.nft_asset_id
where acc.amount > 0