returning the right query result tree towards reporting as the user
defined