code: private boolean attemptDateRangeOptimization(BinaryExpression during, Retrieve retrieve, String alias) {
          if (retrieve.getDateProperty() != null || retrieve.getDateRange() != null) {
              return false;
          }
  
          Expression left = during.getOperand().get(0);
          Expression right = during.getOperand().get(1);
  
          String propertyPath = getPropertyPath(left, alias);
          if (propertyPath != null && isRHSEligibleForDateRangeOptimization(right)) {
              retrieve.setDateProperty(propertyPath);
              retrieve.setDateRange(right);
              return true;
          }
  
          return false;
      }
docs: Test a <code>BinaryExpression</code> expression and determine if it is suitable to be refactored into the
  <code>Retrieve</code> as a date range restriction.  If so, adjust the <code>Retrieve</code>
  accordingly and return <code>true</code>.
  
  @param during   the <code>BinaryExpression</code> expression to potentially refactor into the <code>Retrieve</code>
  @param retrieve the <code>Retrieve</code> to add qualifying date ranges to (if applicable)
  @param alias    the alias of the <code>Retrieve</code> in the query.
  @return <code>true</code> if the date range was set in the <code>Retrieve</code>; <code>false</code>
  otherwise.