query exam data: pass/fail count per exam group