Query editor
/*Table(s): transfers_ethereum.ethReason: Based on addresses mentionedTable(s): aave_ethereum.supply, aave_ethereum.borrowReason: Curated dataset recommendationsTable(s): aave_v2_ethereum.LendingPool_evt_DepositReason: Based on contract addresses or possible project names*/WITH deposits AS (SELECTDATE_TRUNC('day', block_time) AS day,symbol,SUM(amount) AS total_depositedFROM aave_ethereum.supplyWHEREdepositor = 0x8E978fAEa665092aCF47f57BC94785C4ffecB756GROUP BY1,2), withdrawals AS (SELECTDATE_TRUNC('day', block_time) AS day,symbol,SUM(amount) AS total_withdrawnFROM aave_ethereum.supplyWHEREwithdrawn_to = 0x8E978fAEa665092aCF47f57BC94785C4ffecB756GROUP BY1,2), borrows AS (SELECTDATE_TRUNC('day', block_time) AS day,symbol,SUM(amount) AS total_borrowedFROM aave_ethereum.borrowWHEREborrower = 0x8E978fAEa665092aCF47f57BC94785C4ffecB756GROUP BY1,2), repayments AS (SELECTDATE_TRUNC('day', block_time) AS day,symbol,SUM(amount) AS total_repaidFROM aave_ethereum.borrowWHERErepayer = 0x8E978fAEa665092aCF47f57BC94785C4ffecB756GROUP BY1,2)SELECTCOALESCE(d.day, w.day, b.day, r.day) AS day,COALESCE(d.symbol, w.symbol, b.symbol, r.symbol) AS symbol,