Query editor
with------------------------------ Raw Transactions ------------------------------raw_transactions as (selectblock_date,transaction_hash as tx_hash,execution_status,sender_addressfromstarknet.transactions),------------------------------ Aggregated Transactions ------------------------------transactions as (selectblock_date as date,sender_address as user,count(distinct tx_hash) as txs,sum(case when execution_status = 'SUCCEEDED' then 1 else 0 end) as successful_txs,sum(case when execution_status = 'REVERTED' then 1 else 0 end) as reverted_txsfromraw_transactionsgroup byblock_date,sender_address),------------------------------ Result ------------------------------result as (selectdate as "Date",casewhen txs <= 100 then 'Normal'else 'Bot'end as "Type",sum(txs) as "Transactions",sum(successful_txs) as "Successful TXs",sum(reverted_txs) as "Reverted TXs"fromtransactionsgroup bydate,2)select*fromresultwhere"Date" >= date('2022-11-16')and "Reverted TXs" > 0order by"Date" desc