I have implemented keyset pagination and my query looks like this: SELECT [jcr:content/metadata/finishingMaterial] FROM [sling:Folder] AS folder WHERE [jcr:content/metadata/finishingMaterial] is not null and [jcr:content/metadata/finishingMaterial] > 'namespace:finishing-material/fabric/15431/1539...