Query editor
WITH TRADERS AS (SELECTtrader_a,tx_to,MIN(block_time) as block_timeFROM dex.tradesWHERE project = 'Balancer'GROUP BY 1,2),OPTION_1 AS (SELECT'Swaps through proxy, 2020-09-15 cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERSWHERE block_time <= '2020-09-15'AND tx_to IN ('\x3e66b66fd1d0b02fda6c811da9e0547970db2f21', '\x6317c5e82a06e1d8bf200d21f4510ac2c038ac81')),OPTION_2 AS (SELECT'Swaps through proxy, 2020-12-31 cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERSWHERE block_time <= '2020-12-31'AND tx_to IN ('\x3e66b66fd1d0b02fda6c811da9e0547970db2f21', '\x6317c5e82a06e1d8bf200d21f4510ac2c038ac81')),OPTION_3 AS (SELECT'Swaps through proxy, no cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERSWHERE tx_to IN ('\x3e66b66fd1d0b02fda6c811da9e0547970db2f21', '\x6317c5e82a06e1d8bf200d21f4510ac2c038ac81')),OPTION_4 AS (SELECT'All swaps, 2020-09-15 cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERSWHERE block_time <= '2020-09-15'),OPTION_5 AS (SELECT'All swaps, 2020-12-31 cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERSWHERE block_time <= '2020-12-31'),OPTION_6 AS (SELECT'All swaps, no cut-off' as option,COUNT(DISTINCT(trader_a)) as recipientsFROM TRADERS),OPTIONS AS (SELECT * FROM OPTION_1UNION ALLSELECT * FROM OPTION_2UNION ALLSELECT * FROM OPTION_3UNION ALLSELECT * FROM OPTION_4