← SQL publications

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 271 conversations span 978 turns. Each conversation counts as one benchmark instance.

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.

Public development data
Data fileExamplesWhat it tests
Spider2-ST407 tasksWrite or repair PL/SQL for complex database schemas.
Spider2-MT208 conversationsExtend, debug, or repair a program over successive requests.
Spider-PLSQL970 tasksAnswer questions over Spider databases using PL/SQL.
MBPP-PLSQL806 tasksImplement standalone functions and procedures.

Download the public release with schemas and metadata (ZIP)

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.

Three report sheets show a sales ranking, a calendar date range, and a low-stock warning, each with a test checkmark.
The product-report example comes from Figure 1 in the paper.

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

Marianne Menglin Liu*, Leonid Boytsov*, Daniel W. Peterson, Pramuditha Perera, Rongguang Wang, Sai Ashish Somayajula, Syed Hamza Rafique, Rohit Saini, Shubham Pathak, Sujeeth Bharadwaj, Tao Sheng, Graham Horwood, Fahad Shah, Ankan Bansal, Sujith Ravi, Dan Roth

* Equal contribution

EMNLP 2026 Industry Track, pp. 2625–2646