This architecture is based on an idea similar to the template-based model of<cite> Finegan-Dollak et al. (2018)</cite> . However, the previous model requires a number of examples for each template and needs retraining to support new templates of SQL. Conversely, we applied one-shot learning so that our model could learn a template with just a single example.