mlsanityData to 7 Oct 2026

BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases

arXiv 2505.20321 ↗First posted 23 May 2025cs.CL cs.AI cs.LGcited by 4

On the map: LLM reasoning → Clinical and biomedical applications

Abstract (arXiv)

Biomedical researchers increasingly rely on large-scale structured databases for complex analytical tasks. However, current text-to-SQL systems often struggle to map qualitative scientific questions into executable SQL, particularly when implicit domain reasoning is required. We introduce BiomedSQL, the first benchmark explicitly designed to evaluate scientific reasoning in text-to-SQL generation over a real-world biomedical knowledge base. BiomedSQL comprises 68,000 question/SQL query/answer triples generated from templates and grounded in a harmonized BigQuery database that integrates gene-disease associations, causal inference from omics data, and drug approval records. Each question requires models to infer domain-specific criteria, such as genome-wide significance thresholds, effect directionality, or trial phase filtering, rather than rely on syntactic translation alone. We evaluate a range of open- and closed-source LLMs across prompting strategies and interaction paradigms. Our results reveal a substantial performance gap: Gemini-3-Pro achieves 58.1% execution accuracy under baseline prompting, while our custom multi-step agent, BMSQL, reaches 62.6%, both well below the expert baseline of 90.0%. BiomedSQL provides a new foundation for advancing text-to-SQL systems that support scientific discovery through robust reasoning over structured biomedical knowledge bases. The BiomedSQL benchmark and codebase are publicly available at https://datatecnica.github.io/biomedbench-suite/biomedsql.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Clinical and biomedical applications, one of 17 directions in LLM reasoning. Builds on 22 of its 41 references that are in the map. First posted on arXiv 23 May 2025.

Builds on

22 of 41 references.

References · 22

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  4. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  5. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  6. 2020Fact or Fiction: Verifying Scientific Claimscited by 546
  7. 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
  8. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  9. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
  10. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  11. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 164
  12. 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
10 more
  1. 2021Towards Robustness of Text-to-SQL Models against Synonym Substitutioncited by 110
  2. 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
  3. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 76
  4. 2025SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learningcited by 67
  5. 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 42
  6. 2024AMBROSIA: A Benchmark for Parsing Ambiguous Questions into Database Queriescited by 32
  7. 2021Further Generalizations of the Jaccard Indexcited by 26
  8. 2024SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmarkcited by 10
  9. 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
  10. 2025From Papers to Panoramas: Building Hierarchies of Scientific Literature at Scalecited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025MedBioLM: Optimizing Medical and Biological QA with Fine-Tuned Large Language Models and Retrieval-Augmented Generation
  2. 2025BioMedSearch: A Multi-Source Biomedical Retrieval Framework Based on LLMs
  3. 2026FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
  4. 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain
  5. 2025BioMol-MQA: A Multi-Modal Question Answering Dataset For LLM Reasoning Over Bio-Molecular Interactions
  6. 2025BioHopR: A Benchmark for Multi-Hop, Multi-Answer Reasoning in Biomedical Domain
  7. 2026Weaving Multi-Source Evidence for Biomedical Reasoning: The BioMedHop Benchmark and BioWeave Framework
  8. 2025Harnessing Collective Intelligence of LLMs for Robust Biomedical QA: A Multi-Model Approach