AI POWERED NATURAL LANGUAGE TO SQL QUERY SYSTEM TO CSV DATA ANALYSIS
Abstract
The rapid growth of data across various domains has increased the need for efficient and user-friendly data analysis tools. However, extracting meaningful insights from structured datasets often requires knowledge of Structured Query Language (SQL), making data analysis difficult for non-technical users. To address this challenge, this project titled "Smart Data Analyzer" presents an intelligent web-based application that enables users to analyze CSV datasets using natural language queries without requiring SQL expertise.The proposed system allows users to upload CSV files, which are validated and stored in a SQLite database. The application utilizes Google's Gemini Large Language Model (LLM) to convert user questions written in plain English into valid SQL queries. To ensure database security, a SQL validation module permits only read-only SELECT queries while blocking potentially harmful operations such as INSERT, UPDATE, DELETE and DROP. The validated queries are executed on the SQLite database, and the results are displayed in tabular format.To enhance data interpretation, the system automatically recommends and generates interactive visualizations using Plotly based on the query results. Users can also export the generated results in CSV and Excel formats for further analysis and reporting. The application is developed using Python and Streamlit, providing an intuitive and responsive web interface for seamless user interaction.This project demonstrates the effective integration of Artificial Intelligence, Natural Language Processing (NLP), Database Management, and Data Visualization techniques to simplify data analysis. By eliminating the need for manual SQL coding, the proposed system improves accessibility, enhances productivity, reduces analysis time, and empowers both technical and non-technical users to derive meaningful insights from structured data efficiently.
References
. Brown, T.; Green, A. (2024). Artificial Intelligence Applications in Natural Language to SQL Systems. Journal of Intelligent Data Analytics, Vol. 12(1), pp. 67–91.
. Google DeepMind Research (2024). Large Language Models for Natural Language Understanding and SQL Query Generation. AI Systems Review, pp. 45–68.
. Google Gemini Documentation Team (2024). Google Gemini API for Natural Language Understanding and SQL Generation. Artificial Intelligence Development Guide, pp. 55–73.
. IBM Research (2023). Natural Language Interfaces for Database Query Processing. Journal of Artificial Intelligence Applications, Vol. 9(2), pp. 52–74.
. IEEE Research Publications (2024). Natural Language Processing Techniques for Intelligent SQL Query Generation. IEEE Transactions on Artificial Intelligence, Vol. 6(2), pp. 140–159.
. Kumar, R.; Sharma, P. (2023). Machine Learning Approaches for Intelligent Data Analysis and Query Processing. International Journal of Data Science, Vol. 8(2), pp. 101–120.
. Microsoft Research (2024). AI-Based Database Query Generation and Intelligent Data Analytics. Intelligent Computing Journal, pp. 30–49.
. OpenAI Research Team (2024). Large Language Models for Natural Language Query Understanding. Advanced Artificial Intelligence Journal, pp. 130–150.
Refbacks
- There are currently no refbacks.