skip to main content
10.1145/2380116.2380144acmconferencesArticle/Chapter ViewAbstractPublication PagesuistConference Proceedingsconference-collections
research-article

DataPlay: interactive tweaking and example-driven correction of graphical database queries

Published:07 October 2012Publication History

ABSTRACT

Writing complex queries in SQL is a challenge for users. Prior work has developed several techniques to ease query specification but none of these techniques are applicable to a particularly difficult class of queries: quantified queries. Our hypothesis is that users prefer to specify quantified queries interactively by trial-and-error. We identify two impediments to this form of interactive trial-and-error query specification in SQL: (i) changing quantifiers often requires global syntactical query restructuring, and (ii) the absence of non-answers from SQL's results makes verifying query correctness difficult. We remedy these issues with DataPlay, a query tool with an underlying graphical query language, a unique data model and a graphical interface. DataPlay provides two interaction features that support trial-and-error query specification. First, DataPlay allows users to directly manipulate a graphical query by changing quantifiers and modifying dependencies between constraints. Users receive real-time feedback in the form of updated answers and non-answers. Second, DataPlay can auto-correct a user's query, based on user feedback about which tuples to keep or drop from the answers and non-answers. We evaluated the effectiveness of each interaction feature with a user study and we found that direct query manipulation is more effective than auto-correction for simple queries but auto-correction is more effective than direct query manipulation for more complex queries.

Skip Supplemental Material Section

Supplemental Material

paper_0326-file3.mov

mov

10.6 MB

References

  1. Microsoft access. office.microsoft.com/en-us/access/.Google ScholarGoogle Scholar
  2. pgadmin: Post-gresql administration and management tools. www.pgadmin.org.Google ScholarGoogle Scholar
  3. Tableau software. www.tableausoftware.com.Google ScholarGoogle Scholar
  4. Bragdon, A., et al. Code bubbles: a working set-based interface for code understanding and maintenance. In CHI (2010). Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Chapman, A., and Jagadish, H. V. Why not? In SIGMOD (2009). Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Danaparamita, J., and Gatterbauer, W. Queryviz: helping users understand sql queries and their patterns. In EDBT/ICDT (2011). Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Gulwani, S., Harris, W. R., and Sing, R. Spreadsheet data manipulation using examples. In CACM (2012). Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Heer, J., Agrawala, M., and Willett, W. Generalized selection via interactive query relaxation. CHI (2008). Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Heer, J., and Perer, A. Orion: A system for modeling, transformation and visualization of multidimensional heterogeneous networks. In VAST (2011).Google ScholarGoogle Scholar
  10. Kandel, S., Paepcke, A., Hellerstein, J., and Heer, J. Wrangler: Interactive visual specification of data transformation scripts. In CHI (2011). Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Karrer, T., et al. Stacksplorer: call graph navigation helps increasing code maintenance efficiency. In UIST '11 (2011). Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Khoussainova, N., Kwon, Y., Balazinska, M., and Suciu, D. Snipsuggest: context-aware autocompletion for sql. Proc. VLDB Endow. 4, 1 (2010). Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Levene, M. The nested universal relation database model. Lecture notes in computer science. Springer-Verlag, 1990.Google ScholarGoogle Scholar
  14. Maier, D., Ullman, J. D., and Vardi, M. Y. On the foundations of the universal relation model. ACM Trans. Database Syst. 9, 2 (June 1984). Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. McHugh, J., Abiteboul, S., Goldman, R., Quass, D., and Widom, J. Lore: a database management system for semistructured data. SIGMOD Rec. 26, 3 (Sept. 1997). Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Meliou, A., Gatterbauer, W., Moore, K. F., and Suciu, D. The complexity of causality and responsibility for query answers and non-answers. Proc. VLDB Endow. 4, 1 (Oct. 2010). Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Norman, D. A. The Design of Everyday Things, reprint paperback ed. Basic Books, New York, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Olston, C., Stonebraker, M., Aiken, A., Aiken, E., and Hellerstein, J. M. Viqing: Visual interactive querying, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Reisner, P. Human factors studies of database query languages: A survey and assessment. ACM Comput. Surv. 13, 1 (1981), 13--31. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Reisner, P., Boyce, R. F., and Chamberlin, D. D. Human factors evaluation of two data base query languages: square and sequel. In AFIPS '75, ACM (New York, NY, USA, 1975), 447--452. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. Stolte, C., and Hanrahan, P. Polaris: A system for query, analysis and visualization of multi-dimensional relational databases. In INFOVIS (2000). Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. Zloof, M. M. Query by example. In AFIPS National Computer Conference (1975), 431--438. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. DataPlay: interactive tweaking and example-driven correction of graphical database queries

    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
      UIST '12: Proceedings of the 25th annual ACM symposium on User interface software and technology
      October 2012
      608 pages
      ISBN:9781450315807
      DOI:10.1145/2380116

      Copyright © 2012 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: 7 October 2012

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate842of3,967submissions,21%

      Upcoming Conference

      UIST '24

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader