Query editor
WITH transaction_data AS (SELECT block_time,t."hash", gc."contract_project"FROM optimism.transactions tLEFT JOIN contracts_optimism.contract_mapping gcON gc."contract_address" = t."to"WHERE -- t.block_time > NOW() - interval '1' monthLOWER(contract_project) NOT IN ('chainlink','ovm','ovm gas price oracle') --exclude ops ttransactions / focus on consumer transactionsAND "to" != 0x420000000000000000000000000000000000000F --exclude gas price oracle-- ORDER BY block_number DESC-- LIMIT 100),--RANK() OVER (Order BY COUNT(*) DESC) as rankingtotal_table as (select RANK () OVER ( order by COUNT(*) DESC ) as ranked, count(*) as txs, contract_project from transaction_datagroup by contract_projectorder by count(*) desc)select ranked, contract_project, txs from total_table where ranked<=25