Moves the input of a query form, from the cut's start inward,
into a SELECT subquery projecting everything it binds.
Orderings are already above that part, moved there by reorderAlgQueryChain.
Aggregate variables are only projected when the outer query references them.
Moves the input of a query form, from the cut's
startinward, into a SELECT subquery projecting everything it binds. Orderings are already above that part, moved there by reorderAlgQueryChain. Aggregate variables are only projected when the outer query references them.