Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked below!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/WITHbridged AS (SELECT"from" AS user,COUNT(*) AS countFROMethereum.transactionsWHERE"to" = '0x32400084C286CF3E17e7B677ea9583e60a000324'AND CAST(value AS DOUBLE) > 0AND "success"GROUP BY"from"),counts AS (SELECTcount,COUNT(*) AS num_users,100.0 * COUNT(*) / SUM(COUNT(*)) OVER () AS pct_total_usersFROMbridgedGROUP BYcountORDER BYcount)SELECTcount,num_users,pct_total_usersFROMcounts