MotherDuck Research

Advancing the future of data + AI.

Query-Log-Informed Schema Descriptions and their Impact on Text-to-SQL
Query-Log-Informed Schema Descriptions and their Impact on Text-to-SQL
DuckDBMotherDuckSchema DocumentationText-to-SQL

Query-Log-Informed Schema Descriptions and their Impact on Text-to-SQL

Automatically generating schema documentation from historical query logs to improve LLM-powered Text-to-SQL. Tested on both the BIRD benchmark and MotherDuck’s production data warehouse, query pattern descriptions boost SQL generation accuracy by up to 16% on real-world data.