<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def logical_operator(self, operation, word):
 """ Apply a logical operator :param str operation: how to combine with a new one :param word: other parameter for the operation (a = b) would be like a.logical_operator('eq', 'b') :rtype: Query """

        word = self._parse_filter_word(word)
        self._add_filter(
            *self._prepare_sentence(self._attribute, operation, word,
                                    self._negation))
        return self