Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */WITHtransfers AS (SELECTDATE_TRUNC('day', evt_block_time) AS day,(CAST(value AS DOUBLE) / 1e+18) AS value,"from" AS wallet,evt_tx_hashFROMerc20_polygon.evt_TransferWHERE"to" = 0x9a818e78991df787bd706f228c9e99cf81e10cffAND evt_tx_hash <> 0xee0221f1a9f0fcf2b0683841a1264455c79912e5ecfc03088163fe69c9029000)SELECTCOUNT(DISTINCT wallet) AS num_users,SUM(CAST(value AS DOUBLE)) AS total_token_spend,COUNT(evt_tx_hash) AS total_num_transactionsFROMtransfers