createPTree("Queries") is a more direct equivalent