license:cc-by-nc-4.0 region:us
---
license: cc-by-nc-4.0
---

The dataset is consructed by taking firsst 1000 rows of the train split of [pg-wikiSQL](https://huggingface.co/datasets/kaxap/pg-wikiSQL) dataset and asking GPT-4 to transform the query and the question to be more complex using various aggregate functions.

Resulting SQL statements were adapted for Postgres syntax and conventions.

Each SQL statement, including `CREATE TABLE` statements were syntax checked with [pgsanity](https://github.com/markdrago/pgsanity).

The `total_tokens` column indicates the OpenAI API usage for the datapoint generation.