select sum(balance) from algorand.account where address in (
select distinct sender from algorand.application_call_transaction
where try_base64_decode_string(tx_message:txn:note::string) = 'Market: mt' and app_id=465814318
and sender in (select distinct sender from algorand.application_call_transaction
where try_base64_decode_string(tx_message:txn:note::string) like 'af/gov1:j{"com":%' and app_id=465818260 ))