When writing a test, I observed a query that was producing incorrect results.
The "Steps To Reproduce" section describes how to reproduce the bug I observed.
The bug happens when running under the "cursor_hints_to_query_settings_sharded_collections" passthrough with featureFlagSbeFull=true.
It seems like some stages in the pipeline either are being skipped or are being erroneously optimized away.
It's not clear if this is a bug with how QuerySettings and featureFlagSbeFull interact, or if it's a bug or limitation with the "cursor_hints_to_query_settings_sharded_collections" passthrough, or if it's bug in some other component unrelated to QuerySettings.
The goal of this task is to investigate and see if we can come up with a minimal repro for the bug that doesn't require using the "cursor_hints_to_query_settings_sharded_collections" passthrough.