def query(self, query):
        """get data with filter language query"""
        full_query = (self.name, query) % '%s: %s'

        builder = opencenter.webapp.ast.FilterBuilder(
            opencenter.webapp.ast.FilterTokenizer(),
            full_query, api=self.api)

        root = builder.build()

        # trivial optimization for a get_by_id
        if root.op == '=':
            if root.lhs.op == 'IDENTIFIER' and root.lhs.lhs == 'id':
                if root.rhs.op == 'NUMBER' or root.rhs.op == 'STRING':
                    return [self.get(int(root.rhs.lhs))]

        # not a straight get_by_id
        result = builder.filter()
        return result
dataset/ETHPy150Open rcbops/opencenter/opencenter/db/abstraction.py/DbAbstraction.query/swapped operands of `%`