[FIX] XQuery, innermost/outermost: remove duplicates