Query grouping by an unconfigured window, returns the nearest