More efficient event stats query