binhachon15. AB2 Gallery NFTs - Payment transactions
    Updated 2022-01-31
    with AB2_gallery_txs as (
    select
    distinct tx_group_id
    from algorand.application_call_transaction
    where try_base64_decode_string(tx_message:txn:note::string) = 'ab2.gallery'
    ),
    payment as (
    select
    tx_group_id,
    count(tx_group_id) as number_of_transactions,
    count_if(amount > 0) as number_of_transactions_with_amount_not_null
    from algorand.payment_transaction
    where tx_group_id in (select tx_group_id from AB2_gallery_txs)
    group by tx_group_id
    )
    select
    number_of_transactions,
    number_of_transactions_with_amount_not_null,
    count(*)
    from payment
    group by number_of_transactions, number_of_transactions_with_amount_not_null
    order by number_of_transactions, number_of_transactions_with_amount_not_null

    Run a query to Download Data