Machine translation to Sql like output

Hello there,
My use case is to convert text to SQL-like (proprietary language). what is the best way to achieve this?
I’ve gone through the T5 model in machine translation and would like to understand the capability of fine-tuning the pre-trained model for my use case. will it perform as the output of the model is different ? or Do I need to build the model from scratch?