{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/paper/spider-2-0-evaluating-language-models-on-real","title":"Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows","arxiv_id":"2411.07763","date":"2024-11-12","proceeding":null,"authors":["Fangyu Lei","Jixuan Chen","Yuxiao Ye","Ruisheng Cao","Dongchan Shin","Hongjin Su","Zhaoqing Suo","Hongcheng Gao","Wenjing Hu","Pengcheng Yin","Victor Zhong","Caiming Xiong","Ruoxi Sun","Qian Liu","Sida Wang","Tao Yu"],"abstract":"Real-world enterprise text-to-SQL workflows often involve complex cloud or local data across various database systems, multiple SQL queries in various dialects, and diverse operations from data transformation to analytics. We introduce Spider 2.0, an evaluation framework comprising 632 real-world text-to-SQL workflow problems derived from enterprise-level database use cases. The databases in Spider 2.0 are sourced from real data applications, often containing over 1,000 columns and stored in local or cloud database systems such as BigQuery and Snowflake. We show that solving problems in Spider 2.0 frequently requires understanding and searching through database metadata, dialect documentation, and even project-level codebases. This challenge calls for models to interact with complex SQL workflow environments, process extremely long contexts, perform intricate reasoning, and generate multiple SQL queries with diverse operations, often exceeding 100 lines, which goes far beyond traditional text-to-SQL challenges. Our evaluations indicate that based on o1-preview, our code agent framework successfully solves only 21.3% of the tasks, compared with 91.2% on Spider 1.0 and 73.0% on BIRD. Our results on Spider 2.0 show that while language models have demonstrated remarkable performance in code generation -- especially in prior text-to-SQL benchmarks -- they require significant improvement in order to achieve adequate performance for real-world enterprise usage. Progress on Spider 2.0 represents crucial steps towards developing intelligent, autonomous, code agents for real-world enterprise settings. Our code, baseline models, and data are available at https://spider2-sql.github.io","url_abs":"https://arxiv.org/abs/2411.07763v2","url_pdf":"https://arxiv.org/pdf/2411.07763v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[],"tasks":[{"task_slug":"code-generation","task_name":"Code Generation"},{"task_slug":"text-to-sql","task_name":"Text to SQL"},{"task_slug":"text-to-sql","task_name":"Text-To-SQL"}],"methods":[],"datasets_introduced":[{"slug":"spider-2-0","name":"Spider 2.0","full_name":"Spider 2.0"}],"methods_introduced":[],"results":[{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + o1-preview","rank_in_archive_order":1,"of":8,"metrics":{"Success Rate":"17.03"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + GPT-4o","rank_in_archive_order":2,"of":8,"metrics":{"Success Rate":"10.13"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + Claude-3.5-Sonnect","rank_in_archive_order":3,"of":8,"metrics":{"Success Rate":"9.02"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + GPT-4","rank_in_archive_order":4,"of":8,"metrics":{"Success Rate":"8.86"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + Qwen2.5-72B","rank_in_archive_order":5,"of":8,"metrics":{"Success Rate":"6.17"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + DeepSeek-V2.5","rank_in_archive_order":6,"of":8,"metrics":{"Success Rate":"5.22"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + Gemini-Pro-1.5","rank_in_archive_order":7,"of":8,"metrics":{"Success Rate":"2.53"},"uses_additional_data":false},{"leaderboard":"/sota/text-to-sql-on-spider-2-0","task":"Text-To-SQL","dataset":"Spider 2.0","model":"Spider-Agent + Llama-3.1-405B","rank_in_archive_order":8,"of":8,"metrics":{"Success Rate":"2.21"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2411.07763","atlas_url":"https://app.syntology.ai/?focus=2411.07763","mcp":null,"developers":"https://syntology.ai/developers","held":true,"reason":"arxiv_id_in_atlas","checked_against":{"atlas_ids":549449,"atlas_ids_sha256":"afd72399dafd9906e9062927f70655952385a3d75488558e1f0484e950ab09b7","read_at":"2026-10-05T01:46:21Z"},"agent_calls":[{"tool":"get_citation_path","arguments":{"paper_1":"2411.07763"},"arguments_in":{"paper_2":"another paper's arXiv id or title"},"call":"get_citation_path(paper_1=\"2411.07763\", paper_2=\"…\")"},{"tool":"get_concepts_for_paper","arguments":{"arxiv_id":"2411.07763"},"call":"get_concepts_for_paper(arxiv_id=\"2411.07763\")"}],"by_repo":[],"by_repo_is":"one row per repository in the archive's code links, Syntology's graph links or the samples; samples 0 means no sample is linked to this paper, a statement about Syntology's coverage, not about the repository: with harvested_for_other_papers present, Syntology harvested the repository for that many other papers, and without it, Syntology harvested nothing from it; placed_by_identical_code counts samples whose link records no repository, placed here because identical code was harvested from this repository for another paper; ran counts executions on a synthesized input and instrument counts failures of Syntology's instrument, not of the code"},"code_links_note":"the archive holds no code link for this paper","arxiv_metadata":null,"syntology_extracted_results":null,"record_sha256":"1dd97614e3c36251576f7779e410995b4411686f343dad2f7f6f2de8c3c2d009","record_changed_at":"2026-09-28","record_changed_at_basis":"first_hashed"}