How to exclude node in aem using Query builder and JCR-SQL2?
I am trying to get a page that do not have jcr:node node.
Query builder
Tried with Query builder but it is not excluding the node
path=/content/en_GB/about-us
property=jcr:primaryType
property.value=cq:PageContent
nodeExists.notexists=jcr:content
p.limit=-1
JCR-SQL2
Tried to create a SQL for the same but query is giving exception while running,
SELECT * FROM [cq:PageContent] AS s WHERE ISDESCENDANTNODE(s, '/content/en_GB/about-us') NOT (jcr:content)
Can you please help me to understand why above sql query is not working and why query builder is not excluding jcr:content node and ?

