A Deductive Question Answering System on Relational Data Bases

Koichi Furukawa

Abstract

In 1977, Koichi Furukawa published a seminal paper addressing the integration of high-level logical reasoning with efficient relational database management. This work introduced the Data Base Access Planner (DBAP), a system designed to bridge the "semantic gap" between the conceptual world models used in Artificial Intelligence and the rigid physical structures of relational databases. By treating logical deduction as set-based search, Furukawa's approach allowed for querying "virtual relations" while maintaining the performance benefits of optimized database engines.

Introduction: The Semantic Gap

During the mid-1970s, the fields of Artificial Intelligence (AI) and Database Management Systems (DBMS) were evolving independently. AI researchers developed logic-based systems capable of complex reasoning but struggled with scalability due to inefficient depth-first search strategies. Conversely, database researchers, following E.F. Codd’s relational model, built systems for high-speed data retrieval that lacked the inferential capabilities to derive information not explicitly stored. Furukawa identified this as a "semantic gap": users desired to query a conceptual model, but data resided in normalized physical tables.

The DBAP System Architecture

The core contribution of the paper is the Data Base Access Planner (DBAP). This system translates logical queries into optimized relational algebra operations. A key architectural feature is the separation of the "Intensional File" (containing logic, axioms, and views) from the "Extensional File" (containing the raw relational data).

System architecture of the DBAP, showing the flow from query to answer through the Access Planner and Executor.

Methodology and Logic Integration

Furukawa proposed several techniques to unify logic with relational algebra:

  • Direct Proof Procedure: Moving away from standard resolution, the system uses a procedure that substitutes equivalent formulas. Logical expressions are interpreted as set operations, enabling the retrieval of all answers simultaneously rather than through iterative backtracking.
  • Virtual Relations and Axioms: Users interact with "virtual relations" defined by non-ground axioms. For instance, a "Manager" relation can be logically derived from existing "Employee" and "Department" tables.
  • Redundancy Deletion: By utilizing "Key Domain Axioms," the system identifies when a query requests redundant information, simplifying logical chains to minimize database lookups.
Representation of relational data (a) and its corresponding logical predicates (b).

Optimization Strategies

To ensure efficiency, the system represents queries as association graphs where nodes denote table accesses and edges represent shared variables (joins). These graphs are transformed into "Program Trees" to determine the optimal sequence of selections, projections, and joins. Furukawa suggested three primary heuristics for building these trees:

  1. Prioritize nodes with fewer connections (smaller degree).
  2. Prioritize nodes with more specific filters (constant literals).
  3. Prioritize nodes with more variables.

Handling Data Exceptions

A unique aspect of the DBAP is its handling of "conditional domains." In real-world data, relationships that are generally 1-to-1 might occasionally be many-to-many. Furukawa employed an IF-THEN-ELSE logical structure to route queries to auxiliary "exception" tables when standard schema assumptions were violated.

Implementation and Results

The DBAP was implemented in QLISP, a prominent AI programming language of the era. Furukawa demonstrated that by applying "Tuple Id" and "Key Domain" axioms, complex queries requiring numerous database accesses could be significantly simplified into efficient execution plans. The system successfully managed "conditional" logic, providing a flexible way to represent real-world scenarios within a rigid relational framework.

Limitations and Future Work

While groundbreaking, the system had limitations. It focused primarily on existential quantifiers ($\exists$); handling universal quantifiers ($\forall$) would require the "division" operation of relational algebra, which was noted as future work. Additionally, the search space for virtual relations with multiple definitions (and-or graphs) required more sophisticated algorithms than those presented. Finally, while a step toward natural language processing, the system still required input in formal logic.

Conclusion

Furukawa's work laid the foundation for "Deductive Databases," proving that AI reasoning and relational database performance are not mutually exclusive. By formalizing logic as set operations, the DBAP provided a blueprint for modern query optimizers and view management systems.

Summary updated

BibTeX
@inproceedings{furukawa1977deductive,
  author = {Koichi Furukawa},
  title = {{A Deductive Question Answering System on Relational Data Bases}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1977},
}
Figure