File size: 3,528 Bytes
43e7974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7d2345
43e7974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7d2345
43e7974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
pretty_name: "UAE Sales Table QA (Arabic)"
license: cc-by-4.0
language:
- ar
task_categories:
- question-answering
- table-question-answering
tags:
- pandas
- arabic
- table-reasoning
- data-analysis
- uae
size_categories:
- 1K<n<10K
---

# 🇦🇪 UAE Sales Table QA (Arabic)

> ⚠️ **Note:** All data in this dataset is **synthetically generated** using random values for learning and experimentation purposes. It does **not** represent real-world business data.

## 🧠 Overview
**UAE Sales Table QA (Arabic)** is an Arabic **Question–Answering dataset for table reasoning and data analysis**, generated from **21** UAE-style **CSV** tables.  
Each example includes:

- **Question** — a natural-language query about the data  
- **Steps** — human-readable reasoning steps describing the logic used to compute the answer  
- **Answer** — the numeric result automatically calculated using pandas  
- **Source_File** — the CSV file the example was computed from, for traceability  

This dataset covers operations like filtering, grouping, and aggregation, all verified using **pandas**.

---

## 📂 Files
| File | Description |
|------|-------------|
| `uae_qa_sales.json` | Full Q&A dataset (includes `Source_File` for linking) |
| `csvs/` | Folder containing the 21 source **CSV** files referenced by `Source_File` |

**Total Q&A items:** ~6,300

---

## 🧩 Schema
```json
{
  "Question": "ما هو متوسط الإيراد في دبي؟",
  "Steps": [
    "1. فلتر الصفوف بحيث تكون المدينة = 'دبي'.",
    "2. اختر عمود 'الإيراد'.",
    "3. احسب المتوسط."
  ],
  "Answer": "2766.62",
  "Source_File": "csvs/sales_uae_7.csv"
}
```

---

## 💻 How to Load
```python
from datasets import load_dataset

ds = load_dataset("Synctic/uae-sales-table-qa", data_files="uae_qa_sales.json")
print(len(ds["train"]))          # number of examples
print(ds["train"][0])            # first record
```

---

## ⚙️ Creation Process
1. Multiple **synthetic CSV** tables were generated with random UAE-style sales data (cities, products, reps, dates).  
2. Ten base question templates covered averages, sums, min/max, and grouping logic; an additional template combined (city × product × year) to expand variations.  
3. Each CSV produced multiple Q&A variations.  
4. All answers were computed using **pandas** for accuracy.  
5. The **`Source_File`** field links every Q&A to its corresponding CSV file in `csvs/`.

---

## 📊 Dataset Stats
| Property | Value |
|-----------|--------|
| **Language** | Arabic 🇦🇪 |
| **Domain** | Sales / Business Analytics |
| **Entries** | ~6,300 |
| **Source CSVs** | 21 |
| **Format** | JSON (UTF-8, human-readable) |

---

## 🔖 License
**CC-BY-4.0** — You are free to use, modify, and share this dataset with proper attribution.

---

## 📬 Citation
If you use or reference this dataset, please cite it as:

```
@dataset{AlYazidi2025_UAE_Sales_Table_QA,
  author = {Saif Al-Yazidi},
  title  = {UAE Sales Table QA (Arabic)},
  year   = {2025},
  url    = {https://huggingface.co/datasets/Synctic/uae-sales-table-qa}
}
```

---

## 🌟 Author & Acknowledgment
Created by **Saif Al-Yazidi (Synctic)** as a personal learning project on:
- **pandas** data manipulation  
- **CSV** data generation  
- **Arabic AI reasoning dataset creation**  

This project connects structured tabular data with natural-language reasoning — a foundation for future **Arabic AI reasoning** and **data analysis** research.