|
|
--- |
|
|
license: mit |
|
|
language: |
|
|
- en |
|
|
- zh |
|
|
tags: |
|
|
- finance |
|
|
pretty_name: RubikBench |
|
|
size_categories: |
|
|
- 100M<n<1B |
|
|
configs: |
|
|
|
|
|
- config_name: budget_accessory |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_ACCESSORY/*.parquet" |
|
|
- config_name: budget_all |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_ALL/*.parquet" |
|
|
- config_name: budget_cybvehsys |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_CYBVEHSYS/*.parquet" |
|
|
- config_name: budget_galmotgro |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_GALMOTGRO/*.parquet" |
|
|
- config_name: budget_novdyn |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_NOVDYN/*.parquet" |
|
|
- config_name: budget_service |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_SERVICE/*.parquet" |
|
|
- config_name: budget_shimotcor |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_SHIMOTCOR/*.parquet" |
|
|
- config_name: budget_tyrautgro |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_TYRAUTGRO/*.parquet" |
|
|
- config_name: budget_weymotcor |
|
|
data_files: "RubikBench/BUDGET_AND_FORECAST_WEYMOTCOR/*.parquet" |
|
|
|
|
|
|
|
|
- config_name: income_accessory |
|
|
data_files: "RubikBench/INCOME_ACCESSORY/*.parquet" |
|
|
- config_name: income_all |
|
|
data_files: "RubikBench/INCOME_ALL/*.parquet" |
|
|
- config_name: income_cybvehsys |
|
|
data_files: "RubikBench/INCOME_CYBVEHSYS/*.parquet" |
|
|
- config_name: income_galmotgro |
|
|
data_files: "RubikBench/INCOME_GALMOTGRO/*.parquet" |
|
|
- config_name: income_novdyn |
|
|
data_files: "RubikBench/INCOME_NOVDYN/*.parquet" |
|
|
- config_name: income_service |
|
|
data_files: "RubikBench/INCOME_SERVICE/*.parquet" |
|
|
- config_name: income_shimotcor |
|
|
data_files: "RubikBench/INCOME_SHIMOTCOR/*.parquet" |
|
|
- config_name: income_tyrautgro |
|
|
data_files: "RubikBench/INCOME_TYRAUTGRO/*.parquet" |
|
|
- config_name: income_weymotcor |
|
|
data_files: "RubikBench/INCOME_WEYMOTCOR/*.parquet" |
|
|
|
|
|
|
|
|
- config_name: profit_and_loss |
|
|
data_files: "RubikBench/PROFIT_AND_LOSS/*.parquet" |
|
|
- config_name: sales_ledger |
|
|
data_files: "RubikBench/SALES_LEDGER/*.parquet" |
|
|
|
|
|
default: true |
|
|
--- |
|
|
# RubikBench |
|
|
|
|
|
**Version**: v0.9.1 (2026-02-02) |
|
|
|
|
|
> Database Homepage: [RubikBench](https://huggingface.co/datasets/Magolor/RubikBench) |
|
|
|
|
|
RubikBench is an enterprise-scale financial database designed for realistic Natural Language to SQL (NL2SQL) research and evaluation. |
|
|
|
|
|
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. |
|
|
|
|
|
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. |
|
|
|
|
|
<br/> |
|
|
|
|
|
## Database Statistics |
|
|
|
|
|
### 2.1 Overview |
|
|
|
|
|
- **Total Size**: ~ 38 GB (DuckDB) / ~ 11 GB (parquet) |
|
|
- **Total Tables**: 20 tables |
|
|
- **Total Records**: ~ 901.53 million rows |
|
|
- **Time Coverage**: Monthly from January 2020 to December 2025 (72 months) |
|
|
- **Languages**: Bilingual (English and Chinese) |
|
|
- **Database Format**: DuckDB Native (recommended), parquet (for huggingface) |
|
|
- Formats like sqlite is not supported as it does not compress the data. The full, uncompressed size of data can be over 500GB. |
|
|
|
|
|
<br/> |
|
|
|
|
|
### 2.2 Table Statistics |
|
|
|
|
|
| Table Name | Rows | Columns | Period | Region | Customer | Dealer | Product | Contract | Project | Revenue | Expense | |
|
|
|------------|----------------|---------|--------|--------|----------|--------|---------|----------|---------|---------|---------| |
|
|
| **INCOME_ALL** | 12.41M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_ACCESSORY | 3.37M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_CYBVEHSYS | 0.99M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_GALMOTGRO | 1.72M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_NOVDYN | 1.42M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_SERVICE | 1.48M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_SHIMOTCOR | 1.13M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_TYRAUTGRO | 1.04M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| INCOME_WEYMOTCOR | 1.25M | 61 | 72 | ✓ | ✓ | | ✓ | | | ✓ | | |
|
|
| **BUDGET_AND_FORECAST_ALL** | 96.58M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_ACCESSORY | 30.18M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_CYBVEHSYS | 8.50M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_GALMOTGRO | 11.23M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_NOVDYN | 10.46M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_SERVICE | 9.48M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_SHIMOTCOR | 8.86M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_TYRAUTGRO | 8.51M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| BUDGET_AND_FORECAST_WEYMOTCOR | 9.35M | 37 | 72 | ✓ | | | ✓ | | | ✓ | ✓ | |
|
|
| **PROFIT_AND_LOSS** | 161.74M | 67 | 72 | ✓ | ✓ | ✓ | ✓ | | | ✓ | ✓ | |
|
|
| **SALES_LEDGER** | 521.81M | 55 | 72 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
|
|
|
|
|
<br/> |
|
|
|
|
|
### 2.3 Entity Statistics |
|
|
|
|
|
| Dimension | Hierarchy Levels | Total Entities | |
|
|
|-----------|------------------|----------------| |
|
|
| **Period** | 1 | 72 months (202001-202512) | |
|
|
| **Region** | 6 | 2 overseas/domestic, 11 sales regions, 22 countries, 37 national areas, 46 provinces, 47 cities | |
|
|
| **Product** | 4 | 3 (Lv0), 19 (Lv1), 93 (Lv2), 353 (Lv3) | |
|
|
| **Customer** | 4 | 4 (Lv1), 9 (Lv2), 14 (Lv3), 22 (Lv4) | |
|
|
| **Dealer** | 3 | 3 (Lv1), 5 (Lv2), 9 (Lv3) including 'Direct Sales' | |
|
|
| **Report Item** | 4 | 2 (Lv0), 6 (Lv1), 10 (Lv2), 22 (Lv3) | |
|
|
| **Contract/Project** | 2 | 40,756 distinct contracts, 46,895 distinct projects | |
|
|
| **Caliber** | 1 | 2 calibers (A, B) | |
|
|
| **Currency** | 1 | 3 currencies (CNY, EUR, USD) | |
|
|
|
|
|
<br/> |
|
|
|
|
|
## Query Statistics |
|
|
|
|
|
Coming soon... |
|
|
|
|
|
<br/> |
|
|
|
|
|
## Update Log |
|
|
|
|
|
- [2026-02] Updated **RubikBench v0.9.1** database on huggingface: [RubikBench](https://huggingface.co/datasets/Magolor/RubikBench). |
|
|
- Add support for `.parquet` format. |
|
|
- More realistic business logic, reduced the number of products per project |
|
|
- Diversify between SALES_LEDGER and PROFIT_AND_LOSS |
|
|
- Fixed some geographical region errors |
|
|
- Re-generate all projects and contracts |
|
|
- Expand to 9 dealers |
|
|
- ytd/ptd fix |
|
|
|
|
|
- [2026-01] Initial release of **RubikBench v0.9** database on huggingface: [RubikBench](https://huggingface.co/datasets/Magolor/RubikBench). |
|
|
|
|
|
<br/> |
|
|
|