StatBot.Swiss: Bilingual Open Data Exploration in Natural Language
Farhad Nooralahzadeh, Yi Zhang, Ellery Smith, Sabine Maennel, Cyril Matthey-Doret, Raphaël de Fondville, Kurt Stockinger
TL;DR
StatBot.Swiss introduces the first bilingual Text-to-SQL benchmark by compiling 455 NL/SQL pairs over 35 real Swiss databases in English and German, derived from opendata.swiss. The authors evaluate GPT-3.5-Turbo-16k and Mixtral-8x7B-Instruct using in-context learning with varied exemplar selection, extending Spider hardness with an additional 'unknown' category to capture real-world query complexity. Results show that current LLMs achieve limited exact-match translation, with mean strict execution accuracy around the low tens in zero-shot and modest gains in few-shot prompts, while soft and partial metrics reveal partial progress toward user intents. The work highlights the need for improved multilingual prompting, larger and more diverse bilingual datasets, and future cross-lingual Text-to-SQL research, offering a robust baseline for bilingual real-world applications.
Abstract
The potential for improvements brought by Large Language Models (LLMs) in Text-to-SQL systems is mostly assessed on monolingual English datasets. However, LLMs' performance for other languages remains vastly unexplored. In this work, we release the StatBot.Swiss dataset, the first bilingual benchmark for evaluating Text-to-SQL systems based on real-world applications. The StatBot.Swiss dataset contains 455 natural language/SQL-pairs over 35 big databases with varying level of complexity for both English and German. We evaluate the performance of state-of-the-art LLMs such as GPT-3.5-Turbo and mixtral-8x7b-instruct for the Text-to-SQL translation task using an in-context learning approach. Our experimental analysis illustrates that current LLMs struggle to generalize well in generating SQL queries on our novel bilingual dataset.
