ASPECTS OF THE AUTOMATIC-GENERATION OF SQL STATEMENTS IN A NATURAL-LANGUAGE QUERY INTERFACE

被引:12
|
作者
OTT, N
机构
[1] IBM Deutschland GmbH, Scientific Center, Institute for Knowledge Based Systems, D-6900 Heidelberg 1
关键词
NATURAL LANGUAGE INTERFACE; GENERATION OF SQL; SQL; PREDICATE LOGIC;
D O I
10.1016/0306-4379(92)90009-C
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In Natural Language Interfaces to databases it is currently a widely accepted technique to use an intermediate semantic representation of the NL sentences which is more or less based on First Order Predicate Logic, eventually augmented by some specific functions inherent to the database query language like, e.g. the aggregation functions of SQL. However, in order not to restrict the full power of NL one also has to augment the SQL language in some way, because SQL has some restrictions and shortcomings, of which the lack of a loop capability for handling ordinals (e.g. the 3rd lowest..., the 5th highest...) is the most serious. In this paper such an augmentation (which we call SQL +) is presented, and it is shown that-observing some simple rules-a NL sentence can be mapped from its internal representation to SQL + in a straightforward and uniform manner. Though these SQL + expressions may not always be optimal from a performance point of view, they have some advantages which we consider to be more useful.
引用
收藏
页码:147 / 159
页数:13
相关论文
共 50 条