Spaces:
Runtime error
Runtime error
File size: 717 Bytes
f78a3ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Instructions = """
### Task
Generate a SQL query to answer [QUESTION]{question}[/QUESTION]
### Database Schema
The user query should run on the database whose schema is represented by using create queries in a json file with Keys as the table name and value as the create query :
{schema}
### Metadata for Schema
The detailed table and column description should be considered while referring to schema to understand the link between tables. The json file has an array of tables with each table name having a prompt to be considered while generating the query and detailed description of each data column.
{Metadata}
### Further context
- All are entities i.e. city, county, districts all form entities...
...
"""
|