Journal article · 2026 · Open access

SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization

Hanan Abed Alwally Abed Allah

International Journal of Computers and Informatics, 5(6), 96–111 · Published 26 June 2026 · DOI 10.59992/ijci.2026.v5n6p6

Open PDFView at the publisherCite this paper

In brief

“SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization” is a 2026 journal article by Hanan Abed Alwally Abed Allah, published in International Journal of Computers and Informatics. OpenAlex counts 0 citations as of 25 November 2026. It is open access: the full text is free to read at International Journal of Computers and Informatics.

Citations
0
References
14
Authors
1

Abstract

While relational database systems can process billions of queries per day with SQL, their cost-based optimizers use hand-crafted heuristics and simplified cardinality estimators that can lead to large estimation errors. These errors creep up into the query plan selection, often leading to poor or even disastrous performance when the query is executed. In this paper, new framework for SQL query cost prediction and recommendation of optimize SQL query, named as SQLEM++ (SQL Query Learning and Embedding Model). SQLEM++ is a dual-encoder architecture consisting of a domain-adapted transformer (SQL-BERT) and a structural Graph Neural Network (GNN) over query Abstract Syntax Trees to encode queries in semantically rich representations. The framework also includes heterogenous feature extraction of join complexity, filter selectivity, index coverage, and schema-level statistics. A multi-task prediction module is used to estimate the execution cost along with providing the classification of query quality into actionable levels, using the asymmetric Huber loss. Further, an explainability layer, derived from explainability with SHAP attribution and attention roll-out, converts model predictions to interpretable optimization recommendations. On top of this, SQLEM++ is introduced as an adaptive extension that fuses a learned cost model with the traditional optimizers in a hybrid manner, an uncertainty aware decision algorithm for reliability control, and a reinforcement learning feedback loop for continuous self-improvement. The results of an extensive evaluation on TPC-H (scale factors 1–100), and TPC-DS show that SQLEM achieves an average speed-up of query execution by 3.24 times compared to the PostgreSQL 16 optimizer and a mean absolute prediction error reduction of 71.4%, with an R² of 0.94. Ablation studies validate that both semantic and structural encoders support each other.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Allah, H. A. A. A. (2026). SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization. International Journal of Computers and Informatics, 5(6), 96–111. https://doi.org/10.59992/ijci.2026.v5n6p6

MLA 9

Allah, Hanan Abed Alwally Abed. “SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization.” International Journal of Computers and Informatics, vol. 5, no. 6, 2026, pp. 96–111. https://doi.org/10.59992/ijci.2026.v5n6p6.

Chicago

Allah, Hanan Abed Alwally Abed. 2026. “SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization.” International Journal of Computers and Informatics 5 (6): 96–111. https://doi.org/10.59992/ijci.2026.v5n6p6.

Harvard

Allah, H. A. A. A. (2026) ‘SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization’, International Journal of Computers and Informatics, 5(6), pp. 96–111. doi:10.59992/ijci.2026.v5n6p6.

IEEE

H. A. A. A. Allah, “SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization,” International Journal of Computers and Informatics, vol. 5, no. 6, pp. 96–111, 2026, doi: 10.59992/ijci.2026.v5n6p6.

BibTeX

@article{allah2026sqlem,
  title     = {{SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization}},
  author    = {Allah, Hanan Abed Alwally Abed},
  journal   = {International Journal of Computers and Informatics},
  year      = {2026},
  volume    = {5},
  number    = {6},
  pages     = {96--111},
  doi       = {10.59992/ijci.2026.v5n6p6},
  url       = {https://doi.org/10.59992/ijci.2026.v5n6p6}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Information Systems › Advanced Database Systems and Queries

  • query optimization
  • explainable AI
  • hybrid learning
  • graph neural networks
  • cardinality estimation
  • SHAP feature attribution
  • decision making under uncertainty
  • reinforcement learning

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Allah, H. A. A. A. (2026). SQLEM++: An Explainable Hybrid Learning Framework for SQL Query Cost Prediction and Optimization. International Journal of Computers and Informatics, 5(6), 96–111. https://doi.org/10.59992/ijci.2026.v5n6p6

How many times has this paper been cited?

0 times, according to OpenAlex on 25 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at International Journal of Computers and Informatics: sign in and open the PDF from this page.

Who wrote this paper?

Hanan Abed Alwally Abed Allah.

What is the DOI of this paper?

10.59992/ijci.2026.v5n6p6, permanently at https://doi.org/10.59992/ijci.2026.v5n6p6. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 25 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.