Initial implementation for EventQuery