do not test *..1 for single child, why not use simpler syntax instead
todo
upgrade tresql to 6.0-M10