code: public void doSql(String funcCall)
    {
  
      String doSqlFunctionName = "sql_" + funcCall.split("\\s", 2)[0];
      SqlGenerator<QueryData> gen = getGeneratorForQueryFunction(funcCall);
      String annisQuery = getAnnisQueryFromFunctionCall(funcCall);
      QueryData queryData = analyzeQuery(annisQuery, doSqlFunctionName);
  
      out.println("NOTICE: left = " + left + "; right = " + right + "; limit = "
        + limit + "; offset = " + offset);
  
      out.println(gen.toSql(queryData));
    }
docs: FIXME: missing tests