SELECT
sum( decode( trunc( executions/5,0), 0, 1, 0 ) ) "0-4",
sum( decode( trunc( executions/5,0), 1, 1, 0 ) ) "5-9",
sum( decode( trunc( executions/5,0), 2, 1, 0 ) ) "10-14",
sum( decode( trunc( executions/5,0), 3, 1, 0 ) ) "15-19",
sum( decode( trunc( executions/5,0), 4, 1, 0 ) ) "20-24",
sum( decode( trunc( executions/25,0), 0, 0, 1 ) ) "25>=",
count(*) "Cursores",
sum(executions) "Execuções",
sum(executions)/count(*) "Exec/Cursor"
FROM v$sqlarea
/