add query for event type