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 (81 Reviews)

Language
- English
Topic
- Artificial Intelligence
Enrollment Count
- 492
Skills You Will Learn
- LLM, LangChain, MySQL, SQL, Python
Offered By
- IBMSkillsNetwork
Estimated Effort
- 30 minutes
Platform
- SkillsNetwork
Last Update
- December 13, 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
- 492
Skills You Will Learn
- LLM, LangChain, MySQL, SQL, Python
Offered By
- IBMSkillsNetwork
Estimated Effort
- 30 minutes
Platform
- SkillsNetwork
Last Update
- December 13, 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
Wojciech "Victor" Fulmyk is a Data Scientist and AI Engineer on IBM’s Skills Network team, where he focuses on helping learners build expertise in data science, artificial intelligence, and machine learning. He is also a Kaggle competition expert, currently ranked in the top 3% globally among competition participants. An economist by training, he applies his knowledge of statistics and econometrics to bring a distinctive perspective to AI and ML—one that considers both technical depth and broader socioeconomic implications.
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