Changed the left/right join tests.
It seems JCR isn't supposed to to return node name in a query result.
Changed it to the basename() of the path.