Google Releases Gemini-SQL2: Gemini 3.1 Pro Text-to-SQL Scores 80.04% on BIRD Single-Model Leaderboard
Google Research team has announced the launch of Gemini-SQL2 on X. They described this system as a breakthrough text-to-SQL capability powered by Gemini 3.1 Pro. Gemini-SQL2 posted 80.04% execution accuracy on the BIRD Text-to-SQL Leaderboard (Single Model). Google’s chart places it above its own Gemini-SQL, the prior top entry. The metric measures whether generated SQL runs and returns correct results, not whether it looks valid.

Gemini-SQL2
Gemini-SQL2 is a text-to-SQL capability, not a standalone foundation model release. It translates natural language questions into what Google calls ‘execution-ready SQL queries.’ The capability is built on Gemini 3.1 Pro.
Per the announcement on X, “data subtlety & complex business contexts make generating accurate SQL from natural language notoriously hard.” The X Post also stated that “improved SQL understanding can elevate natural language skills across Google’s data services.” That points toward integration targets like BigQuery Studio, AlloyDB AI, and Cloud SQL Studio, which already ship Gemini-based SQL generation. Google has not yet confirmed which products will receive Gemini-SQL2.
Benchmarks
BIRD (BIg Bench for LaRge-scale Database Grounded Text-to-SQL Evaluation) is an industry standard for this task. It contains 12,751 question-SQL pairs across 95 databases spanning 37 professional domains, totaling 33.4GB. The databases include dirty values and require external knowledge grounding, unlike older benchmarks such as Spider.
BIRD measures execution accuracy (EX): the generated SQL must run and return results matching the gold query. Google stated this directly. “Per the BIRD benchmark, which measures execution-verified accuracy, GeminiSQL-2’s SQL doesn’t just look right, it also runs successfully.”
The Single Trained Model Track restricts the preprocessing, retrieval, and agentic frameworks that ensembles use to boost scores. It measures the model’s core text-to-SQL ability. Google Cloud’s prior record on this track, reported November 15, 2025, was 76.13. Google benchmarks human performance at 92.96, leaving a 12.92-point gap from 80.04.
How the Leaderboard Stacks Up
Google’s chart, on X post, shows Gemini-SQL2 ahead of eight named competitors, along with several unlabeled points. Only 80.04% is stated as text. The values below are read from the chart’s position and are approximate; dates reflect each point’s horizontal placement.
Two patterns are visible. Google now holds the top two named positions, Gemini-SQL2 and Gemini-SQL. Several specialized 32B SQL models also sit above some general frontier models on this chart.
Use Cases with Examples
Self-service analytics: A revenue manager asks for monthly recurring revenue by region, for accounts that churned within 90 days of upgrade. This needs joins, window logic, and date arithmetic. Execution-verified generation catches SQL that runs but returns wrong rows.
Data engineering drafts: Devs can draft BigQuery transformations from English, then review rather than write from scratch. Google’s November 2025 work identified schema understanding as the hard part. Higher BIRD scores reflect better handling of ambiguous columns and messy values.
Embedded “ask your data” features: SaaS teams adding natural-language query interfaces still need human review at 80% accuracy. One in five queries can be wrong. The score sets expectations, not a removal of review.
Gemini-SQL2 Launch: Community Reception Dashboard
Verified public engagement on Google Research’s announcement posts • first ~3 hours • Jun 12, 2026
BIRD Single-Model Leaderboard • Execution Accuracy
Platform Engagement Breakdown
X / Twitter (main post)
Views144.4K
Likes2,800
Reposts267
Bookmarks1,300
Replies64
Engagement rate3.1%
LinkedIn (main post)
Reactions349+
Comments12
Reposts27
Reception signal
9.3 : 1
Bookmark-plus-like to reply ratio on X. A high save rate with few replies typically signals approval over controversy. Comment-level sentiment not yet measurable; replies still loading at capture time.
Implementation Pattern
Google has not published a Gemini-SQL2 model string or API yet. The schema-grounded pattern below works with current Gemini models via the google-genai SDK. Swap the model string when Gemini-SQL2 ships.
client = genai.Client() # reads GEMINI_API_KEY from environment
schema = “””
CREATE TABLE orders (
order_id INTEGER, customer TEXT, region TEXT,
amount REAL, status TEXT, created_at DATE
);
“””
question = “Total paid order amount by region in 2026, highest first.”
prompt = f”””You are a text-to-SQL system.
Schema:{schema}
Question: {question}
Return only one executable SQLite query. No explanation.”””
resp = client.models.generate_content(
model=”gemini-3.1-pro-preview”, # the base model named in the announcement; swap when a Gemini-SQL2 ID ships
contents=prompt,
)
print(resp.text)
Production systems should add execution verification. Run the returned SQL, catch errors, and retry with the error message appended. That loop mirrors what BIRD’s execution accuracy metric rewards.
Key Takeaways
Google reports Gemini-SQL2 at 80.04% execution accuracy on the BIRD single-model leaderboard.
The capability is powered by Gemini 3.1 Pro and targets “execution-ready SQL,” not just plausible SQL.
On Google’s chart, Gemini-SQL2 and Gemini-SQL hold the top two named positions; human performance is 92.96.
No API, model card, technical report, or product integration details have been published yet.
MARKTECHPOST Visual Explainer
Text-to-SQL Playground
The task Gemini-SQL2 just scored 80.04% on (BIRD benchmark, single model). Pick a question, inspect the generated SQL, then run it on a live in-browser dataset.
1 • Ask in natural language
2 • Generated SQL view schema
Select a question above to generate SQL.
order_id INTEGER, customer TEXT, region TEXT,
amount REAL, status TEXT, created_at DATE
); — 12 sample rows loaded in this browser
▶ Run query
Execution accuracy means the SQL must run AND return the right rows.
Check out the Details here. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

