Which AI model translates natural language text into SQL queries?
A company has terabytes of data in a database that the company can use for business analysis. The company wants to build an AI-based application that can build a SQL query from input text that employees provide. The employees have minimal experience with technology. Which solution meets these requirements?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests your ability to match AI model types to real-world tasks; the key is recognizing that text-to-SQL is a natural language processing (generation) task, which is the core strength of GPT models.
Generative pre-trained transformers (GPT) are the ideal AI solution for converting natural language input from non-technical employees into structured SQL queries, leveraging advanced natural language understanding and generation capabilities.
Some candidates confuse GPT with other models like Residual Neural Networks or Support Vector Machines, mistakenly thinking any ML model can handle free-form natural language to structured query translation.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why Generative Pre-trained Transformers (GPT) is the Correct Answer
The scenario describes a natural language to SQL translation task — employees with minimal technical experience will type plain English questions, and the system must produce valid SQL queries. This is fundamentally a natural language understanding and generation problem.
Generative pre-trained transformers (GPT) are large language models specifically architected for understanding and producing human-like text. They excel at tasks such as:
- Text-to-code / text-to-SQL generation
- Question answering
- Summarization and translation
Why the Other Options Are Incorrect
- Residual Neural Network (ResNet): Primarily used for image recognition and computer vision tasks. It has no inherent capability for natural language understanding or query generation.
- Support Vector Machine (SVM): A classical supervised learning algorithm used for classification and regression on structured, tabular data. It cannot interpret free-form text or generate SQL.
- WaveNet: A deep generative model developed by Google for audio synthesis (e.g., text-to-speech). It operates on raw audio waveforms and is completely unrelated to text or database query generation.
Community Consensus
All community voters (100%) selected A, and comments consistently highlight GPT's strength in natural language processing and its ability to be fine-tuned for text-to-SQL tasks, confirming this as the unambiguous correct answer.
Official Reference
Exam Strategy
When an exam question describes converting free-form human language into structured output (code, queries, commands), immediately look for generative AI or NLP-based models like GPT. Eliminate models tied to images, audio, or traditional classification tasks.
Related Analysis
Practice All AIF-C01 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AIF-C01 Practice Test →