Query editor
WITH eth AS (SELECTCAST(date_trunc('day', l.block_time) AS date) AS dt,t."from" AS depositorFROM ethereum.logs lJOIN ethereum.transactions t ON l.tx_hash = t.hashWHERE l.topic0 = 0xa945e51eec50ab98c161376f0db4cf2aeba3ec92755fe2fcd388bdbbb80ff196AND l.block_date >= DATE '{{start_date}}'AND l.block_date < DATE '{{end_date}}'AND l.contract_address IN (0x12d66f87a04a9e220743712ce6d9bb1b5616b8fc,0x47ce0c6ed5b0ce3d3a51fdb1c52dc66a7c3c2936,0x910cbd523d972eb0a6f4cae4618ad62622b39dbf,0xa160cdab225685da1d56aa342ad8841c3b53f291)),bnb AS (SELECT evt_block_date AS dt, evt_tx_from AS depositorFROM tornado_cash_bnb.tornadocashbnb_evt_depositWHERE evt_block_date >= DATE '{{start_date}}' AND evt_block_date < DATE '{{end_date}}')SELECT dt AS block_date, 'Ethereum' AS chain,COUNT(*) AS deposits, COUNT(DISTINCT depositor) AS unique_depositorsFROM eth GROUP BY 1UNION ALLSELECT dt, 'BNB Chain', COUNT(*), COUNT(DISTINCT depositor)FROM bnb GROUP BY 1ORDER BY 1, 2