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. */SELECTproject_name,COALESCE(SUM(t_24h_txnum), 0) AS t_24h_tx_num,COALESCE(COUNT(DISTINCT t_24h_address), 0) AS t_24h_user_num,COALESCE(SUM(t_7d_txnum), 0) AS t_7d_tx_num,COALESCE(COUNT(DISTINCT t_7d_address), 0) AS t_7d_user_num,COALESCE(SUM(t_30d_txnum), 0) AS t_30d_tx_num,COALESCE(COUNT(DISTINCT t_30d_address), 0) AS t_30d_user_num,COALESCE(SUM(t_90d_txnum), 0) AS t_90d_tx_num,COALESCE(COUNT(DISTINCT t_90d_address), 0) AS t_90d_user_numFROM(SELECTt1.*,COALESCE(t2.num, 0) AS num,t_24h_address,t_24h_txnum,t_7d_address,t_7d_txnum,t_30d_address,t_30d_txnum,t_90d_address,t_90d_txnumFROM(SELECT'HLS5Y68QSQgJP7wUbbbbCjEnMknVZrHXYDwwVaDcsdK7' AS contract_address,'STEPN' AS project_nameUNION ALLSELECT'STEPNq2UGeGSzCyGVr2nMQAzf8xuejwqebd84wcksCK' AS contract_address,'STEPN' AS project_nameUNION ALLSELECT'HhXAKYmRzBNi7BjkDs2fbwJ49mnpWUtzyXEf8PAMArs4' AS contract_address,'STEPN' AS project_nameUNION ALLSELECT'A2B1w2fpwuJZrF9b69KBFb6Cn4Cp7siKGqQwPBJEGLYj' AS contract_address,'Walken' AS project_nameUNION ALLSELECT'5NwQUi9xmE8LAzZxaU23L6dRgaPd35vJXJX2USFHfYCv' AS contract_address,'Walken' AS project_nameUNION ALLSELECT'8KuSo8XT7yvd9ZsqyFeyFEzRx2pPcRTYW2RToNjcZy8X' AS contract_address,'Walken' AS project_nameUNION ALLSELECT'6HyVjAUJu1T2EhojQa2bJ83TJ9dUdsXS3wveWh3XrxBN' AS contract_address,'Walken' AS project_nameUNION ALLSELECT'7H2uqTLZGF2jtYLjXnz3UCbFdb7aFxVLVyyxnNDKFzjy' AS contract_address,'Walken' AS project_nameUNION ALLSELECT'3i846EV2Vw2PZ2eGvRaHnyVpFWTprDKFAZmXWhsPY8MA' AS contract_address,