I have more than 1000 pages to query and the query will traverse nodes inside each page node to get component nodes. Let's assume all these pages are under the same parent node: /content/costco/, and this is what queries look like: SELECT page.[jcr:path] FROM [nt:base] AS s WHERE ISDESCENDANTNODE([/...