def visit_text_as_from(self, taf, iswrapper=False,
                           compound_index=0, force_result_map=False,
                           asfrom=False,
                           parens=True, **kw):

        toplevel = not self.stack
        entry = self._default_stack_entry if toplevel else self.stack[-1]

        populate_result_map = force_result_map or (
            compound_index == 0 and (
                toplevel or
                entry['iswrapper']
            )
        )

        if populate_result_map:
            for c in taf.column_args:
                self.process(c, within_columns_clause=True,
                             add_to_result_map=self._add_to_result_map)

        text = self.process(taf.element, **kw)
        if asfrom and parens:
            text = text % "(%s)"
        return text
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/sql/compiler.py/SQLCompiler.visit_text_as_from/swapped operands of `%`