Add schedule query by start time and count