Recently I am observing an unusual behavior in HKSampleQuery with category type sleepAnalysis. For HKCategorySample
HKSampleQuery
sleepAnalysis
HKCategorySample