Add query for events