Approximate Responses from a Data Base Query System: An Application of Inferencing in Natural Language
Proceedings of the Fifth International Joint Conference on Artificial Intelligence. Representation of Knowledge. Pages 211-211.
© 1977 International Joint Conferences on Artificial Intelligence
Abstract
- BS76
- Belnap, N.D. and Steel, T.B., The Logic of Question and Answers, Yale University of Press, New Haven, 1976.
- Clark, H.H. and Haviland, S.E., "Compre- hension and the Given-New Contract," in Discourse Production and Comprehension (ed.
- R. Freedle) , Lawrence Er lbaum, Hillside, N.J., 1975 .
- G6 7)
- Grice, H. P. , "The Logic and Conversations" , in The Logic of Grammar ( eds. D. Davidson and G. Harman) , Dickinson, Encino, Calif . , 1975.
- KH73)
- Keenan, E.L. and Hull, R.D., "The logical presuppositions of questions and answers," in Prasu£P?sitionen in Philosophie Und Linguistik (eds. J.S . Petofi and D. Franck), Athenaum Verlag, Franfurt, 1973.
- JW77)
- Joshi, A.K. and Weischedel, R., "Compu- tation of a subclass of inferences: presup- position and entailment, " American Journal of Computational Linguistics, January 1977.
- Lehnert, W., "Hurran and computational question answering", Cognitive Science, vol. l, no. l, 1977.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
APPROXIMATE RESPONSES FROM A DATA BASE QUERY SYSTEM: AN APPLICATION OF INFERINCING IN NA'IURAL lANGUAGE
Aravind K. Joshi and S. Jerrold Kaplan University of Pennsylvania Department of Computer and Information Science The Moore School of Electrical Engineering Philadelphia, Pennsylvania 19104
Ronald M. Lee Department of Decision Sciences The Wharton School University of Pennsylvania Philadelphia, Pennsylvania 19104
Our goal is the development and application of various techniques for generating approximate re sponses to data base queries. An "approximate re sponse" is a response other than a direct answer to the question. Approximate responses are frequently referred to by linguists as "indirect answers" or "replies" (e.g . in BS76). What is approximate is not so much the response as the relationship be tween the response and the initial query . Our ap proach is to regard an interaction between au.5er and a data base as a discourse, having the ro rtles and constralnts normall assoclated with human dialog. Conversatlonal Postulates of Grlce (G67) are examples of such constraints . ) Many of the conventions of human dialog can be implemented through approximate responses which, for instance, 1) aid a user in formulating a suitable alternative query when the precise response to the initial query would be uninteresting or useless; 2) inform a user about the structure or content of the data base when the user is unfamiliar with its com plexities; and 3) summarize at an appropriate level, eliminating unnecessary detail.
Natural language (NL) query systems are of benefit to users who are only partially familiar with the structure and/or content of the under lying data base. Such "naive" users are typically hampered by their lack of knowledge in formulating a query which will retrieve the desired information . We believe that NL can do more than simply provide the user with a conveni ent, higher-level re placement for a formalized query syntax . NL questions frequently embed information about the user's understanding of the structure of the data. This information can be exploited to inform and guide the user in the use of the data base .
Of particular interest to us is t he key role that shared knowledge between conversants plays in the effectiveness of human dialog . As observed in (CH75), dialog tends to proceed with statements which offer a specific piece of 'new' informati on to the conversation which is differentiated from information considered as 'given' or already known
This work i s partially su~ported by NSF Grant MCS 76.:...19466 .
We wish to thank Peter Buneman, Rob Gerritsen, and Ivan Sag for many fruitful discussions .
to the other party. Breaches of this 'Given-New Contract ' can point to the need for additional background information to be supplied in order for communication to be effective. We believe that this observation can be effectively utilized with in the context of queries to a data base system. Our approach here is to pay special attention to the 'given' information contained in the user's questions in the form of presuppositions. If these turn out to be false, we interpret this as a signal that the user misunderstands some aspect of the data base 's structure or content and is in need of additional clarification. An ap~roximate response expli citly contradicting the falled presu~sition and perha~s sug~esting an alterna tive lS appropriate, as lt is ln human dialog . Such a response serves to correct the users misimpressions and provide suggestions for alter natives, hopefully relevant and useful ones.
A presupposition of a sentence S can be broadly defined as any assertion that must be true in order for S to be meaningful . In the case of questions, the presupposition must be true for a direct answer to be meaningful .
Presuppositions come in many forms. There are presuppositions which are primarily syntactic (JW77) . Others deal with implied restrictions on the size, or a claim about the completeness of the answer set (BS76) . Of particular interest in a data base context are those presuppositions of an NL question which are implied by a corresponding formal query to a given data- base structure. We have observed that each stage in the execution of a formal query, except for the final one, has an interpretation as a presupposition of the NL question . If a particular stage of execution re turns a null set, the corresponding presupposition has failed and can be explicitly contradicted, rather than returning an obviously uninformative or misleading null response .
Consider the query
"WHICH LINGUISTICS MAJORS GOT A GRADE OF B OR BETTER IN CSSOO?"
Assuming a suitable structure for the data (see Figure one) , a corresponding formal query might perform the following oper ations : 1) Find the set of students and restrict it to linguistics majors; 2) Find the set of courses and restrict it to CSSOO; 3) Find the class list (set of students) associated with the result of 2; 4) Restrict the class list of 3 to those with grades > B; and 5) Intersect 4 with 1 to produce the response . An empty set at each stage could be used to produce the following ap proximate responses contradicting the failed presuppositi ons : 1) There are no linguistics majors; 2) There is no course "CSSOO"; 3) No students were enrolled in CSSOO; and 4) No students received a grade of B or better in CSSOO. A failure in the final stage leads to the direct answer NONE. It is worth noting that different data structures will reveal different presuppo siti ons . For instance, a different data base might produce the response "No linguistics majors took CSSOO ."
Another type of approximate response deals with the generation of a response to a substitute query . For instance, " Is Venus the ;fourth planet?H rray be responded to by "No, it is the second planet."(see (177) for similar examples) . A de termination of the focus and topic of the question can be used to generate an appropriate alternative, as opposed to (say) "No, Mars is the fourth planet. " Syntactic and contextual cues are under investigation to determine the topic and focus in the face of partial information. Careful construction of the formal que~ can provide a relevant piece of alternative 1nformation for free by selecting the most appropriate access path to the desired information.
An important convention of hurran conversation is that no participant monopol ize the discourse, so that control can be shared. One implication of this is that all .responses given in a conver sational mode must be short . Thus where the system would otherwise respond with a lengthy list, we would prefer to be able to return a non- enumera tive , or "intensional" response . Lengthy response sets could be sumrrarized, or defined by a charac teristic or attribute. For instance, the question "Which employees engage in profit sharing?" may be answered by listing the extension of a set containing (perhaps) 10,000 names, or by the in tensional response "All vice-presidents." The sumrrary might be computed from the data or infered from the data base schema, and can be used to avoid unnecessary and distracting detail . In these cases , the response may implicitly incorpo rate the restrictions of the question . For instance, a response to "Which students were in vited to the party?" of "The girls living in West Philadelphia ." clearly implies that only those girls who are students were invited (KH73).
Conversations also allow hypothetical questions, or questions about the structure of the world (in our case, the data base). Questions such as "Can supervisors profit share?" may be answered affirmatively by the contents of the data base (finding an instance), or negatively by noting that the data base structure precludes such a possibility. If neither of these alterna tives are successful , an ·approximate response of "maybe", or "I don't know" may be returned, (since many constraints to the data base may be imposed by the logic of the updating programs or organi zational procedures) .
Finally, conversations admit answers of a statistically approximate nature. "What per centage of welfare recipients are single mothers?" may be sufficiently answered by "About 80%" . This concept is of use in the execution of queries on very large data bases, when precise responses are both unnecessary and expensive. If the user is willing to accept an approximate response which is within a given confidence level, this can frequently be computed for a fraction of the cost of a complete one .
Existing data base systems could be described as "stonewalling", giving only limited, precise answers, which inhibited browsing and query ;formulation. AI.Proximate resiX?nses, as they are used in hurran dlalog, can siginficantly increase the usefulness and convenience of data base. query systems.
References :
- (BS76) Belnap, N.D. and Steel, T.B., The Logic of Question and Answers, Yale University of Press, New Haven, 1976.
- (CH75) Clark, H.H. and Haviland, S.E., "Compre hension and the Given-New Contract," in Discourse Production and Comprehension (ed. R. Freedle) , Lawrence Er lbaum, Hillside, N.J., 1975 .
- ( G6 7) Grice, H. P. , "The Logic and Conversations" , in The Logic of Grammar ( eds. D. Davidson and G. Harman) , Dickinson, Encino, Calif . , 1975.
- (KH73) Keenan, E.L. and Hull, R.D., "The logical presuppositions of questions and answers," in Prasu£P?sitionen in Philosophie Und Linguistik (eds. J.S . Petofi and D. Franck), Athenaum Verlag, Franfurt, 1973.
- (JW77) Joshi, A.K. and Weischedel, R., "Compu tation of a subclass of inferences: presup position and entailment," American Journal of Computational Linguistics, January 1977.
- Lehnert, W., "Hurran and computational question answering", Cognitive Science, vol. l, no. l, 1977.
In the relational formalism:
STUDENTSCSTUDENT# ,MAJOR) OFFERIN�S~' (COURSE# , SEQUENCE# ) ENROLLMENTS(SEQUENCE#,STUDENT#,GRADE)

* NOTE: SEQUENCE# uniquely identifies an offering of a course .
@inproceedings{ijcai1977p46,
title = {Approximate Responses from a Data Base Query System: An Application of Inferencing in Natural Language},
author = {Joshi, Aravind K. and Kaplan, S. Jerrold and Lee, R. M.},
booktitle = {Proceedings of the Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-77}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {Raj Reddy},
pages = {211--211},
year = {1977},
note = {Representation of Knowledge},
url = {https://ijcai.org/proceedings/1977/46},
}
TY - CPAPER TI - Approximate Responses from a Data Base Query System: An Application of Inferencing in Natural Language AU - Joshi, Aravind K. AU - Kaplan, S. Jerrold AU - Lee, R. M. T2 - Proceedings of the Fifth International Joint Conference on Artificial Intelligence, IJCAI-77 PB - International Joint Conferences on Artificial Intelligence PY - 1977 SP - 211 EP - 211 UR - https://ijcai.org/proceedings/1977/46 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: