Query editor
SELECTo.address as output_address,i.address as input_address,COUNT(DISTINCT i.tx_id) AS count_of_transactionsFROMbitcoin.outputs AS oLEFT JOIN bitcoin.inputs AS i ON i.tx_id = o.tx_idWHERE(i.address = 'bc1q0jrxz4jh59t5qsu7l0y59kpfdmgjcq60wlee3h' AND o.address != 'bc1q0jrxz4jh59t5qsu7l0y59kpfdmgjcq60wlee3h')OR (o.address = 'bc1q0jrxz4jh59t5qsu7l0y59kpfdmgjcq60wlee3h' AND i.address != 'bc1q0jrxz4jh59t5qsu7l0y59kpfdmgjcq60wlee3h')GROUP BYo.address,i.addressORDER BYcount_of_transactions desc;