{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:39:37Z","timestamp":1787337577060,"version":"build-2736575974"},"reference-count":50,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2000,1]]},"abstract":"<jats:p>We extend some of the classical characterization theorems of relational database theory---particularly those related to query safety---to the context where database elements come with fixed interpreted structure and where formulae over elements of that structure can be used in queries. We show that the addition of common interpreted functions, such as real addition and multiplication, to the relational calculus preserves important characterization theorems of the relational calculus and also preserves certain combinatorial properties of queries. Our main result of the first kind is that there is a syntactic characterization of the collection of safe queries over the relational calculus supplemented by a wide class of interpreted functions---a class that includes addition, multiplication, and exponentiation---and that this characterization gives us an interpreted analog of the concept of range-restricted query from the uninterpreted setting. Furthermore, our range-restricted queries are particularly intuitive for the relational calculus with real arithmetic and give a natural syntax for safe queries in the presence of polynomial functions. We use these characterizations to show that safety is decidable for Boolean combinations of conjunctive queries for a large class of interpreted structures. We show a dichotomy theorem that sets a polynomial bound on the growth of the output of a query that might refer to addition, multiplication, and exponentiation.<\/jats:p>\n                  <jats:p>We apply the above results for finite databases to get results on constraint databases representing potentially infinite objects. We start by getting syntactic characterizations of the queries on constraint databases that preserve geometric conditions in the constraint data model. We consider classes of convex polytopes, polyhedra, and compact semilinear sets, the latter corresponding to many spatial applications. We show how to give an effective syntax to safe queries and prove that for conjunctive queries the preservation properties are decidable.<\/jats:p>","DOI":"10.1137\/s0097539798342484","type":"journal-article","created":{"date-parts":[[2003,6,11]],"date-time":"2003-06-11T11:12:06Z","timestamp":1055329926000},"page":"1652-1682","source":"Crossref","is-referenced-by-count":22,"title":["Safe Constraint Queries"],"prefix":"10.1137","volume":"29","author":[{"given":"Michael","family":"Benedikt","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Leonid","family":"Libkin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,27]]},"reference":[{"key":"R1","unstructured":"S. Abiteboul, R. Hull, and V. Vianu,\n                      Foundations of Databases\n                      , Addison\u2010Wesley, Reading, MA, 1995."},{"key":"R2","unstructured":"F. Afrati, S. Cosmadakis, S. Grumbach, and G. Kuper,\n                      Linear vs. polynomial constraints in database query languages\n                      , in Proceedings of Conference on Principles and Practice of Constraint Programming, Springer\u2010Verlag, New York, 1994, pp. 181\u2013192."},{"key":"R3","first-page":"308","volume":"286","author":"Ailamazyan A. K.","year":"1986","journal-title":"Dokl. Akad. Nauk SSSR","ISSN":"https:\/\/id.crossref.org\/issn\/0002-3264","issn-type":"print"},{"key":"R3","first-page":"11","volume":"31","year":"1986","journal-title":"Soviet Phys. Dokl.","ISSN":"https:\/\/id.crossref.org\/issn\/0038-5689","issn-type":"print"},{"key":"R4","unstructured":"I. James, From combinatorial topology to algebraic topology, North\u2010Holland, Amsterdam, 1999, 561\u20135731721114"},{"key":"R5","unstructured":"A. Avron and J. Hirshfeld,\n                      On first order database query languages\n                      , in Proceedings of IEEE Logic in Computer Science, IEEE Press, Piscataway, NJ, 1991, pp. 226\u2013231."},{"key":"R6","doi-asserted-by":"publisher","DOI":"10.1145\/273865.273870"},{"key":"R7","unstructured":"Michael Benedikt, Leonid Libkin, On the structure of queries in constraint query languages, IEEE Comput. Soc. Press, Los Alamitos, CA, 1996, 25\u2013341461818"},{"key":"R8","unstructured":"M. Benedikt and L. Libkin,\n                      Languages for relational databases over interpreted structures\n                      , in Proceedings of ACM Symposium on Principles of Databases Systems, ACM, New York, 1997, pp. 87\u201398."},{"key":"R9","first-page":"1652","volume":"29","author":"Benedikt Michael","year":"2000","journal-title":"SIAM J. Comput."},{"key":"R10","unstructured":"H. Bieri, W. Nef, Elementary set operations with d\u2010dimensional polyhedra, Lecture Notes in Comput. Sci., Vol. 333, Springer, New York, 1988, 97\u20131121028825"},{"key":"R11","unstructured":"C. C. Chang and H. J. Keisler,\n                      Model Theory\n                      , North\u2010Holland, Amsterdam, 1990."},{"key":"R12","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9939-1972-0304347-1"},{"key":"R13","unstructured":"F. Dumortier, M. Gyssens, L. Vandeurzen, and D. Van Gucht,\n                      On the decidability of semi\u2010linearity of semi\u2010algebraic sets, and its implications for spatial databases\n                      , in Proceedings of ACM Symposium on Principles of Databases Systems, ACM, New York, 1997, pp. 68\u201377."},{"key":"R14","unstructured":"M. Escobar\u2010Molano, R. Hull, and D. Jacobs,\n                      Safety and translation of calculus queries with scalar functions\n                      , in Proceedings of ACM Symposium on Principles of Databases Systems, ACM, New York, 1993, pp. 253\u2013264."},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-78240-4"},{"key":"R16","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1997.1524"},{"key":"R17","unstructured":"S. Grumbach, J. Su, and C. Tollu,\n                      Linear constraint databases\n                      , in Proceedings of Logic and Computational Complexity, Springer\u2010Verlag, New York, 1994, pp. 426\u2013446"},{"key":"R18","doi-asserted-by":"publisher","DOI":"10.1007\/BF01213204"},{"key":"R19","unstructured":"O. H. Ibarra and J. Su,\n                      On the containment and equivalence of database queries with linear constraints\n                      , in Proceedings of ACM Symposium on Principles of Databases Systems, ACM, New York, 1997, pp. 32\u201343."},{"key":"R20","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1995.1051"},{"key":"R20","unstructured":"extended abstract in\n                      PODS\n                      \u201990, pp. 299\u2013313."},{"key":"R21","unstructured":"M. Kifer,\n                      On safety, domain independence, and capturability of database queries\n                      , in Proc. Data and Knowledge Base, Morgan Kaufmann, Jerusalem, 1988, pp. 405\u2013415."},{"key":"R22","unstructured":"M. Kifer, R. Ramakrishnan, and A. Silberschatz,\n                      An axiomatic approach to deciding query safety in deductive databases\n                      , in Proceedings of the ACM Symposium on Principles of Database Systems, ACM, New York, 1988, pp. 52\u201360."},{"key":"R23","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-22174-7"},{"key":"R24","unstructured":"A. Levy and D. Suciu,\n                      Deciding containment for queries with complex objects\n                      , in Proceedings of the ACM Symposium on Principles of Database Systems, ACM, New York, 1997, pp. 20\u201331."},{"key":"R25","volume-title":"Beitr\u00e4ge zur Theorie der Polyeder","author":"Nef Walter","year":"1978"},{"key":"R26","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511804120"},{"key":"R27","unstructured":"J. Paredaens, J. Van den Bussche, and D. Van Gucht,\n                      Towards a theory of spatial database queries\n                      , in Proceedings of ACM Symposium on Principles of Database Systems, ACM, New York, 1994, pp. 279\u2013288."},{"key":"R28","doi-asserted-by":"publisher","DOI":"10.1137\/S009753979629766"},{"key":"R29","unstructured":"J. Paredaens, B. Kuijpers, G. Kuper, and L. Vandeurzen,\n                      Euclid, Tarski and Engeler encompassed\n                      , in Proceedings of Database Programming Languages, Lecture Notes in Comput. Sci. 1369, Springer\u2010Verlag, New York, 1998, pp. 1\u201324."},{"key":"R30","doi-asserted-by":"publisher","DOI":"10.1090\/S0002-9947-1988-0943306-9"},{"key":"R31","unstructured":"R. Ramakrishnan, F. Bancilhon, and A. Silberschatz,\n                      Safety of recursive Horn clauses with infinite relations\n                      , in Proceedings of ACM Symposium on Principles of Database Systems, ACM, New York, 1987, pp. 328\u2013339."},{"key":"R32","doi-asserted-by":"publisher","DOI":"10.1145\/288086.288088"},{"key":"R33","unstructured":"R. T. Rockafellar,\n                      Convex Analysis\n                      , Princeton University Press, Princeton, NJ, 1970."},{"key":"R34","doi-asserted-by":"publisher","DOI":"10.1007\/BF02187840"},{"key":"R35","doi-asserted-by":"publisher","DOI":"10.1145\/322217.322221"},{"key":"R36","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1999.2792"},{"key":"R37","unstructured":"A. Stolboushkin and M. Tsaitlin,\n                      Linear vs. order constraint queries over rational databases\n                      , in Proceedings of ACM Symposium on Principles of Database Systems, ACM, New York, 1996, pp. 17\u201327."},{"key":"R38","doi-asserted-by":"publisher","DOI":"10.1145\/288086.288089"},{"key":"R39","volume-title":"Principles of database systems","author":"Ullman Jeffrey","year":"1982"},{"key":"R40","unstructured":"Jeffrey Ullman, Information integration using logical views, Lecture Notes in Comput. Sci., Vol. 1186, Springer, Berlin, 1997, 19\u20134099b:68060"},{"key":"R41","unstructured":"Lou van den Dries, Remarks on Tarski\u2019s problem concerning (R,+,\u22c5,exp), Stud. Logic Found. Math., Vol. 112, North\u2010Holland, Amsterdam, 1984, 97\u201312186g:03052"},{"key":"R42","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511525919"},{"key":"R43","unstructured":"L. Vandeurzen, M. Gyssens, and D. Van Gucht,\n                      On the desirability and limitations of linear spatial database models\n                      , Lecture Notes in Comput. Sci. 951, Springer, New York, 1995, pp. 14\u201328."},{"key":"R44","unstructured":"L. Vandeurzen, M. Gyssens, and D. Van Gucht,\n                      On query languages for linear queries definable with polynomial constraints\n                      , in Proc. Principles and Practice of Constraint Programming, Lecture Notes in Comput. Sci. 1118, Springer\u2010Verlag, 1996, pp. 468\u2013481."},{"key":"R45","unstructured":"L. Vandeurzen, M. Gyssens, and D. Van Gucht,\n                      An expressive language for linear spatial database queries\n                      , in Proceedings of ACM Symposium on Principles of Database Systems, ACM, New York, 1998, pp. 109\u2013118."},{"key":"R46","doi-asserted-by":"publisher","DOI":"10.1145\/114325.103712"},{"key":"R47","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0190(81)90025-9"},{"key":"R48","doi-asserted-by":"publisher","DOI":"10.1090\/S0894-0347-96-00216-0"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/S0097539798342484","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:18:44Z","timestamp":1787336324000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/S0097539798342484"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2000,1]]},"references-count":50,"journal-issue":{"issue":"5","published-print":{"date-parts":[[2000,1]]}},"alternative-id":["10.1137\/S0097539798342484"],"URL":"https:\/\/doi.org\/10.1137\/s0097539798342484","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2000,1]]}}}