grouped pending events by term