The proposed model has three advantages. 2. It minimizes unnecessary search space, unlike sequence-to-sequence approaches (Iyer et al., 2017;<cite> Finegan-Dollak et al., 2018)</cite> ; thus, the model is guaranteed to be free of SQL syntax errors.