PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 8, 20260 citationsOpen Access

Extending a rule-based SQL-to-MongoDB translator for a two-stage text-to-NoSQL pipeline

View Full Paper
TJTahsin Jawwad

Key Points

  • The research aims to enhance a SQL-to-MongoDB translation algorithm to support a wider range of SQL queries and improve translation accuracy.
  • Develop a two-stage Text-to-NoSQL pipeline for translating SQL to MongoDB Query Language (MQL).
  • Extend the existing translator to support complex SQL features like GROUP BY, JOINs, and scalar subqueries.
  • Evaluate performance on the TEND benchmark with SQL predictions from existing Text-to-SQL models.
  • Translation failures reduced from 1021 to 32, a 96.9% reduction.
  • Translation success rate improved from 63.2% to 98.9% without regressions.
  • Execution accuracy on the TEND benchmark increased from 18.0% to 40.8%, approaching LLM-based converter accuracy.

Abstract

This thesis develops a SQL-to-MongoDB translation algorithm using a two stage Text-to-NoSQL pipeline. The translator, embedded in the UnityJDBC middleware, converts SQL produced by Text-to-SQL models into MongoDB Query Language (MQL) executable against a MongoDB instance. This work extends the baseline translator, which handled only simple SELECT WHERE–LIMIT queries, with native support for GROUP BY, HAVING, DISTINCT combined with ORDER BY, set operations (UNION, INTER SECT, EXCEPT), IN/NOT IN with correlated subqueries, scalar subqueries, arithmetic and string-concatenation expressions in projections, and JOIN support with correct field resolution. Cross-cutting fixes address case-insensitive schema lookup, cross-branch table resolution for set operations, and a planner NPE, together with two SQL preprocessing passes that normalise double quoted string literals and quote the reserved identifier Rank before the SQL reaches UnityJDBC. On the TEND benchmark of 2775 SQL–MQL pairs derived from Spider and BIRD LSQ⁺25, using SQL predictions from DAIL SQL GWL⁺23, these changes reduced translation failures from 1021 to 32, a 96.9% reduction, and improved the translation success rate from 63.2% to 98.9% with zero regressions. Execution accuracy on the same benchmark rose from 18.0% to 40.8%, nearly four times the 10.8% reported for the rule-based Grammar Converter in Lu et al. LSQ⁺25 and within 4.0 percentage points of their LLM-based SQL-to-MQL converter, at a fraction of the inference cost

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Tahsin Jawwad (2026) studied this question.

synapsesocial.com/papers/69fd7fa1bfa21ec5bbf0833ahttps://doi.org/10.14288/1.0452105
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Heuristic-Guided Text-to-SQL Translation with LLMs: Optimizing Natural Language Interfaces for Relational Databases2025
  2. 2Enhancing text-to-SQL capabilities of small language models via schema context enrichment and self-correction2025
  3. 3Enhancing text-to-structured query language translation for seamless electronic medical record access2026
  4. 4A robust natural language text-to-SQL generation framework with dynamic strategies based on LLMs2026 · 1 citations
  5. 5Schema-Aware Multi-Task Learning for Complex Text-to-SQL2024