SELECT sum(balance) as algoamount from algorand.account
where address in
(SELECT receiver from algorand.payment_transaction
where tx_group_id
in(SELECT tx_group_id from algorand.application_call_transaction
where try_base64_decode_string(tx_message:txn:note::string)='Market: mt' and app_id='465814318'))