Query SQL with LangChain and Granite3 using Natural language
Use LangChain and the IBM's WatsonX Granite 3 large language model (LLM) to enable intuitive querying of MySQL databases using natural language. By translating natural language queries into SQL commands and executing them with LLMs, you simplify complex data manipulation and analysis. This approach makes data querying more accessible and efficient for professionals across various industries, streamlining workflows and enhancing decision-making processes.
4.6 (79 Reviews)

Language
- English
Topic
- Artificial Intelligence
Enrollment Count
- 484
Skills You Will Learn
- LLM, LangChain, MySQL, SQL, Python
Offered By
- IBMSkillsNetwork
Estimated Effort
- 30 minutes
Platform
- SkillsNetwork
Last Update
- November 3, 2025
Overview
Objectives
- Integrate natural language processing: Use tools like LangChain and large language models (LLM) such as Granite 3 to interpret natural language queries.
- Execute SQL queries from natural language: Translate natural language questions into SQL queries to fetch relevant data from the MySQL database.
What you'll need

Language
- English
Topic
- Artificial Intelligence
Enrollment Count
- 484
Skills You Will Learn
- LLM, LangChain, MySQL, SQL, Python
Offered By
- IBMSkillsNetwork
Estimated Effort
- 30 minutes
Platform
- SkillsNetwork
Last Update
- November 3, 2025
Instructors
Kang Wang
Data Scientist
I was a Data Scientist in the IBM. I also hold a PhD from the University of Waterloo.
Read moreKaran Goswami
Data Scientist at IBM
I am a dedicated Data Scientist and an AI enthusiast, currently working at IBM's Skills Builder Network. Learning how some simple mathematical operations could be used to make predictions and discover patterns sparked my curiosity, leading me to explore the exciting world of AI. Over the years, I’ve gained hands-on experience in building scalable AI solutions, fine-tuning models, and extracting meaningful insights from complex datasets. I'm driven by a desire to apply these skills to solve real-world problems and make a meaningful impact through AI.
Read moreWojciech "Victor" Fulmyk
Data Scientist at IBM
I am a data scientist and economist with a strong background in econometrics, time series analysis, causal inference, and statistics. I stand out for my ability to combine technical expertise with clear communication, turning complex data findings into practical insights for stakeholders at every level. Follow my projects to learn about data science principles, machine learning algorithms, and artificial intelligence agents.
Read moreContributors
Ricky Shi
Data Scientist at IBM
Ricky Shi is a Data Scientist at IBM, specializing in deep learning, computer vision, and Large Language Models. He applies advanced machine learning and generative AI techniques to solve complex challenges across various sectors. As an enthusiastic mentor, Ricky is committed to helping colleagues and peers master technical intricacies and drive innovation.
Read more