Query editor
SELECTDATE_TRUNC('month', a.block_time) AS "Date",COUNT(*) AS "Transactions",TRY_CAST(COUNT(CASE WHEN b.success THEN 1 ELSE NULL END) AS DOUBLE) / COUNT(*) AS Success_rate,SUM(COUNT(*)) OVER (ORDER BY DATE_TRUNC('month', a.block_time)) AS "Total Transactions",COUNT(DISTINCT b.sender) AS "AUs",SUM(((b.gas_used * b.gas_unit_price) / 1e8)) AS "Fees[APT]",SUM(SUM(((b.gas_used * b.gas_unit_price) / 1e8))) OVER (ORDER BY DATE_TRUNC('month', a.block_time)) AS "Total Fees[APT]"FROM aptos.transactions AS aLEFT JOIN aptos.user_transactions AS bUSING (hash)GROUP BY 1ORDER BY 1 DESC