Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].WITHsuccessful AS (SELECTDATE_TRUNC('week', block_time) AS week,COUNT("call_tx_hash") AS successFROMmaker_ethereum.CAT_call_bite AS sLEFT JOIN ethereum."transactions" AS tx ON s.call_tx_hash = tx.hashWHEREcall_success = TRUEGROUP BY1ORDER BY1 DESCLIMIT50),total AS (SELECTDATE_TRUNC('week', block_time) AS week,COUNT("call_tx_hash") AS totalFROMmaker_ethereum.CAT_call_bite AS tLEFT JOIN ethereum."transactions" AS tx ON t.call_tx_hash = tx.hashGROUP BY1ORDER BY1 DESCLIMIT50)SELECTsuccessful."week",SUM("success") / CAST(SUM("total") AS DOUBLE) AS success_rateFROMsuccessfulLEFT JOIN total ON successful.week = total.weekGROUP BY1ORDER BY1 DESCLIMIT50