src/main/java/com/tri/persistence/jpql/WhereItems.java
public QueryBuilder subquery(final String lhsPredicate) {
		final WhereSubquery subquery = new WhereSubquery(builder(),
				lhsPredicate);
		items.add(subquery);
		return subquery.getQueryBuilder();
	}
public QueryBuilder subquery(final String lhsPredicate) {
		final WhereSubquery subquery = new WhereSubquery(builder(),
				lhsPredicate);
		items.add(subquery);
		return subquery.getQueryBuilder();
	}
Adds a sub-query predicate.

@param lhsPredicate
left hand side of the predicate, i.e. expression and operator,
e.g. "field IN" or "EXISTS"
@return the added subquery builder