When doing recursive queries, return tree struture