Update README.md
Browse files
README.md
CHANGED
|
@@ -8,4 +8,77 @@ tags:
|
|
| 8 |
pretty_name: RubikBench
|
| 9 |
size_categories:
|
| 10 |
- 100M<n<1B
|
| 11 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
pretty_name: RubikBench
|
| 9 |
size_categories:
|
| 10 |
- 100M<n<1B
|
| 11 |
+
---
|
| 12 |
+
# RubikBench
|
| 13 |
+
|
| 14 |
+
RubikBench is an enterprise-scale financial database designed for realistic Natural Language to SQL (NL2SQL) research and evaluation.
|
| 15 |
+
|
| 16 |
+
The RubikBench database contains the **financial** data of *APEX*, a hypothetical international **automobile** manufacturing and sales company. As a financial database, it is designed to support various analytical queries related to the company's operations, sales, and financial performance. This (imaginary) company operates mainly in China, the United States, and Europe. Therefore the database is bilingual, with both English and Chinese values, and uses three currencies: CNY, USD, and EUR. While the database values are synthesized, the schemas are closely modeled after real-world big enterprise financial databases.
|
| 17 |
+
|
| 18 |
+
While the data values are synthesized, the schemas and structural patterns are closely modeled after actual enterprise financial databases, ensuring practical relevance for NL2SQL system development and evaluation. The database is specifically designed to reflect the complexities encountered in real-world enterprise environments, including wide table schemas, domain-specific knowledge, diverse metrics and data calibers, etc.
|
| 19 |
+
|
| 20 |
+
<br/>
|
| 21 |
+
|
| 22 |
+
## Database Statistics
|
| 23 |
+
|
| 24 |
+
### 2.1 Overview
|
| 25 |
+
|
| 26 |
+
- **Total Size**: 34 GB (DuckDB compressed format)
|
| 27 |
+
- **Total Tables**: 20 tables
|
| 28 |
+
- **Total Records**: 519.76 million rows
|
| 29 |
+
- **Time Coverage**: Monthly from January 2020 to December 2025 (72 months)
|
| 30 |
+
- **Languages**: Bilingual (English and Chinese)
|
| 31 |
+
|
| 32 |
+
<br/>
|
| 33 |
+
|
| 34 |
+
### 2.2 Table Statistics
|
| 35 |
+
|
| 36 |
+
| Table Name | Rows | Columns | Period | Region | Customer | Dealer | Product | Contract | Project | Revenue | Expense |
|
| 37 |
+
|------------|----------------|---------|--------|--------|----------|--------|---------|----------|---------|---------|------|
|
| 38 |
+
| **INCOME_ALL** | 2.79M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 39 |
+
| INCOME_ACCESSORY | 0.68M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 40 |
+
| INCOME_CYBVEHSYS | 0.14M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 41 |
+
| INCOME_GALMOTGRO | 0.09M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 42 |
+
| INCOME_NOVDYN | 0.12M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 43 |
+
| INCOME_SERVICE | 1.33M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 44 |
+
| INCOME_SHIMOTCOR | 0.14M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 45 |
+
| INCOME_TYRAUTGRO | 0.14M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 46 |
+
| INCOME_WEYMOTCOR | 0.14M | 67 | 72 | ✓ | ✓ | | ✓ | | | ✓ | |
|
| 47 |
+
| **BUDGET_AND_FORECAST_ALL** | 92.90M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 48 |
+
| BUDGET_AND_FORECAST_ACCESSORY | 28.68M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 49 |
+
| BUDGET_AND_FORECAST_CYBVEHSYS | 8.52M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 50 |
+
| BUDGET_AND_FORECAST_GALMOTGRO | 6.58M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 51 |
+
| BUDGET_AND_FORECAST_NOVDYN | 8.04M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 52 |
+
| BUDGET_AND_FORECAST_SERVICE | 15.22M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 53 |
+
| BUDGET_AND_FORECAST_SHIMOTCOR | 8.65M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 54 |
+
| BUDGET_AND_FORECAST_TYRAUTGRO | 8.58M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 55 |
+
| BUDGET_AND_FORECAST_WEYMOTCOR | 8.62M | 39 | 72 | ✓ | | | ✓ | | | ✓ | ✓ |
|
| 56 |
+
| **PROFIT_AND_LOSS** | 265.57M | 54 | 72 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 57 |
+
| **SALES_LEDGER** | 62.81M | 54 | 72 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
|
| 58 |
+
|
| 59 |
+
<br/>
|
| 60 |
+
|
| 61 |
+
### 2.3 Entity Statistics
|
| 62 |
+
|
| 63 |
+
| Dimension | Hierarchy Levels | Total Entities |
|
| 64 |
+
|-----------|------------------|----------------|
|
| 65 |
+
| **Period** | 1 | 72 months (202001-202512) |
|
| 66 |
+
| **Region** | 6 | 2 overseas/domestic, 11 sales regions, 20 countries, 35 national areas, 44 provinces, 45 cities |
|
| 67 |
+
| **Product** | 4 | 19 (Lv1), 93 (Lv2), 353 (Lv3) |
|
| 68 |
+
| **Customer** | 2 | 4 (Lv1), 9 (Lv2) |
|
| 69 |
+
| **Dealer** | 2 | 2 (Lv1), 2 (Lv2) |
|
| 70 |
+
| **Report Item** | 4 | Varies by table: 6 (Lv1), 10 (Lv2), 22 (Lv3) |
|
| 71 |
+
| **Contract** | 1 | 24,534 distinct contracts |
|
| 72 |
+
| **Project** | 1 | 31,757 distinct projects |
|
| 73 |
+
| **Caliber** | 1 | 2 calibers (A, B) |
|
| 74 |
+
| **Currency** | 1 | 3 currencies (CNY, USD, EUR) |
|
| 75 |
+
|
| 76 |
+
<br/>
|
| 77 |
+
|
| 78 |
+
<br/>
|
| 79 |
+
|
| 80 |
+
## Update Log
|
| 81 |
+
|
| 82 |
+
- [2026-01] Initial release of **RubikBench v0.9** database on huggingface: [RubikBench](https://huggingface.co/datasets/Magolor/RubikBench).
|
| 83 |
+
|
| 84 |
+
<br/>
|