Query editor
WITH smart_contracts_list AS (select distinct addressfrom tac.traceswhere "type" like 'create%'and address is not nulland successand code != 0x and code is not null), transactions_per_user AS (SELECT "from", COUNT(*) as transactionsFROM tac.transactionsWHERE successand block_date >= date('2023-08-07') --base went live officially on Aug 9, so putting week start aka Aug 7 to start countingand "from" NOT IN (SELECT address FROM smart_contracts_list)GROUP BY 1)SELECTtrans_cat,COUNT(DISTINCT("from")) as total_usersFROM (SELECT"from",CASE WHEN transactions = 1 then '1 TX'WHEN transactions between 1 and 3 then '1 -3 TX'WHEN transactions between 3 and 5 then '3 - 5 TX'WHEN transactions between 5 and 10 then '5 - 10 TX'WHEN transactions between 10 and 20 then '10 -20 TX'WHEN transactions between 20 and 50 then '20 - 50 TX'ELSE '50+ TX'END as trans_cat,CASE WHEN transactions = 1 then 1 --for ordering lolWHEN transactions between 1 and 3 then 2WHEN transactions between 3 and 5 then 3WHEN transactions between 5 and 10 then 4WHEN transactions between 10 and 20 then 5WHEN transactions between 20 and 50 then 6ELSE 7END as trans_orderFROM transactions_per_user)GROUP BY trans_cat,trans_orderORDER BY trans_order