Query editor
SELECT t.blockchain chain, t.contract_address tok, t.block_date d,sum(CASE WHEN t."from" = 0x0000000000000000000000000000000000000000 OR t."from" IS NULL THEN t.amount ELSE 0 END) - sum(CASE WHEN t."to" = 0x0000000000000000000000000000000000000000 OR t."to" IS NULL THEN t.amount ELSE 0 END) net_issue,count(*) nFROM tokens.transfers tWHERE t.blockchain = 'linea' AND t.contract_address IN (0x1bf74c010e6320bab11e2e5a532b5ac15e0b8aa6, 0x2416092f143378750bb29b79ed961ab195cceea5, 0xb5bedd42000b71fdde22d3ee8a79bd49a568fc8f, 0xd2671165570f41bbb3b0097893300b6eb6101e6c) AND t.block_date >= DATE '2023-01-01' AND t.block_date < DATE '2026-11-25'AND (t."from" = 0x0000000000000000000000000000000000000000 OR t."to" = 0x0000000000000000000000000000000000000000 OR t."from" IS NULL OR t."to" IS NULL)GROUP BY 1, 2, 3