Sql Server Operator Precedence In Python