EMNLP 2026 · Industry Track
PLSQLBench
We built PLSQLBench to evaluate language models on generating, modifying, debugging, and repairing executable PL/SQL programs. The benchmark covers read-only programs in single-turn and multi-turn settings. We released 2,391 development instances with executable tests.
What’s in the dataset?
The full benchmark covers both one-off programming tasks and conversations in which a user asks for changes to an earlier program. Its database tasks draw on 54 databases. It also includes standalone programming problems that can be solved without a database table.
- Total benchmark instances
- 2,865
- Single-turn tasks
- 2,594
- Multi-turn conversations
- 271
The public release includes the four development sets below, their tests, and schema files for the database tasks. The remaining 474 instances form the private test sets.
| Data file | Examples | What it tests |
|---|---|---|
| Spider2-ST | 407 tasks | Write or repair PL/SQL for complex database schemas. |
| Spider2-MT | 208 conversations | Extend, debug, or repair a program over successive requests. |
| Spider-PLSQL | 970 tasks | Answer questions over Spider databases using PL/SQL. |
| MBPP-PLSQL | 806 tasks | Implement standalone functions and procedures. |
How to read the leaderboard
The leaderboard compares models on the same tasks using Mean Test Pass@1. Each model gets one attempt. A program that passes three of four tests earns 75% for that task, and the leaderboard averages those fractions. A program that fails to compile passes zero tests.
Choose Spider2-MT to compare how models handle follow-up requests, or Spider2-ST to see how they perform on a single request. Compare models on the official leaderboard →
What does one multi-turn task look like?
A shop asks for its best-selling products, then limits the report to February, then asks it to flag low stock. This illustrates the multi-turn subset, where a model revises an earlier program using the accumulated conversation context.
For a fictional illustration, suppose the shop sold 30 notebooks in January and 12 mugs in February. Only two mugs remain, and the low-stock threshold is five. The expected February result is Mugs · 12 sold · Low stock.
If notebooks win, the revision lost the date filter. If mugs win without a warning, it missed the stock check. Both procedures could compile. Running them against known sales and inventory records reveals which requirement failed.
Publication
PLSQLBench: Benchmarking LLM Systems for Executable Procedural Database Programming
* Equal contribution
EMNLP 2026 Industry Track, pp. 2625–2646