public static SqlSelectBlock makeSelect(SqlProjection node) { SqlSelectBlock result = _makeSelect(node.getSubNode()); // If the node is distinct, or if it already has a projection set, // we must create a subselect if (result.isDistinct()) { // || result.isResultStar() // SqlSelectBlock wrapped = new } SqlSelectBlock wrap = new SqlSelectBlock(node.getAliasName(), result); wrap.getSparqlVarToExprs().putAll(node.getSparqlVarToExprs()); wrap.getAliasToColumn().putAll(node.getAliasToColumn()); return wrap; }