with cex_address AS (
SELECT address
FROM algorand.labels
WHERE label_type = 'cex'
)
SELECT sum(amount) AS amount
FROM algorand.payment_transaction a
INNER JOIN cex_address c ON c.address = a.sender
WHERE c.address = a.sender
AND block_timestamp BETWEEN '2022-02-10' AND '2022-02-20'