Querying tree like tables no longer uses custom function.