Datasets:
Update README.md
Browse files# Dataset Summary
**OGText2SQL** dataset was utilized in training the **OGSQL** model, this dataset comprises over 350,000 rows of text-to-SQL pairs. Through a series of data refining steps, including schema expansion, SQL refinement, and instruction generation using existing Language Models (LLMs), the dataset was meticulously processed to ensure quality and relevance.
# How to use it
> Pyhton
```python
from datasets import load_dataset
dataset = load_dataset("OneGate/OGText2SQL")
```
> API
```bash
curl -X GET \
"https://datasets-server.huggingface.co/rows?dataset=OneGate%2FOGText2SQL&config=default&split=train&offset=0&length=100"
```
# Dataset Structure
## Data Instances
Each entry within this dataset represents a text-to-SQL conversion, wherein the instruction is formatted alongside the table schema and query. The resulting SQL output adheres to the SQLite dialect.
## Data Fields
- `context`: the instruction to generate SQL.
- `question`: the human input.
- `SQL`: the SQL query generated.
- `source`: the source dataset of the sample.
## Languages
The language of the data is mainly English, with other languages.