Update queries for events and alerts.