docs: private String getSubQuerySQL(Query subQuery)
      {
          ClassDescriptor cld = getRoot().cld.getRepository().getDescriptorFor(subQuery.getSearchClass());
          String sql;
  
          if (subQuery instanceof QueryBySQL)
          {
              sql = ((QueryBySQL) subQuery).getSql();
          }
          else
          {
              sql = new SqlSelectStatement(this, m_platform, cld, subQuery, m_logger).getStatement();
          }
  
          return sql;
      }