Get Query Context
get_query_contextRetrieve SQL-ready context from given terms to write correct queries: qualified tables, mapped columns with samples, join paths, FROM/JOIN clauses, verified examples, glossary, and dialect rules.
Instructions
Everything needed to write the SQL: qualified tables, mapped columns with sample values and formats, SQL attributes, the join path connecting the Terms (with a ready FROM/JOIN clause and role notes), verified example queries, glossary and the SQL rules for this dialect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | Yes | Terms you will use (names, synonyms or ids). | |
| question | No | The question, to find verified example queries. | |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||