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. */WITHREQ_Contract_interactions AS (SELECTCOUNT(*) AS count_daily_interactions,DATE_TRUNC('day', trans.block_time) AS time,EXTRACT(weekFROMtrans.block_time) AS weekFROMgnosis.traces AS transWHEREtrans.to = 0x2171a0dc12a9E5b1659feF2BB20E54c84Fa7dB0CGROUP BY2,3)SELECTr1.count_daily_interactions,r1.time,r1.weekFROMREQ_Contract_interactions AS r1ORDER BY2 DESC NULLS FIRST