8.5.1 The SQL Language

If supported, the SQL language syntax is invoked by specifying the constant Query.SQL in QueryManager.createQuery (see 6.6.8 Query API):

javax.jcr.query.
Query

String

SQL

A string constant representing the SQL query language applied to the database view of the workspace.