--- configs: - config_name: default data_files: - split: Dialect2SQL path: Dialect2SQL.csv - split: train path: train.csv - split: validation path: validation.csv - split: test path: test.csv task_categories: - text-generation - translation language: - en - ar tags: - text-to-sql - question-to-sql - nlq-to-sql - SQL - english-to-sql - low-resource-languages - darija - Arabic-dialect size_categories: - 1K 15; | | `db_schema` | CREATE TABLE Grades(student_id number, subject varchar, grade real); | | `db_id` | School_DB | --- ## Languages - **Darija (Moroccan Arabic)** — primary source language - **English** — provided for reference and cross-lingual studies --- ## Data Splits | Split | Size (approx.) | Description | |-------|----------------|-------------| | `train` | ~7,000 | Main training set | | `validation` | ~1,000 | Development split | | `test` | ~1,000 | Evaluation split | | `Dialect2SQL` | full dataset | Combined dataset file | --- ## Dataset Structure Each row in the dataset includes: | Column | Description | |---------|--------------| | `db_id` | Database identifier | | `db_schema` | SQL table definitions | | `darija_question` | Question in Moroccan Darija | | `en_question` | English translation (optional) | | `sql` | Target SQL query | --- ## Use Cases - Fine-tuning **text-to-SQL models** for Arabic dialects - Research on **multilingual and dialectal NLIDB systems** - **Cross-lingual transfer learning** for SQL understanding - Evaluating **low-resource adaptation** of code LLMs (e.g., Qwen, StarCoder, Codex) --- ## Limitations - The dataset currently focuses on **Moroccan Darija**, and performance may not generalize to other Arabic dialects. - Some questions are written using **Arabic script**, while others mix **Latin characters** (Arabizi), reflecting real user input diversity. - SQL coverage is limited to **single-domain, schema-bounded** tasks. --- ## Citation If you use this dataset, please cite the following paper: ```bibtex @inproceedings{chafik2025dialect2sql, title={Dialect2SQL: A Novel Text-to-SQL Dataset for Arabic Dialects with a Focus on Moroccan Darija}, author={Chafik, Salmane and Ezzini, Saad and Berrada, Ismail}, booktitle={Proceedings of the 4th Workshop on Arabic Corpus Linguistics (WACL-4)}, pages={86--92}, year={2025} }