code: public static <T extends Number> WindowOver<T> avg(Expression<T> expr) {
          return new WindowOver<T>(expr.getType(), Ops.AggOps.AVG_AGG, expr);
      }
docs: Start a window function expression
  
  @param expr expression
  @return avg(expr)