Query editor
WITH targets AS (SELECT * FROM (VALUES (0x816e4a1589e363720c15c54dfd2efd16f6377070), (0x397b28d85d77fef1576e129bb35b322c2bee1ba1)) AS t(a)),builders AS (SELECT * FROM (VALUES(0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97, 'Titan'),(0x396343362be2a4da1ce0c1c210945346fb82aa49, 'Quasar'),(0xdadb0d80178819f2319190d340ce9a924f783711, 'BuilderNet'),(0xfb74767c1ce1aada0a0e114441173b57f8c1571b, 'Eureka'),(0xd87f3d6c5624e8b02be13c2c92f8511b88b94d96, 'bobTheBuilder'),(0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5, 'beaverbuild'),(0x6c42a0b5d13059fa36d5567ab04f83bab57bbf0e, 'ultrasound builder'),(0x85c2e985a4fb5c3ff25ee27ee424abd851e4cb33, 'bombora.build')) AS t(address, name))SELECT t.a as target_address, b.name as builder, sum(tr.value)/1e18 as total_eth, count(*) as n,min(tr.block_time) as first_seen, max(tr.block_time) as last_seenFROM ethereum.traces trJOIN targets t ON t.a = tr."to"JOIN builders b ON b.address = tr."from"WHERE tr.block_date >= current_date - interval '365' dayAND tr.value > 0 AND tr.success AND tr.tx_successGROUP BY 1,2ORDER BY 1, total_eth DESC