{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:38:03Z","timestamp":1787337483477,"version":"build-2736575974"},"reference-count":41,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"3","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2014,1]]},"abstract":"<jats:p>When finding exact answers to a query over a large database is infeasible, it is natural to approximate the query by a more efficient one that comes from a class with good bounds on the complexity of query evaluation. In this paper we study such approximations for conjunctive queries. These queries are of special importance in databases, and we have a very good understanding of the classes that admit fast query evaluation, such as acyclic, or bounded (hyper)treewidth queries. We define approximations of a given query $Q$ as queries from one of those classes that disagree with $Q$ as little as possible. We concentrate on approximations that are guaranteed to return correct answers. We prove that for the above classes of tractable conjunctive queries, approximations always exist and are at most polynomial in the size of the original query. This follows from general results we establish that relate closure properties of classes of conjunctive queries to the existence of approximations. We also show that in many cases the size of approximations is bounded by the size of the query they approximate. We establish a number of results showing how combinatorial properties of queries affect properties of their approximations, study bounds on the number of approximations, as well as the complexity of finding and identifying approximations. The technical toolkit of the paper comes from the theory of graph homomorphisms, as we mainly work with tableaux of queries and characterize approximations via preorders based on the existence of homomorphisms. In particular, most of our results can also be interpreted as approximation or complexity results for directed graphs.<\/jats:p>","DOI":"10.1137\/130911731","type":"journal-article","created":{"date-parts":[[2014,5,13]],"date-time":"2014-05-13T13:55:49Z","timestamp":1399989349000},"page":"1085-1130","source":"Crossref","is-referenced-by-count":19,"title":["Efficient Approximations of Conjunctive Queries"],"prefix":"10.1137","volume":"43","author":[{"given":"Pablo","family":"Barcel\u00f3","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leonid","family":"Libkin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Miguel","family":"Romero","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2014,5,13]]},"reference":[{"key":"atypb1","doi-asserted-by":"crossref","unstructured":"S. Abiteboul, K. Compton, and V. Vianu,\n                      Queries are easier than you thought (probably)\n                      , in Proceedings of the 11th ACM Symposium on Principles of Database Systems, PODS'92, 1992, pp. 23-32.","DOI":"10.1145\/137097.137105"},{"key":"atypb2","doi-asserted-by":"crossref","unstructured":"S. Abiteboul and O. Duschka,\n                      Complexity of answering queries using materialized views\n                      , in Proceedings of the 17th ACM Symposium on Principles of Database Systems, PODS'98, 1998, pp. 254-263.","DOI":"10.1145\/275487.275516"},{"key":"atypb3","unstructured":"S. Abiteboul, R. Hull, and V. Vianu,\n                      Foundations of Databases\n                      , Addison-Wesley, 1995."},{"key":"atypb4","doi-asserted-by":"crossref","unstructured":"M. Aigner,\n                      Combinatorial Theory\n                      , Springer, 1997.","DOI":"10.1007\/978-3-642-59101-3"},{"key":"atypb5","doi-asserted-by":"crossref","unstructured":"V. B\u00e1r\u00e1ny, G. Gottlob, and M. Otto,\n                      Querying the guarded fragment\n                      , in Proceedings of IEEE Logic in Computer Science, LICS'10, 2010, pp. 1-10.","DOI":"10.1109\/LICS.2010.26"},{"key":"atypb6","doi-asserted-by":"crossref","unstructured":"P. Barcel\u00f3, L. Libkin, and M. Romero,\n                      Efficient approximations of conjunctive queries\n                      , in Proceedings of the 31st ACM Symposium on Principles of Database Systems, PODS'12, 2012, pp. 249-260.","DOI":"10.1145\/2213556.2213591"},{"key":"atypb7","first-page":"91","volume":"866","author":"Barcel\u00f3 P.","year":"2012","journal-title":"CEUR Workshop Proceedings"},{"key":"atypb8","doi-asserted-by":"publisher","DOI":"10.1137\/S0097539793251219"},{"key":"atypb9","doi-asserted-by":"crossref","unstructured":"B. ten Cate, Ph. Kolaitis, and W.C. Tan,\n                      Database constraints and homomorphism dualities\n                      , in Proceedings of the 16th International Conference on Principles and Practice of Constraint Programming, CP'10, 2010, pp. 475-490.","DOI":"10.1007\/978-3-642-15396-9_38"},{"key":"atypb10","doi-asserted-by":"crossref","unstructured":"A. Chandra and P. Merlin,\n                      Optimal implementation of conjunctive queries in relational data bases\n                      , in Proceedings of the 9th ACM Symposium on Theory of Computing, STOC'77, 1977, pp. 77-90.","DOI":"10.1145\/800105.803397"},{"key":"atypb11","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(99)00220-0"},{"key":"atypb12","first-page":"310","author":"Dalmau V.","year":"2002","journal-title":"CP"},{"key":"atypb13","doi-asserted-by":"publisher","DOI":"10.1145\/1061318.1061323"},{"key":"atypb14","doi-asserted-by":"publisher","DOI":"10.14778\/1920841.1920878"},{"key":"atypb15","doi-asserted-by":"crossref","unstructured":"R. Fink and D. Olteanu,\n                      On the optimal approximation of queries using tractable propositional languages\n                      , in Proceedings of the 14th International Conference on Database Theory, ICDT'11, 2011, pp. 174-185.","DOI":"10.1145\/1938551.1938575"},{"key":"atypb16","doi-asserted-by":"publisher","DOI":"10.1145\/602220.602222"},{"key":"atypb17","unstructured":"J. Flum and M. Grohe,\n                      Parameterized Complexity Theory\n                      , Springer, 2006."},{"key":"atypb18","unstructured":"M. Garofalakis and P. Gibbons,\n                      Approximate query processing: Taming the terabytes\n                      , in Proceedings of the 27th International Conference on Very Large Data Bases, VLDB'01."},{"key":"atypb19","doi-asserted-by":"publisher","DOI":"10.1145\/382780.382783"},{"key":"atypb20","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.2001.1809"},{"key":"atypb21","doi-asserted-by":"publisher","DOI":"10.1016\/S0022-0000(03)00030-8"},{"key":"atypb22","first-page":"56","author":"Gottlob G.","year":"2009","journal-title":"J. ACM"},{"key":"atypb23","doi-asserted-by":"crossref","unstructured":"M. Grohe, T. Schwentick, and L. Segoufin,\n                      When is the evaluation of conjunctive queries tractable?\n                      , in Proceedings on 33rd ACM Symposium on Theory of Computing, STOC'01, 2001, pp. 657-666.","DOI":"10.1145\/380752.380867"},{"key":"atypb24","doi-asserted-by":"publisher","DOI":"10.1007\/s007780100054"},{"key":"atypb25","doi-asserted-by":"crossref","unstructured":"P. Hell and J. Ne\u0161et\u0159il,\n                      Graphs and Homomorphisms\n                      , Oxford University Press, 2004.","DOI":"10.1093\/acprof:oso\/9780198528173.001.0001"},{"key":"atypb26","doi-asserted-by":"publisher","DOI":"10.1016\/0166-218X(96)00099-6"},{"key":"atypb27","doi-asserted-by":"publisher","DOI":"10.2307\/421173"},{"key":"atypb28","doi-asserted-by":"crossref","unstructured":"Y. Ioannidis,\n                      Approximations in database systems\n                      , in Proceedings of the 9th International Conference on Database Theory, ICDT'03, 2003, pp. 16-30.","DOI":"10.1007\/3-540-36285-1_2"},{"key":"atypb29","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.2000.1713"},{"key":"atypb30","first-page":"339","author":"Kolaitis Ph.","year":"2007","journal-title":"Springer"},{"key":"atypb31","doi-asserted-by":"crossref","unstructured":"M. Lenzerini,\n                      Data integration: A theoretical perspective\n                      , in Proceedings of the 21st Symposium on Principles of Database Systems, PODS'02, 2002, pp. 233-246.","DOI":"10.1145\/543613.543644"},{"key":"atypb32","doi-asserted-by":"crossref","unstructured":"L. Libkin,\n                      Incomplete information and certain answers in general data models\n                      , in Proceedings of the 30th Symposium on Principles of Database Systems, PODS'11, 2011, pp. 59-70.","DOI":"10.1145\/1989284.1989294"},{"key":"atypb33","first-page":"113","author":"Liu Q.","year":"2009","journal-title":"Encyclopedia of Database Systems"},{"key":"atypb34","doi-asserted-by":"publisher","DOI":"10.1145\/1536616.1536637"},{"key":"atypb35","doi-asserted-by":"publisher","DOI":"10.1006\/jctb.2000.1970"},{"key":"atypb36","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(84)90068-0"},{"key":"atypb37","unstructured":"A. Robinson and A. Voronkov, eds.\n                      Handbook of Automated Reasoning\n                      , The MIT Press, 2001."},{"key":"atypb38","doi-asserted-by":"publisher","DOI":"10.1016\/S0020-0190(03)00229-1"},{"key":"atypb39","doi-asserted-by":"crossref","unstructured":"M. Vardi,\n                      On the complexity of bounded-variable queries\n                      , in Proceedings of the 14th ACM Symposium on Principles of Database Systems, PODS'95, 1995, pp. 266-276.","DOI":"10.1145\/212433.212474"},{"key":"atypb40","unstructured":"D. West,\n                      Introduction to Graph Theory\n                      , Prentice-Hall, 2001."},{"key":"atypb41","unstructured":"M. Yannakakis,\n                      Algorithms for acyclic database schemes\n                      , in Proceedings of 7th International Conference on Very Large Databases, VLDB'81, 1981, pp. 82-94."}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/130911731","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:13:11Z","timestamp":1787335991000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/130911731"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,1]]},"references-count":41,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2014,1]]}},"alternative-id":["10.1137\/130911731"],"URL":"https:\/\/doi.org\/10.1137\/130911731","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,1]]}}}