Change schedule query