If an XObjectKey column of a parent query is used as a criterion in a child query, not the XObjectKey but the UID arrives in the statement. Of course, this leads to an empty set.
This is a product defect (33539).
This will be fixed in a future release of the product. If you require this immediately corrected, please contact Support for a hotfix referencing the defect ID 33539.