Hi Guys,
I have issue that need to retrieve duplicate node name from two node's subset via JCR-Sql2 as below attachment.
The search result should be /aa/cc and /aa/dd .
But I always got below ParseException, does anyone know how to correct this Sql clause and make it working correct?
Or if you know the correct JCR-Sql2 query.
Thanks in advance.

SELECT * FROM [nt:base] AS a inner join [nt:base] as b on a.[jcr:primaryType] = b.[jcr:primaryType] where ISDESCENDANTNODE(a, [/content/aa]) and ISDESCENDANTNODE(b, [/content/bb])
and name(a) = name(b)
