atlas

Research map / Large language models / Language, safety and interpretability

PARROT: A Benchmark for Evaluating LLMs in Cross-System SQL Translation

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Multilingual LLM data and culture · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces PARROT, a benchmark of 598 real-world translation pairs (plus Diverse and Simple variants) for evaluating LLMs on cross-system SQL-to-SQL translation across 22 database systems, finding low accuracy (around 17-60%).

Problem

LLMs are evaluated mainly on Text-to-SQL, while cross-system SQL translation (adapting a query from one DBMS dialect to another) lacks suitable benchmarks, since existing ones focus mostly on SQLite and omit system-specific dialect features.

Approach

A curated benchmark built from real-world SQLs (38 open-source benchmarks, translation-tool test cases, and a ByteDance business workload) with a pipeline of anonymization, clustering-based selection, ensemble rule-based annotation, parser and LLM-based equivalence checking, and execution-based accuracy metrics.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase DeepSeek-R1 scale from 32B to 671BDeepSeek-R1 · PARROT → PostgreSQLtranslation accuracy (%): 58.62% -> 48.28%Hurt
Increase DeepSeek-R1 scale from 32B to 671BDeepSeek-R1 · PARROT → MySQLtranslation accuracy (%): 58.82% -> 44.12%Hurt
Increase DeepSeek-R1 scale from 32B to 671BDeepSeek-R1 · PARROT → SQL Servertranslation accuracy (%): 42.11% -> 36.84%Hurt
Translate longer SQLs (0-402 tokens to 1214-2182 tokens)evaluated LLMs · PARROT, grouped by SQL lengthtranslation accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: BIRD Spider TPC-DS DSB TPC-H FROID SQLGlot test cases ByteHouse production workload

Benchmarks: PARROT PARROT-Diverse PARROT-Simple

Metrics: Acc_EX (dialect compatibility) Acc_RES (result consistency)

Baselines: DeepSeek-R1 7B DeepSeek-R1 32B DeepSeek-Coder-V2 Lite DeepSeek-V3 671B DeepSeek-R1 671B GPT-4o o3-mini Claude 3.7 Sonnet o1-preview Llama3.1-8B

Builds on: SQLGlot ANTLR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy