Query editor
WITH defi_users AS (SELECT DISTINCT"from"FROM ethereum.transactionsWHERE"to" IN (SELECT DISTINCTaddressFROM ethereum.contractsWHEREname IN ('DEX', 'Lending', 'Staking', 'DeFi'))) /* Correctly comment the following section until 'SELECT DISTINCT wallet_address ...' as the schema does not exist *//*AND "from" IN (SELECT DISTINCTwallet_addressFROM trust_wallet.user_addresses)*/SELECTDATE_TRUNC('day', t.block_time) AS day,COUNT(DISTINCT t."from") AS daily_defi_walletsFROM ethereum.transactions AS tJOIN defi_users AS dON t."from" = d."from"GROUP BY1ORDER BY1