def __add__(self, other):
    """Add the underlying expressions.

    Args:
      other: A NeuralQueryExpression

    Returns:
      A NeuralQueryExpression.
    """
    if isinstance(other, NeuralQueryExpression):
      self._check_type_compatibility(self.type_name, other.type_name, 'add')
      provenance = NQExprProvenance(
          operation='add', inner=self.provenance, other=other.provenance)
      return self.context.as_nql(self.tf + other.tf, self.type_name, provenance)
    else:
      # hopefully a constant
      provenance = NQExprProvenance(
          operation='add',
          inner=self.provenance,
          args=(None, other),
          other=NQExprProvenance(operation='constant'))
      return self.context.as_nql(self.tf + other, self.type_name, provenance)
Add the underlying expressions.

    Args:
      other: A NeuralQueryExpression

    Returns:
      A NeuralQueryExpression.
    
language/nql/nql/__init__.py