public String toSolutionModifierSQL() throws Exception {
   if (q.isSelectQuery() || q.isConstructQuery()) {
     return processSolutionModifierForSelectConstruct();
   } else if (q.isDescribeQuery()) {
     return processSolutionModifierForDescribe();
   }
   return null;
 }
 public String toTopQuerySQL(Set<Variable> explicitIRIBoundVariables) throws Exception {
   if (q.isSelectQuery()) {
     return processTopQueryForSelectDescribeConstruct(explicitIRIBoundVariables);
   } else if (q.isAskQuery()) {
     return processAskQuery();
   } else if (q.isDescribeQuery()) {
     return processTopQueryForSelectDescribeConstruct(explicitIRIBoundVariables);
   } else if (q.isConstructQuery()) {
     return processTopQueryForSelectDescribeConstruct(explicitIRIBoundVariables);
   }
   return null;
 }