moved some planner logic to plannodebuilder

for QueryAndFetchNode (not in grouping queries) and QueryThenFetchNode
must this be part of the interface?