[Paper Review] The Query Translation Landscape: a Survey
This survey analyzes over 40 query translation methods across seven major query languages, proposing eight criteria to evaluate translation quality and identifying SQL and SPARQL as the most suitable candidates for a universal query language. It reveals critical gaps in handling advanced query features and calls for standardized benchmarks and use-case-driven evaluation.
Whereas the availability of data has seen a manyfold increase in past years, its value can be only shown if the data variety is effectively tackled ---one of the prominent Big Data challenges. The lack of data interoperability limits the potential of its collective use for novel applications. Achieving interoperability through the full transformation and integration of diverse data structures remains an ideal that is hard, if not impossible, to achieve. Instead, methods that can simultaneously interpret different types of data available in different data structures and formats have been explored. On the other hand, many query languages have been designed to enable users to interact with the data, from relational, to object-oriented, to hierarchical, to the multitude emerging NoSQL languages. Therefore, the interoperability issue could be solved not by enforcing physical data transformation, but by looking at techniques that are able to query heterogeneous sources using one uniform language. Both industry and research communities have been keen to develop such techniques, which require the translation of a chosen 'universal' query language to the various data model specific query languages that make the underlying data accessible. In this article, we survey more than forty query translation methods and tools for popular query languages, and classify them according to eight criteria. In particular, we study which query language is a most suitable candidate for that 'universal' query language. Further, the results enable us to discover the weakly addressed and unexplored translation paths, to discover gaps and to learn lessons that can benefit future research in the area.
Motivation & Objective
- To address the challenge of data interoperability in heterogeneous data environments, particularly in polyglot persistence and data lake architectures.
- To identify and evaluate existing query translation methods that enable querying diverse data sources using a single, uniform query language.
- To uncover underexplored translation paths and gaps in current research, especially regarding support for advanced query features and optimization strategies.
- To propose a standardized evaluation framework for query translation by identifying the lack of a dedicated benchmark in the field.
Proposed method
- The authors define an 8-criteria 'Query Translation Identity Card' to systematically evaluate and categorize query translation methods based on language coverage, expressivity, optimization, and other technical aspects.
- They survey more than 40 tools and academic works on query translation between widely used query languages, including SQL, SPARQL, XPath, XQuery, Gremlin, Cypher, and NoSQL variants.
- The survey includes a historical timeline of query translation research (2003–2019) to track adoption trends and identify periods of high or low research activity.
- The authors use graphical representations and comparative analysis to visualize translation coverage, language pairings, and feature support across systems.
- They assess translation quality by examining optimization techniques applied during translation versus post-translation, emphasizing runtime performance gains.
- The study evaluates the scope of supported query features—such as complex joins, temporal functions, blank nodes, and grouping—across different translation pipelines.
Experimental results
Research questions
- RQ1Which query languages are most suitable as a universal language for interoperability across heterogeneous data sources?
- RQ2What are the most under-addressed or unexplored query translation paths among popular query languages?
- RQ3How do optimization strategies during query translation impact performance compared to optimizing the generated target query?
- RQ4To what extent do existing translation methods support advanced query features like temporal functions, complex joins, or SPARQL-specific constructs?
- RQ5Why is there a lack of standardized benchmarks for evaluating query translation systems, and what would a universal benchmark look like?
Key findings
- SQL and SPARQL are the most suitable candidates for a universal query language, as they have the highest number of bidirectional translation mappings to other languages.
- Optimizations applied during the translation process—leveraging source system statistics—yield greater performance improvements than post-translation optimizations on the target query.
- Many existing translation systems lack support for advanced query features such as complex joins in SQL, blank nodes and grouping in SPARQL, and temporal functions.
- There is no standardized benchmark for evaluating query translation systems, despite the growing need for such a tool to enable fair and reproducible comparisons.
- Most evaluation frameworks are ad hoc and lack real-world use-case validation; use-case-driven testing with representative query patterns is needed for meaningful assessment.
- Research on XML-to-SQL and XML-to-Gremlin translation is declining, with no new works published after 2015, indicating waning interest or maturity in these areas.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.