adithyabhaskar's picture
Update README.md
983f863
metadata
tags:
  - generated_from_trainer
model-index:
  - name: flan-t5-xl-template-gen
    results: []

flan-t5-xl-template-gen

Model description

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

template generation: <question> | <db_id> | <schema_without_content>

The output format is

<db_id> | <J> joins @ <S> selects @ <template>

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.