Skip to main content

Logical rewritings for improving the evaluation of quantified queries

  • Conference paper
  • First Online:
Book cover MFDBS 89 (MFDBS 1989)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 364))

Included in the following conference series:

Abstract

We describe a new approach for improving the evaluation of queries with quantifiers. We first introduce the concept of constructive evaluation as a formalization of a principle common to the methods that have been proposed for answering quantified queries. Relying on this concept, we define the class of constructively domain independent (cdi) formulas. We show that cdi queries can be constructively evaluated by searching only the relations they refer to. Therefore, cdi queries admit domain independent evaluations as soon as they do not explicitly refer to the database domain. Then, we define rewritings that translate general quantified queries into expressions amenable to efficient constructive evaluations. These rewritings preserve logical equivalence, hence do not compromise the semantics of queries. They are based on the generation from a query of the ranges and co-ranges of its variables. We show that the rewritings we propose permit to optimize the evaluation of cdi queries. They also reduce queries from several solvable subclasses of domain independent formulas to cdi queries, hence permitting their domain independent evaluation.

uucp: ...!pyramid!ecrcvax!fb

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

9. References

  1. Bry, F., Decker, H. and Manthey, R. A Uniform Approach to Constraint Satisfaction and Constraint Satisfiability in Deductive Databases. In Proc. EDBT '88. March, 1988.

    Google Scholar 

  2. Bocca, J. On the Evaluation Strategy of EDUCE. In Proc. ACM Int. Conf. on the Management of Data (SIGMOD '86). Washington, D.C., May, 1986.

    Google Scholar 

  3. Bocca, J. and Bailey, P. On Prolog-DBMS connections: A Step forward from EDUCE. In Proc. Alvey Symp. on PROLOG and Databases. Coventry, UK, 1987.

    Google Scholar 

  4. Bry, F. Towards an Efficient Evaluation of General Queries: Quantifier and Disjunction Processing Revisisited. In Proc. ACM Int. Conf. on Management of Data (SIGMOD '89). Portland, Oregon, May 31-June 2, 1989. ECRC Report TR-KB-27, Apr. 1988.

    Google Scholar 

  5. Bry, F. Logic Programming as Constructivism: A Formalization and its Application to Databases. In Proc. 8th ACM SIGACT-SIGMOD-SIGART Symp. on Principles of Databases Systems (PODS '89). Philadelphia, Pennsylvania, March 29–31, 1989. ECRC Report IR-KB-54, Sept. 1988.

    Google Scholar 

  6. Ceri, S. and Gottlob, G. Translating SQL in Relational Algebra: Optimization, Semantics and Equivalence of SQL Queries. IEEE Trans. SE-11(4), April, 1985.

    Google Scholar 

  7. Cholvy, L. Interrogation d'une Base de Règle. Technical Report 2/3274/DERI, ONERACERT, Toulouse, France, Feb., 1987. in French.

    Google Scholar 

  8. Codd, E. Database Systems — Courant Computer Science Symp. Prentice Hall, Englewood Cliffs, New Jersey, 1972, Chapter Relational Completeness of Database Sublanguages.

    Google Scholar 

  9. Dayal, U. Processing Queries with Quantifiers: A Horticultural Approach. In Proc. ACM SIGMOD-SIGMACT Symp. Principles of Database SYstems (PODS '83), pages 125–136. Atlanta, March, 1983.

    Google Scholar 

  10. Dayal, U. Of Nests and Trees: A Unified Approach to Processing Queries That Contain Nested Subqueries, Aggregates, and Quantifiers. In Proc. VLDB '87, pages 197–208. August, 1987.

    Google Scholar 

  11. Decker, H. The Range Form of Database Queries, or: How to Avoid Floundering. In Proc. Österreichische Artificial Intelligence Tagung. Igls bei Innbruck, March 28–29, 1989.

    Google Scholar 

  12. Demolombe, R. Syntactical Characterization of a Subset of Domain Independent Formulas. Technical Report, ONERA-CERT, Toulouse, France, 1982.

    Google Scholar 

  13. Di Paola, R.A. The Recursive Unsolvability of the Decision Problem for the Class of Definite Formulas. Jour. of the ACM 16(2), 1969.

    Google Scholar 

  14. Fagin, R. Horn Clauses and Database Dependencies. In 12th Ann. ACM Symp. on Theory of Computing, pages 123–134. 1980.

    Google Scholar 

  15. Huet, G. Confluent Reductions: Abstract Properties and Applications to Term Rewriting Systems. Jour. of the ACM 27(4):797–821, October, 1980.

    Google Scholar 

  16. Jarke, M. and Schmidt, J. Query Processing Strategies in the PASCAL/R Relational Database Management System. In Proc. ACM Int. Conf. on Management of Data (SIGMOD '82). June, 1982.

    Google Scholar 

  17. King, J.J. Query Optimization by Semantic Reasoning. Technical Report STAN-CS-81-857, Stanford Univ., Dpt. of Computer Sc., May, 1981.

    Google Scholar 

  18. Kowalski, R.A. Algorithm = Logic + Control. Commun. ACM, Aug., 1979.

    Google Scholar 

  19. Kuhns, J.L. Answering Question by Computer: A Logical Study. Technical Report RM-5428-PR, Rand Corp., 1967.

    Google Scholar 

  20. Lloyd, J.W. and Topor, R.W. A Basis for Deductive Database Systems II. Jour. of Logic Programming 3(1):55–67, 1986.

    Google Scholar 

  21. Manthey, R. and Bry, F. SATCHMO: A Theorem Prover Implemented in Prolog. In Proc. Conf. on Automated Deduction (CADE '88). May, 1988.

    Google Scholar 

  22. Mendelson, E. Introduction to Mathematical Logic. Van Nostrand, New York, 1979.

    Google Scholar 

  23. Nicolas, J.-M. and Demolombe, R. On the Stability of Relational Queries. Technical Report, ONERA-CERT, Jan., 1983.

    Google Scholar 

  24. Nicolas, J.-M. Logic for Improving Integrity Checking in Relational Databases. Acta Informatica 18(3):227–253, Dec., 1981.

    Google Scholar 

  25. Palermo, F. A Data Base Search Problem. In Proc. 4th Symp. on Computer and Information Sc.. 1972.

    Google Scholar 

  26. Schmitt, P. H. A Survey of Rewrite Systems. In Proc. Workshop on Computer Science Logic (CSL '87), pages 235–262. Springer-Verlag (LNCS 329), Oct., 1987.

    Google Scholar 

  27. Troelstra, A.S. Handbook of Mathematical Logic. North-Holland, Amsterdam and New York, 1977, pages 973–1052, Chapter Aspects of Constructive Mathematics.

    Google Scholar 

  28. Van Gelder, A. and Topor, R.W. Safety and Correct Translation of Relational Calculus Formulas. In Proc. 6th ACM SIGACT-SIGMOD-SIGART Symp. on Principles of Database Systems (PODS '87), pages 313–327. 1987.

    Google Scholar 

  29. Vieille, L. Recursive Axioms in Deductive Databases: The Query-Subquery Approach. In Proc. 1st Int. Conf. on Expert Database Systems. Charleston, South Carolina, 1986.

    Google Scholar 

  30. Vieille, L. From QSQ towards QoSaQ: Global optimization in Recursive Queries. In Proc. 2nd Int. Conf. on Expert Database Systems. Tyson Corner, Virginia, 1988.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

János Demetrovics Bernhard Thalheim

Rights and permissions

Reprints and permissions

Copyright information

© 1989 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bry, F. (1989). Logical rewritings for improving the evaluation of quantified queries. In: Demetrovics, J., Thalheim, B. (eds) MFDBS 89. MFDBS 1989. Lecture Notes in Computer Science, vol 364. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-51251-9_8

Download citation

  • DOI: https://doi.org/10.1007/3-540-51251-9_8

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-51251-6

  • Online ISBN: 978-3-540-46182-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics