def filter_raw(self, *args):
        """Adds a where clause in limited SQL.

        Examples::

            qs = qs.filter_raw('total >', 1)
            qs = qs.filter_raw('total >=', 1)
            qs = qs.filter_raw(Q('name LIKE', '%foo%') |
                               Q('status IN', [1, 2, 3]))

        The field on the leftside can be a key in the select dictionary.
        That is, it will be replaced with the actual expression when the
        query is built.
        """
        clone = self._clone()
        specs = []
        for arg in args:
            if isinstance(arg, Q):
                clone.base_query['where'].append(
                    (clone._flatten_q(arg, clone._filter_to_clause)) % '(%s)')
            else:
                specs.append(arg)
        if len(specs):
            clone.base_query['where'].append(clone._filter_to_clause(*specs))
        return clone
dataset/ETHPy150Open mozilla/addons-server/src/olympia/editors/sql_model.py/RawSQLManager.filter_raw/swapped operands of `%`