Checks if the value is contained in the collection of the other QueryTree.
Checks if the value is contained in the collection other.