Updated query to support multiple events in single string