Query editor
WITH fresh AS (SELECT address, MIN(block_time) AS deployedFROM ethereum.creation_tracesWHERE block_time >= now() - interval '25' dayGROUP BY 1),inflow AS (SELECT "to" AS c, approx_distinct("from") AS depositors, count(*) AS n_inFROM erc20_ethereum.evt_TransferWHERE evt_block_time >= now() - interval '25' dayGROUP BY 1),outflow AS (SELECT "from" AS c, approx_distinct("to") AS withdrawers, count(*) AS n_outFROM erc20_ethereum.evt_TransferWHERE evt_block_time >= now() - interval '25' dayGROUP BY 1)SELECT f.address AS contract, f.deployed,i.depositors, o.withdrawers, i.n_in, o.n_outFROM fresh fJOIN inflow i ON i.c = f.addressJOIN outflow o ON o.c = f.addressWHERE i.depositors >= 25 AND o.withdrawers >= 25ORDER BY o.withdrawers DESCLIMIT 120