A lightweight, fully reproducible benchmark to evaluate large language models (LLMs) on natural-language-to-SQL generation for Indonesian-language queries. Covers two open databases (Sakila and Resep), six query categories, and 30 scenarios with 240 model evaluation outputs.
Indonesian-language Text-to-SQL evaluation resources are scarce. Most benchmarks focus on English, leaving a gap for researchers and practitioners working with Bahasa Indonesia. This repository fills that gap by providing:
- Bilingual scenarios — every question has Indonesian (
question_id) and English (question_en) versions - Domain diversity — Sakila (film rental, English schema) and Resep (Indonesian recipes, Indonesian schema)
- Transparent evaluation — gold-standard SQL, expected output rows, and semantic column mappings included
- Multi-model comparison — results across 4 LLM variants for direct reproducibility
| Model | Provider | Type |
|---|---|---|
gemini-2.5-flash |
Proprietary | |
gemini-flash-lite |
Proprietary | |
gemma-3n-e2b |
Open-weight | |
gemma-online |
Open-weight |
| Code | Category | Example Skill |
|---|---|---|
| A3 | Aggregation | COUNT, AVG, GROUP BY |
| C5 | Comparison | Filtering, WHERE conditions |
| J2 | Join | Multi-table JOINs |
| L1 | Lookup | Simple SELECT with filters |
| N4 | Nested | Subqueries, IN/EXISTS |
| S6 | Sorting | ORDER BY, LIMIT, ranking |
├── db/ # Database schemas & seed data
│ ├── sakila-schema.sql # Sakila schema (film rental)
│ ├── sakila-data.sql # Sakila seed data
│ └── resep.v1.2025-07.sql # Resep database (Indonesian recipes)
├── gold-standard/ # 12 gold-standard files (per category × DB)
│ ├── RES-A3.json # Resep: Aggregation scenarios
│ ├── SAK-A3.json # Sakila: Aggregation scenarios
│ └── ...
├── gold-standard.json # Combined gold-standard (all 30 scenarios)
├── luaran-model/ # 240 model output files
│ ├── RES-A3-01_gemini-2.5-flash.json
│ ├── RES-A3-01_gemma-3n-e2b.json
│ └── ...
├── prompt_templates_v2.yaml # Prompt config v2 (interpretive extraction)
├── prompt_templates_v3.yaml # Prompt config v3 (literal extraction)
├── semantic_map.yaml # Column-name alias mapping per model/scenario
├── CONTRIBUTING.md # Contribution guidelines
├── CITATION.cff # Machine-readable citation metadata
└── LICENSE # MIT License
git clone https://github.com/Galih-Hermawan-Unikom/text2sql-benchmark-id.git
cd text2sql-benchmark-id
# Set up Sakila (requires MySQL/MariaDB)
mysql -u root -p < db/sakila-schema.sql
mysql -u root -p sakila < db/sakila-data.sql
# Set up Resep
mysql -u root -p < db/resep.v1.2025-07.sqlEach scenario in gold-standard.json contains:
question_id— the Indonesian natural-language questionsolution_sql— the ground-truth SQLexpected_rows— the expected query resultcategory— the query complexity category
To evaluate a model, send question_id with the database schema (from prompt_templates_v2.yaml) to your LLM, then compare the generated SQL against solution_sql.
Model outputs are in luaran-model/. Each file contains the LLM's raw response for a specific scenario. Use semantic_map.yaml to normalize column-name differences across models before comparing.
- Run each scenario from
gold-standard.jsonagainst your model - Save outputs to
luaran-model/as{SCENARIO_ID}_{your-model-name}.json - If your model uses different column names, add mappings to
semantic_map.yaml - Submit a Pull Request with your results
See CONTRIBUTING.md for detailed guidelines.
If you use this benchmark in your research, please cite:
@article{Hermawan2026Evaluating,
author = {Hermawan, Galih and Rainarli, Ednawati and Ravshanovna, Radjabova Inobat},
title = {{Evaluating Gemini and Gemma Language Models for Indonesian Text-to-SQL Tasks}},
journal = {Journal of Engineering Science and Technology (JESTEC), Special Issue on INCITEST 2025},
volume = {21},
number = {2},
pages = {9--16},
year = {2026},
url = {https://jestec.taylors.edu.my/Special%20Issue%20INCITEST%202025/INCITEST2025_02.pdf}
}A CITATION.cff file is also included for automatic citation tools (Zotero, GitHub citation button, etc.).
Galih Hermawan — Lecturer & Researcher, Informatics Engineering, Universitas Komputer Indonesia (UNIKOM)
- Email: galih.hermawan@email.unikom.ac.id
- ORCID: 0000-0002-8476-5996
- GitHub: @Galih-Hermawan-Unikom
- Ednawati Rainarli — Lecturer & Researcher, Informatics Engineering, UNIKOM
We welcome contributions! See CONTRIBUTING.md for how to submit scenarios, share model results, or improve documentation.
Open an issue or discussion for research collaboration, dataset exchange, or methodology talks.