def test_extract(self):
        t = table('t', column('col1'))

        for field in 'day', 'month', 'year':
            self.assert_compile(
                select([extract(field, t.c.col1)]),
                field % 'SELECT DATEPART(%s, t.col1) AS anon_1 FROM t')
dataset/ETHPy150Open zzzeek/sqlalchemy/test/dialect/mssql/test_compiler.py/CompileTest.test_extract/swapped operands of `%`