Fixed EventsToRun query