A FLAN-T5-XL model that, given a natural question along with a database schema, converts it to the template (skeleton) of the equivalent SQL query. The input format is
The plan at the beginning is used to enforce diversity as described in our paper. A typical template looks like SELECT column, column FROM table AS t1 JOIN table AS t2.