Hipp uses “AI” broadly to mean a program that performs tasks usually handled by an intelligent person. He describes SQL as a programming language whose compiler turns requirements into executable plans, rather than requiring the user to specify each step. In SQLite, those plans are prepared statements in bytecode, which developers can inspect with EXPLAIN.
Structured Query Language: The Other AI
Speaker
D. Richard Hipp, creator of SQLite, argues that SQL works as an AI assistant for solving data requirements at React Universe Conf 2025, hosted by Callstack.
Simple queries may be handled directly, but queries with multiple sources, subqueries, or recursive common table expressions require more planning. In a nodes-and-edges example, Hipp shows two ways to find edges between named nodes with specified attributes. Which approach performs better depends on the data, so SQL lets the compiler make that choice.
Hipp walks through a benchmark query with eight data sources and describes representing query planning as a weighted graph. Finding a low-cost route is an NP-complete problem, so database engines use heuristics. In his example, a better route reduces the cost from 36.92 to 27.38, which he says makes execution about 750 times faster.
Hipp recommends measuring work by whether it solves more problems than it creates, and says SQL can help people work faster and more accurately. He advises reviewing SQL generated by large language models because they can produce nonsensical answers. For database choice, he suggests client-server systems for remote data, very large datasets, or many concurrent writes, and SQLite for many other cases.
Takeaways
- Treat SQL as a way to state data requirements and let the database choose an execution plan.
- Complex queries can save engineering time by avoiding hand-coded algorithm selection and tuning.
- Query planners use heuristics because finding the optimal plan can be computationally intractable.
- Review SQL produced by language models carefully; apparent confidence does not ensure correctness.
- Choose a client-server database for remote data, multi-terabyte scale, or heavy concurrent writes; otherwise consider SQLite.
Mentioned in this talk
Search inside this talk
What was claimed 7
- builtD. Richard Hipp built SQLiteoriginal author and creator
“I was working as a freelance application developer. This was back in the late 1990s into 2000.”
0:55inSQLite's Origin, Rigorous Testing, and FutureYouTube Verified4 sources· Talk, Web· archived
- featureSQLite: Can expose prepared-statement bytecode with EXPLAIN
“you can put the EXPLAIN keyword before an SQL statement”
YouTube Unverified1 source· Talk
- featureSQL: Compiles requirements into executable prepared statements and selects algorithms for queries
“there's a compiler in every implementation of SQL that translates that program”
YouTube Unverified1 source· Talk
- metricSQL: Can choose an algorithm in about 10 microseconds
“decide how to do this in about 10 microseconds”
YouTube Unverified1 source· Talk
- featureSQL: Query planning can find a route estimated to be 750 times faster than the nearest-neighbor result in the benchmark example
“This new algorithm is 750 times faster than the previous one”
YouTube Unverified1 source· Talk
- featurelarge language models: Can generate SQL, but may hallucinate when confused
“if you get SQL out of a large language model, you really want to review the code very carefully”
YouTube Unverified1 source· Talk
- featureSQLite: Recommended for many workloads that do not require remote access, multi-terabyte data, or many concurrent writes
“most of the problems you have don't meet these requirements, and you can go with SQLite”
YouTube Unverified1 source· Talk












