Query tree structure dumper.