query = jcrSql2Query("SELECT * FROM [nt:unstructured] WHERE someProperty = $value");
query.bindValue("value", session().getValueFactory().createValue("value1"));
validateQuery().rowCount(2L).useIndex("pathIndex").validate(query, query.execute());
query = jcrSql2Query("SELECT table.* FROM [nt:unstructured] AS table WHERE table.someProperty = 'value1'");
validateQuery().rowCount(2L).useIndex("pathIndex").validate(query, query.execute());
query = jcrSql2Query("SELECT table.* FROM [nt:unstructured] AS table WHERE table.someProperty = $value");
query.bindValue("value", session().getValueFactory().createValue("value1"));
validateQuery().rowCount(2L).useIndex("pathIndex").validate(query, query.execute());