Sequence-to-sequence models (Iyer et al., 2017;<cite> Finegan-Dollak et al., 2018)</cite> , as shown in the Table 3 , showed poor performance for the query-based split in the zero-shot setting. The model from<cite> Finegan-Dollak et al. (2018)</cite> showed accuracies of 0%, 32%, 20%, and 5% for each benchmark and accuracies of Iyer et al. (2017) showed 1%, 17%, 40%, and 3%, meaning that they also lack the capability to generate unseen templates of SQL. In a one-shot setting, where an example is added for each new template, our approach outperformed previous ones against every benchmark. Our model outperforms the sequence-to-sequence model <cite>(Finegan-Dollak et al., 2018)</cite> by 1-60%, the template-based model <cite>(Finegan-Dollak et al., 2018)</cite> by 17-52%, Iyer et al. (2017) by 14-62%.