|
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
| Volume 187 - Issue 127 |
| Published: July 2026 |
| Authors: Dušan Petković |
10.5120/ijca2790209b707b
|
Dušan Petković . Temporal Reasoning of LLMs in Relation to Text-to-SQL. International Journal of Computer Applications. 187, 127 (July 2026), 33-37. DOI=10.5120/ijca2790209b707b
@article{ 10.5120/ijca2790209b707b,
author = { Dušan Petković },
title = { Temporal Reasoning of LLMs in Relation to Text-to-SQL },
journal = { International Journal of Computer Applications },
year = { 2026 },
volume = { 187 },
number = { 127 },
pages = { 33-37 },
doi = { 10.5120/ijca2790209b707b },
publisher = { Foundation of Computer Science (FCS), NY, USA }
}
%0 Journal Article
%D 2026
%A Dušan Petković
%T Temporal Reasoning of LLMs in Relation to Text-to-SQL%T
%J International Journal of Computer Applications
%V 187
%N 127
%P 33-37
%R 10.5120/ijca2790209b707b
%I Foundation of Computer Science (FCS), NY, USA
Querying data stored by database systems has been one of the most important tasks of these systems. Hence, there were always efforts to generate such queries using text written in a natural language. In this article we use a part of the SQL Standard called SQL/OLAP and ChatGTP as a representative of Large Language Models (LLMs) to evaluate the process described above. Our evaluation shows that different subgroups of queries deliver significantly different results. There are two subgroups of queries, for which ChatGTP generates many erroneous queries. The first subgroup comprises queries related to non-standardized temporal features and predicates. In other words, the main property of the queries in this group is that they are not specified in the standard, but are supported by several RDBMSs. The second subgroup contains queries in relation to standardized temporal features and predicates not implemented in the chosen RDBMS. Our evaluation shows that for the subgroup of queries related to non-standardized temporal features, ChatGTP generates only one query correctly. If the generation process demands the use of standardized temporal features, which are not implemented in the DBMS, the error rate is 43% and 75%, respectively.