def _invert_binary_conjunct(self, subject, relations,
                              objects):
    """Inverts a binary conjunct for an IR to its original representation."""
    inverted_conjuncts = []
    # Get relations to their original names.
    relations_inverted = [
        self._to_orig_relation(relation) for relation in relations.split(" , ")
    ]
    objects_separated = objects.split(" , ")
    # Generate conjuncts in their original distributed form.
    for relation in relations_inverted:
      for object_triple in objects_separated:
        inverted_conjuncts.append("{} {} {}".format(subject, relation,
                                                    object_triple))
    return inverted_conjuncts
Inverts a binary conjunct for an IR to its original representation.
language/compir/dataset_parsers/cfq_parser.py