AI-powered text-to-SQL feature in ClickHouse
Mark Needham
This video explores the exciting new AI-powered text-to-SQL feature introduced in ClickHouse 25.7. This nifty addition allows users to generate SQL queries using natural language, making database interactions more intuitive and accessible. We'll walk you through setting it up and demonstrate its capabilities using real-world examples from a UK property price dataset.
Key points covered:
- Setting up the AI-powered text-to-SQL feature with OpenAI or Anthropic API keys
- Exploring available databases and tables using AI-generated queries
- Demonstrating how the AI analyzes schema information to create relevant SQL
- Tips for framing questions to get the most accurate results
This tutorial offers a practical look at how AI can simplify database querying, potentially making ClickHouse more accessible to those less familiar with SQL syntax. Whether you're a seasoned data analyst or just starting with databases, you'll find valuable insights in this demonstration of ClickHouse's latest innovation.
Docs - https://clickhouse.com/docs/use-cases/AI/ai-powered-sql-generation
Recent videos
View all Videos
Open House
Open House 2026: Day 1 Keynote
The latest ClickHouse announcements, featuring real-world use cases from Shopify, Zoox, Visa, and Cisco.

Open House
Fireside Chat: The state of data and AI with Bret Taylor (Sierra) and Aaron Katz (ClickHouse)
Aaron Katz (CEO, ClickHouse) and Bret Taylor (Co-Founder Sierra, Chairman of the Board, OpenAI) have an open conversation on the state of AI.

Open House, ClickHouse
How to build a great database (Alexey Milovidov)
The principles behind building a great database, and the new frontiers shaping the field.

Open House
Fireside Chat: Ecosystem and technology trends (Vercel, dbt Labs, CoreWeave)
Aaron Katz (CEO, ClickHouse), Guillermo Rauch (CEO, Vercel), Tristan Handy (CEO, dbt Labs), and Lukas Biewald (SVP of AI, CoreWeave) discuss how AI is changing the data landscape.