Quality assessment of GPT-3.5 and Gemini 1.0 Pro for SQL syntax

• GPT-3.5 has an accuracy of 87% for SQL syntax generation or correction, whereas the Gemini 1.0 Pro has 80%; • The quality of training data directly impacts the GPT-3.5’s and Gemini 1.0 Pro’s ability to generalize and provide accurate responses across various contexts; • GPT-3.5 and Gemini 1.0 Pro may automate certain aspects of programming; • Currently, GPT-3.5 and Gemini 1.0 Pro cannot replace human programmers, but they can augment their abilities and streamline specific tasks. Nowadays, GPT-3.5 and Gemini 1.0 Pro are employed for various tasks, both for personal and professional use, in multiple domains like education, economy, computer science, etc. Given the increase in users, knowing the quality level of these artificial intelligence (AI) tools is important. Thus, the paper presents a comparative analysis of syntax accuracy generated for SQL databases utilizing the services of GPT-3.5 and Gemini 1.0 Pro. Firstly, the algorithms for testing GPT-3.5 and Gemini 1.0 Pro were developed. Secondly, five types of tests, which implied 700 queries, were conducted by considering requirements with low and high degrees of difficulty. The tests focus on syntax-generated accuracy using an experimental (NorthWind) database, syntax-generated accuracy study using a user-made database, syntax correction accuracy, different responses to the same question on the same account, and different responses to the same question on other accounts. The accuracy obtained for all tests revealed that the GPT-3.5 service has a value of 87% for SQL syntax generation or correction, whereas the Gemini 1.0 Pro service has an accuracy of 80%. These results underscore the effectiveness of GPT-3.5 and Gemini 1.0 Pro in assisting with SQL syntax tasks, albeit with differing levels of precision. The findings highlight the significance of human supervision and validation in ensuring the correctness of AI-generated responses, particularly in database-related tasks. The results affect developers and database administrators when selecting appropriate tools for query requirements. For now, replacing programmers with GPT-3.5 and Gemini 1.0 Pro is impossible.

Authors

Institutions

Publication Details

Journal
Computer Standards & Interfaces
Published
2025-06-24
DOI
https://doi.org/10.1016/j.csi.2025.104041
Citations
8
Primary Topic
Scientific Computing and Data Management
Type
article
Field-Weighted Citation Impact
33.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Quality assessment of GPT-3.5 and Gemini 1.0 Pro for SQL syntax

Cosmina-Mihaela Roșca, Adrian Stancu
8 citations
Computer Standards & Interfaces
Scientific Computing and Data Management
33.35
article

Quality assessment of GPT-3.5 and Gemini 1.0 Pro for SQL syntax

Cosmina-Mihaela Roșca, Adrian Stancu
article en
8 citations

Abstract

• GPT-3.5 has an accuracy of 87% for SQL syntax generation or correction, whereas the Gemini 1.0 Pro has 80%; • The quality of training data directly impacts the GPT-3.5’s and Gemini 1.0 Pro’s ability to generalize and provide accurate responses across various contexts; • GPT-3.5 and Gemini 1.0 Pro may automate certain aspects of programming; • Currently, GPT-3.5 and Gemini 1.0 Pro cannot replace human programmers, but they can augment their abilities and streamline specific tasks. Nowadays, GPT-3.5 and Gemini 1.0 Pro are employed for various tasks, both for personal and professional use, in multiple domains like education, economy, computer science, etc. Given the increase in users, knowing the quality level of these artificial intelligence (AI) tools is important. Thus, the paper presents a comparative analysis of syntax accuracy generated for SQL databases utilizing the services of GPT-3.5 and Gemini 1.0 Pro. Firstly, the algorithms for testing GPT-3.5 and Gemini 1.0 Pro were developed. Secondly, five types of tests, which implied 700 queries, were conducted by considering requirements with low and high degrees of difficulty. The tests focus on syntax-generated accuracy using an experimental (NorthWind) database, syntax-generated accuracy study using a user-made database, syntax correction accuracy, different responses to the same question on the same account, and different responses to the same question on other accounts. The accuracy obtained for all tests revealed that the GPT-3.5 service has a value of 87% for SQL syntax generation or correction, whereas the Gemini 1.0 Pro service has an accuracy of 80%. These results underscore the effectiveness of GPT-3.5 and Gemini 1.0 Pro in assisting with SQL syntax tasks, albeit with differing levels of precision. The findings highlight the significance of human supervision and validation in ensuring the correctness of AI-generated responses, particularly in database-related tasks. The results affect developers and database administrators when selecting appropriate tools for query requirements. For now, replacing programmers with GPT-3.5 and Gemini 1.0 Pro is impossible.

Computer Standards & InterfacesVol. 95
Petroleum & Gas University of Ploieşti (RO)
Openalex Percentile: Top 1%
Scientific Computing and Data Management
33.35
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.