Query events by id