Oracle and Turing introduce database-coding benchmark; top agent finishes fewer than half of workflows
Database tools improved the strongest agent’s results, but average test scores masked a much lower rate of fully successful development sessions.
Loading page…
Database tools improved the strongest agent’s results, but average test scores masked a much lower rate of fully successful development sessions.
Listen to this story
Oracle and Turing’s new PLSQLBench tests whether AI can build and revise database programs that work in Oracle Database, not merely produce code that looks right. Even with database tools, GPT-5.6-Sol completed every test across all turns in only 41.27% of evaluated conversations, underscoring how easily errors compound during iterative development. The benchmark offers a more demanding measure of enterprise coding agents, but its repeatable tests exclude writes and do not establish production readiness.
PLSQLBench includes 2,594 single-turn tasks and 271 multi-turn conversations spanning 978 turns.
With database tools, GPT-5.6-Sol’s Spider 2.0 Episode Pass@1 rose from 22.22% to 41.27%; gains did not carry uniformly to programming tests.
Among models generating code directly, GPT-5.4 led the unweighted three-subset average at 64.96%, but completed only 33.33% of test conversations.
Oracle and Turing introduced PLSQLBench on December 1, a benchmark that runs AI-generated database programs and checks successive changes. In the creators’ tests, the strongest evaluated agent passed every test at every step in just 41.27% of multi-turn development conversations.
The benchmark targets PL/SQL, Oracle’s extension of SQL for writing programs inside its database. Such programs can validate records, generate reports and enforce business rules. Unlike a request for a single database query, these assignments combine data access with variables, loops, branching and error handling. Correctness depends on both the program’s instructions and the database structures it uses.
PLSQLBench contains 2,594 single-turn tasks and 271 multi-turn conversations spanning 978 turns. Its enterprise-style assignments use databases adapted from Spider 2.0 Lite. Other subsets use simpler database structures or standalone programming problems, helping separate difficulties with database context from difficulties with programming logic.
Oracle PL/SQL experts created the specifications, reference programs and executable tests for the Spider 2.0 tasks. All those tasks received automated review, and more than 60% received human review. The development and test splits use separate databases, so evaluation includes database contexts absent from the development split.
Scoring relies on execution in Oracle Database, not resemblance to a reference answer. For Spider 2.0 tasks, the evaluators run tests against both the reference program and the generated version, then compare outputs. A program that compiles successfully can still fail because it produces the wrong result.
The main score, Mean Test Pass@1, averages the fraction of tests passed by one generated solution across tasks or conversations. A task counts as fully solved only when every test passes. The stricter conversation score, Episode Pass@1, requires every turn to pass every test. Later turns inherit the model’s earlier code and database objects, including mistakes.
Among eight models generating code directly, GPT-5.4 led the unweighted average across three test subsets at 64.96%, followed by Claude Opus 4.8 at 63.49%. Gemma 4 31B scored 62.26%. No model led every task family. Under the stricter multi-turn measure, GPT-5.4 fully completed 33.33% of test conversations.
The researchers also tested agents equipped with Codex CLI, Oracle SQL/PLSQL skills and database tools. Database interaction improved Spider 2.0 performance for both evaluated model backbones. GPT-5.6-Sol’s gains show how much the surrounding tools can change the result without changing the underlying model.
Those gains did not extend uniformly to the MBPP-derived programming tests. The authors caution that the benefits of database interaction depend on the task.
About 82.5% of categorized failures involved incorrect program logic or output, according to the researchers’ error analysis. Invalid or incomplete PL/SQL accounted for 13.3%; interface, signature or database-structure errors accounted for 4.2%.
One generated reporting procedure compiled but omitted required report headers when a query returned no rows. It raised an exception before printing them. The querying and error-handling code looked plausible, but their ordering changed the output—a defect compilation alone would not catch.
The benchmark deliberately avoids persistent inserts, updates and deletes to keep evaluation repeatable. Production work adds demands involving transactions, permissions, performance, legacy dependencies and deployment. Passing these tests also does not prove correctness for every possible input.
Researchers and developers can access 2,391 development instances and supporting database-structure files through the public PLSQLBench repository. Another 474 instances remain private evaluation holdouts.
Loading discussion...
Join the conversation
Explain which score would better guide your choice of an AI assistant.
Be the first to share a perspective or an experience.
Reader comments
Newest comments first. Replies stay oldest first.