Can someone help me how I can convert a piece of T-SQL code into Abstract Syntax Tree(AST) using Python?
can you share sample code ?
We'd be happy to help, but we won't do it for you. You should give it a try and ask specific questions that get you unblocked and working on your own (though it's of course ok to have multiple questions in a row).