Hi,The best practice is to write jcr-sql queries and execute it.So instead of generating, write jcr-sql query and you can always check the output by clicking on execute instead of generate.Follow to below link to learn jcr query:Chapter 10. Querying and Searching using JCR Thanks,Shridhar Sahu