SQLizer: Query synthesis from natural language

被引:145
作者
Yaghmazadeh, Navid [1 ]
Wang, Yuepeng [1 ]
Dillig, Isil [1 ]
Dillig, Thomas [1 ]
机构
[1] University of Texas, Austin, United States
关键词
Query languages - Automation - Semantics - Iterative methods - Query processing - Natural language processing systems;
D O I
10.1145/3133887
中图分类号
学科分类号
摘要
This paper presents a new technique for automatically synthesizing SQL queries from natural language (NL). At the core of our technique is a new NL-based program synthesis methodology that combines semantic parsing techniques from the NLP community with type-directed program synthesis and automated program repair. Starting with a program sketch obtained using standard parsing techniques, our approach involves an iterative refinement loop that alternates between quantitative type inhabitation and automated sketch repair. We use the proposed idea to build an end-to-end system called Sqlizer that can synthesize SQL queries from natural language. Our method is fully automated, works for any database without requiring additional customization, and does not require users to know the underlying database schema. We evaluate our approach on over 450 natural language queries concerning three different databases, namely MAS, IMDB, and YELP. Our experiments show that the desired query is ranked within the top 5 candidates in close to 90% of the cases and that Sqlizer outperforms Nalir, a state-of-the-art tool that won a best paper award at VLDB’14. © 2017 Copyright held by the owner/author(s).
引用
收藏
相关论文
empty
未找到相关数据