skip to main content
10.1145/1559845.1559902acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
research-article

Query by output

Published:29 June 2009Publication History

ABSTRACT

It has recently been asserted that the usability of a database is as important as its capability. Understanding the database schema, the hidden relationships among attributes in the data all play an important role in this context. Subscribing to this viewpoint, in this paper, we present a novel data-driven approach, called Query By Output (QBO), which can enhance the usability of database systems. The central goal of QBO is as follows: given the output of some query Q on a database D, denoted by Q(D), we wish to construct an alternative query Q′ such that Q(D) and Q′ (D) are instance-equivalent. To generate instance-equivalent queries from Q(D), we devise a novel data classification-based technique that can handle the at-least-one semantics that is inherent in the query derivation. In addition to the basic framework, we design several optimization techniques to reduce processing overhead and introduce a set of criteria to rank order output queries by various notions of utility. Our framework is evaluated comprehensively on three real data sets and the results show that the instance-equivalent queries we obtain are interesting and that the approach is scalable and robust to queries of different selectivities.

References

  1. P. Andritsos, R. J. Miller, and P. Tsaparas. Information-theoretic tools for mining database structure from large data sets. In SIGMOD, pages 731--742, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. C. Binnig, D. Kossmann, and E. Lo. Reverse query processing. In ICDE, pages 506--515, 2007.Google ScholarGoogle ScholarCross RefCross Ref
  3. C. Binnig, D. Kossmann, E. Lo, and M. T. Ä Ozsu. QAGen: generating query-aware test databases. In SIGMOD, pages 341--352, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Borzsonyi, D. Kossmann, and K. Stocker. The skyline operator. In ICDE, pages 421--430, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. N. Bruno, S. Chaudhuri, and D. Thomas. Generating queries with cardinality constraints for dbms testing. IEEE TKDE, 18(12):1721--1725, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. P. Buneman, J. Cheney, W.-C. Tan, and S. Vansummeren. Curated databases. In PODS, pages 1--12, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. T. Gaasterl, P. Godfrey, and J. Minker. An overview of cooperative answering. Journal of Intelligent Information Systems, (2):123--157, 1992.Google ScholarGoogle ScholarCross RefCross Ref
  8. L. Getoor, B. Taskar, and D. Koller. Selectivity estimation using probabilistic models. In SIGMOD, pages 461--472, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. P. Godfrey, J. Gryz, and C. Zuzarte. Exploiting constraint-like data characterizations in query optimization. In SIGMOD, pages 582--592, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. H. V. Jagadish, A. Chapman, A. Elkiss, M. Jayapandian, Y. Li, A. Nandi, and C. Yu. Making database systems usable. In SIGMOD, pages 13--24, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. T. Johnson, A. Marathe, and T. Dasu. Database exploration and bellman. 26(3):34--39, 2003.Google ScholarGoogle Scholar
  12. G. Koutrika, A. Simitsis, and Y. Ioannidis. Précis: The essence of a query answer. In ICDE, page 69, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. M. Mehta, R. Agrawal, and J. Rissanen. SLIQ: A fast scalable classifier for data mining. In EDBT, pages 18--32, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. C. Mishra, N. Koudas, and C. Zuzarte. Generating targeted queries for database testing. In SIGMOD, pages 499--510, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. A. Motro. Intensional answers to database queries. IEEE TKDE, 6(3):444--454, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. M. P.N. Tan and V.Kumar. Introduction to Data Mining. Addison-Wesley, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. N. Ramakrishnan, D. Kumar, B. Mishra, M. Potts, and R. F. Helm. Turning cartwheels: An alternating algorithm for mining redescriptions. In KDD, pages 266--275, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. J. Rissanen. Modeling by shortest data description. Automatica, 14:465--471, 1978.Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. A. Simitsis, G. Koutrika, and Y. E. Ioannidis. Generalized précis queries for logical database subset creation. In ICDE, pages 1382--1386, 2007.Google ScholarGoogle Scholar
  20. Q. T. Tran, C.-Y. Chan, and S. Parthasarathy. Query by output. Technical Report TRA4/09, National University of Singapore - School of Computing, April 2009.Google ScholarGoogle Scholar
  21. P. Valduriez. Join indices. ACM Trans. Database Syst., 12(2):218--246, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. C. J. van Rijsbergen. Information Retireval. Butterworth, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. W. Wu, B. Reinwald, Y. Sismanis, and R. Manjrekar. Discovering topical structures of databases. In SIGMOD, pages 1019--1030, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. X. Xiao and Y. Tao. Output perturbation with query relaxation. Proc. VLDB Endow., 1(1):857--869, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. M. M. Zloof. Query by example. In AFIPS NCC, pages 431--438, 1975. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Query by output

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          SIGMOD '09: Proceedings of the 2009 ACM SIGMOD International Conference on Management of data
          June 2009
          1168 pages
          ISBN:9781605585512
          DOI:10.1145/1559845

          Copyright © 2009 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 29 June 2009

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          Overall Acceptance Rate785of4,003submissions,20%

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader