INTERNATIONAL JOURNAL OF INFORMATION AND COMMUNICATION TECHNOLOGIES

A MATHEMATICAL AND ALGORITHMIC APPROACH TO THE DEVELOPMENT OF AN INTELLIGENT TEXT-TO-SQL SYSTEM BASED ON LARGE LANGUAGE MODELS

Authors

  • B.Z. Kenzhegulov Атырауский университет имени Х.Досмухамедова
  • Zh.T. Bilyalova Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan
  • K.N. Uteuliyeva Candidate of Physical and Mathematical Sciences, Associate Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan
  • L. Nurgaliyeva Master’s degree holder in AI Security and Machine Learning, Saidot Ltd., Helsinki, Finland
  • Sh.S. Nurzhanova Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

DOI:

https://doi.org/10.54309/IJICT.2026.26.2.008

Keywords:

Text-to-SQL, большие языковые модели, SQL, интеллектуальная система, математическая модель, алгоритм, RAG, агентные системы, векторный поиск, реляционная база данных.

Abstract

The article considers the problem of developing mathematical and algorithmic support for an intelligent Text-to-SQL system designed to automatically convert user queries in natural language into SQL queries for relational databases. The relevance of the study is determined by the growth in the volume of structured data and the need to increase the accessibility of analytical tools for users who do not possess deep knowledge of the SQL language. A formal formulation of the Text-to-SQL problem is proposed as a mapping between a natural-language query, a database schema, the subject-domain context, and the resulting SQL query. The paper examines a mathematical model of a relational schema, a user query, semantic retrieval of relevant context, and a correctness criterion for the generated SQL query. A generalized architecture of an intelligent system is developed, combining large language models, Retrieval-Augmented Generation technology, and an agent-based mechanism for automatic error correction. An algorithm for the system’s operation is presented, including query analysis, extraction of relevant database schema elements, SQL query generation, query execution, verification, and automatic error correction. It is shown that the combination of LLM, RAG, and an agent-based approach can improve the accuracy, adaptability, and practical applicability of Text-to-SQL systems in corporate analytics.

Downloads

Download data is not yet available.

Author Biographies

Zh.T. Bilyalova, Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

K.N. Uteuliyeva, Candidate of Physical and Mathematical Sciences, Associate Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

Candidate of Physical and Mathematical Sciences, Associate Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

L. Nurgaliyeva, Master’s degree holder in AI Security and Machine Learning, Saidot Ltd., Helsinki, Finland

Master’s degree holder in AI Security and Machine Learning, Saidot Ltd., Helsinki, Finland

Sh.S. Nurzhanova, Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

Candidate of Pedagogical Sciences, Professor of the Department of Mathematics and Methods of Teaching Mathematics, Atyrau University named after Kh. Dosmukhamedov, Kazakhstan

Published

2026-06-30

How to Cite

Кенжегулов, Б., Zh.T. Bilyalova, K.N. Uteuliyeva, L. Nurgaliyeva, & Sh.S. Nurzhanova. (2026). A MATHEMATICAL AND ALGORITHMIC APPROACH TO THE DEVELOPMENT OF AN INTELLIGENT TEXT-TO-SQL SYSTEM BASED ON LARGE LANGUAGE MODELS. INTERNATIONAL JOURNAL OF INFORMATION AND COMMUNICATION TECHNOLOGIES, 7(2), 110–130. https://doi.org/10.54309/IJICT.2026.26.2.008

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.

Loading...