BIRD-Persona: A Persona-Aware Benchmark for SQL and pandas Analytics Code Generation
arXiv:2611.28542 · doi:10.18653/2026.emnlp-industry.138
Abstract
Production text-to-code systems use large language models to turn natural-language analytics requests into executable SQL and pandas code. Existing benchmarks cover both tasks but do not isolate when performance diverges between them. We introduce BIRD-Persona, a persona-stratified extension of BIRD-Python that adds novice and expert rewrites to tasks with matched SQL and pandas ground truth, along with schema variants and task-structure annotations. Across 1,534 tasks, nine models, and 245,592 evaluations, SQL outperforms pandas for eight of nine systems. The gap varies by condition: expert, schema-explicit prompts improve both paradigms but help SQL more; schema representations have mixed, model-dependent effects; and selected-column burden widens the gap while subqueries do not. By making user phrasing a controlled benchmark dimension, BIRD-Persona supports persona-aware and paradigm-aware evaluation of natural-language analytics systems. The dataset is available at https://huggingface.co/datasets/optum-cognition-lab/BIRD-Persona.
References in corpus (7)
- UNITE: A Unified Benchmark for Text-to-SQL Evaluation
- CHESS: Contextual Harnessing for Efficient SQL Synthesis
- The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models
- RSL-SQL: Robust Schema Linking in Text-to-SQL Generation
- AmbiSQL: Interactive Ambiguity Detection and Resolution for Text-to-SQL
- Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation
- Benchmarking Text-to-Python against Text-to-SQL: The Impact of Explicit Logic and Ambiguity