{"id":{"repo_id":"washington","oai_identifier":"oai:digital.lib.washington.edu:1773/44777"},"canonical_url":"https://search.ndltd.org/etd/washington/oai:digital.lib.washington.edu:1773/44777","repository":{"repo_id":"washington","name":"University of Washington","base_url":"https://digital.lib.washington.edu/server/oai/request"},"display":{"title":"Automated Reasoning of Database Queries","abstract":"From booking air tickets to analyzing astronomy datasets, database queries are pervasive in people’s work and life. This thesis describes Cosette, the first tool for automated reasoning the equivalences of SQL queries. The core of Cosette is a formal semantics of SQL based on semirings. This semantics covers major SQL features, including sophisticated ones such as grouping, aggregate, correlated sub- queries, and integrity constraints. Also, this semantics is denotational and only adds a few equational axioms, as the interpretation of SQL, to semirings. Then, to check the equivalences, Cosette uses this semantics to encode a pair of input SQL queries in both an interactive theorem prover and a constraint solver. In the end, Cosette will either certify their equivalences using a sound decision procedure implemented in a theorem prover that covers the known decidable fragment of SQL, or show their inequivalence by providing a counter-example. Empirical studies show that Cosette can decide the equivalence or provide counter example for a wide range of practical SQL queries collected from database literature, real-world optimizer rules and bugs, and data management class homework assignment from UW.","abstract_html":"From booking air tickets to analyzing astronomy datasets, database queries are pervasive in people’s work and life. This thesis describes Cosette, the first tool for automated reasoning the equivalences of SQL queries. The core of Cosette is a formal semantics of SQL based on semirings. This semantics covers major SQL features, including sophisticated ones such as grouping, aggregate, correlated sub- queries, and integrity constraints. Also, this semantics is denotational and only adds a few equational axioms, as the interpretation of SQL, to semirings. Then, to check the equivalences, Cosette uses this semantics to encode a pair of input SQL queries in both an interactive theorem prover and a constraint solver. In the end, Cosette will either certify their equivalences using a sound decision procedure implemented in a theorem prover that covers the known decidable fragment of SQL, or show their inequivalence by providing a counter-example. Empirical studies show that Cosette can decide the equivalence or provide counter example for a wide range of practical SQL queries collected from database literature, real-world optimizer rules and bugs, and data management class homework assignment from UW.","abstract_has_math":false,"creators":["Chu, Shumo"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Suciu, Dan"],"committee_chairs":[],"committee_members":[],"year":2019,"date_issued":"2019-10-15","date_published":"2019-10-15","updated_at":"2026-11-18T20:07:38Z","subjects":["Automated Reasoning","Interactive Theorem Proving","Semantics","SMT Solver","SQL","Computer science","Computer science and engineering"],"languages":["en_US"],"rights":["CC BY-SA"],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["Chu_washington_0250E_20516.pdf"],"render_values":[{"text":"Chu_washington_0250E_20516.pdf","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1773/44777","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1773/44777","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Awashington%3Aoai%3Adigital.lib.washington.edu%3A1773%2F44777","prefix":"oai_dc"},"source_record":{"url":"https://digital.lib.washington.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adigital.lib.washington.edu%3A1773%2F44777","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Suciu, Dan"]},{"key":"dc:creator","label":"Author","values":["Chu, Shumo"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2019-10-15T22:57:07Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2019-10-15T22:57:07Z"]},{"key":"dc:date.issued","label":"Date","values":["2019-10-15"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["2019"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Automated Reasoning","Interactive Theorem Proving","Semantics","SMT Solver","SQL","Computer science"]},{"key":"dc:subject.other","label":"Dc Subject Other","values":["Computer science and engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en_US"]},{"key":"dc:rights","label":"Dc Rights","values":["CC BY-SA"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["Chu_washington_0250E_20516.pdf"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1773/44777"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Thesis (Ph.D.)--University of Washington, 2019"]},{"key":"dc:description.abstract","label":"Abstract","values":["From booking air tickets to analyzing astronomy datasets, database queries are pervasive in people’s work and life. This thesis describes Cosette, the first tool for automated reasoning the equivalences of SQL queries. The core of Cosette is a formal semantics of SQL based on semirings. This semantics covers major SQL features, including sophisticated ones such as grouping, aggregate, correlated sub- queries, and integrity constraints. Also, this semantics is denotational and only adds a few equational axioms, as the interpretation of SQL, to semirings. Then, to check the equivalences, Cosette uses this semantics to encode a pair of input SQL queries in both an interactive theorem prover and a constraint solver. In the end, Cosette will either certify their equivalences using a sound decision procedure implemented in a theorem prover that covers the known decidable fragment of SQL, or show their inequivalence by providing a counter-example. Empirical studies show that Cosette can decide the equivalence or provide counter example for a wide range of practical SQL queries collected from database literature, real-world optimizer rules and bugs, and data management class homework assignment from UW."]},{"key":"dc:embargo.terms","label":"Dc Embargo Terms","values":["Open Access"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Automated Reasoning of Database Queries"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Suciu, Dan"],"dc:creator":["Chu, Shumo"],"dc:date.accessioned":["2019-10-15T22:57:07Z"],"dc:date.available":["2019-10-15T22:57:07Z"],"dc:date.issued":["2019-10-15"],"dc:date.submitted":["2019"],"dc:description":["Thesis (Ph.D.)--University of Washington, 2019"],"dc:description.abstract":["From booking air tickets to analyzing astronomy datasets, database queries are pervasive in people’s work and life. This thesis describes Cosette, the first tool for automated reasoning the equivalences of SQL queries. The core of Cosette is a formal semantics of SQL based on semirings. This semantics covers major SQL features, including sophisticated ones such as grouping, aggregate, correlated sub- queries, and integrity constraints. Also, this semantics is denotational and only adds a few equational axioms, as the interpretation of SQL, to semirings. Then, to check the equivalences, Cosette uses this semantics to encode a pair of input SQL queries in both an interactive theorem prover and a constraint solver. In the end, Cosette will either certify their equivalences using a sound decision procedure implemented in a theorem prover that covers the known decidable fragment of SQL, or show their inequivalence by providing a counter-example. Empirical studies show that Cosette can decide the equivalence or provide counter example for a wide range of practical SQL queries collected from database literature, real-world optimizer rules and bugs, and data management class homework assignment from UW."],"dc:embargo.terms":["Open Access"],"dc:format.mimetype":["application/pdf"],"dc:identifier.other":["Chu_washington_0250E_20516.pdf"],"dc:identifier.uri":["http://hdl.handle.net/1773/44777"],"dc:language.iso":["en_US"],"dc:rights":["CC BY-SA"],"dc:subject":["Automated Reasoning","Interactive Theorem Proving","Semantics","SMT Solver","SQL","Computer science"],"dc:subject.other":["Computer science and engineering"],"dc:title":["Automated Reasoning of Database Queries"],"dc:type":["Thesis"],"others:access_status":["open.access"]},"updated_at":"2026-11-18T20:07:38Z"}