It also requires a model to generalize to unseen database schema as different databases are used for training and testing.
a model should understand not only the natural language question but also the schema of the corresponding database to predict the correct SQL query.