Added criteria query for arriving and departing schedules