def filtered_by(self, rel_name,
                  related_entity):
    """Alias for weighted_by which makes more sense for 'hard' relationships.

    Args:
      rel_name: a string naming a declared KG relation
      related_entity: an entity name in the KG

    Returns:
      A NeuralQueryExpression.
    """
    return self.weighted_by(rel_name, related_entity)
Alias for weighted_by which makes more sense for 'hard' relationships.

    Args:
      rel_name: a string naming a declared KG relation
      related_entity: an entity name in the KG

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