Spider 2.0-AIFunc: Extending Real-World Text-to-SQL to AI-Native SQL Workflows

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics, Software Development & Engineering · Depth: Expert, extended

Summary

Spider 2.0-AIFunc is a new benchmark for evaluating text-to-SQL systems on AI-native SQL workflows, specifically incorporating large language model capabilities exposed as native SQL functions on platforms like Snowflake. It comprises 465 verified instances across 125 real-world databases, covering six types of Snowflake Cortex AI Functions: AI_CLASSIFY, AI_FILTER, AI_SENTIMENT, AI_SIMILARITY, AI_EXTRACT, and AI_AGG. Constructed via an agent-based pipeline that rewrites existing enterprise text-to-SQL tasks, the benchmark ensures result stability through a multi-round execution verification protocol. Evaluation of ten state-of-the-art language models revealed proprietary models (e.g., Claude Opus 4.6 at 70.3%) significantly outperform open-source models (best at 58.1%), with errors primarily in predicate specification, schema grounding, and AI function parameterization. Traditional text-to-SQL agent frameworks did not effectively transfer to this AI-native context.

Key takeaway

For Machine Learning Engineers or Data Scientists building AI-native SQL applications, you should prioritize proprietary LLMs for text-to-SQL tasks involving AI functions, given their superior execution accuracy (67-70% vs. 58.1% for open-source). Be prepared to meticulously refine schema grounding, predicate specification, and AI function parameterization, as these are common error sources. Consider direct integration of AI functions into SQL rather than relying on traditional text-to-SQL agent frameworks, which proved less effective in this context.

Key insights

The benchmark reveals a significant performance gap between proprietary and open-source LLMs in generating AI-native SQL.

Principles

Method

The benchmark was constructed using an "agent-based pipeline" that rewrites source tasks into AI-native form, transforms target queries, refines natural language instructions, and employs multi-round execution verification for stability.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, NLP Engineer, AI Scientist, Machine Learning Engineer, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.