{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/107551"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/107551","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Reasoning Across Relational Schemas with Large Language Models","abstract":"Relational databases underpin modern information systems, yet real-world data environments are increasingly heterogeneous, distributed, and fragmented across schemas with differing structures, naming conventions, and semantics. Although large language models (LLMs) have shown strong performance in tasks such as Text-to-SQL generation and schema understanding, their ability to reason across multiple relational schemas remains poorly understood. This thesis investigates cross-schema relational reasoning in LLMs through three connected problems: cross-schema SQL query mapping, analysis of factors affecting mapping success, and schema reconstruction from fragmented databases. First, the thesis presents SQL-Exchange, a framework for transforming SQL queries across heterogeneous schemas while preserving source-query structure. Using schema-aware prompting, template-guided abstraction, and target-grounded value substitution, the framework enables structure-preserving query transfer across semantically different domains. Experiments show that LLMs can generate executable and semantically meaningful mappings, which further improve downstream Text-to-SQL performance, especially in low-resource settings. Second, the thesis analyzes why cross-schema SQL mappings succeed or fail. Using over 100,000 generated mappings, it examines the effects of query complexity, schema feasibility, and mapping flexibility on execution validity, semantic correctness, and structural preservation. Results indicate that complex query structures, schema incompatibilities, and ambiguous mappings significantly reduce performance, exposing key limitations of current LLMs under schema shift. Finally, the thesis studies whether LLMs can reconstruct coherent global schemas from fragmented local schemas in data integration scenarios. It introduces a benchmark for global schema construction based on real-world schemas subjected to controlled transformations, including naming drift, schema fragmentation, and removal of cross-source foreign keys. A deterministic evaluation framework measures executability, attribute recovery, and data reconstruction quality. Results show that even state-of-the-art reasoning LLMs struggle to recover globally consistent relational structures under high ambiguity and limited relational visibility. Overall, this thesis advances the study of schema-level reasoning in LLMs by introducing new methods, analyses, and benchmarks for relational reasoning across heterogeneous databases. The findings reveal both the promise and current limitations of LLMs in understanding, transferring, and reconstructing relational structure.","abstract_html":"Relational databases underpin modern information systems, yet real-world data environments are increasingly heterogeneous, distributed, and fragmented across schemas with differing structures, naming conventions, and semantics. Although large language models (LLMs) have shown strong performance in tasks such as Text-to-SQL generation and schema understanding, their ability to reason across multiple relational schemas remains poorly understood. This thesis investigates cross-schema relational reasoning in LLMs through three connected problems: cross-schema SQL query mapping, analysis of factors affecting mapping success, and schema reconstruction from fragmented databases. First, the thesis presents SQL-Exchange, a framework for transforming SQL queries across heterogeneous schemas while preserving source-query structure. Using schema-aware prompting, template-guided abstraction, and target-grounded value substitution, the framework enables structure-preserving query transfer across semantically different domains. Experiments show that LLMs can generate executable and semantically meaningful mappings, which further improve downstream Text-to-SQL performance, especially in low-resource settings. Second, the thesis analyzes why cross-schema SQL mappings succeed or fail. Using over 100,000 generated mappings, it examines the effects of query complexity, schema feasibility, and mapping flexibility on execution validity, semantic correctness, and structural preservation. Results indicate that complex query structures, schema incompatibilities, and ambiguous mappings significantly reduce performance, exposing key limitations of current LLMs under schema shift. Finally, the thesis studies whether LLMs can reconstruct coherent global schemas from fragmented local schemas in data integration scenarios. It introduces a benchmark for global schema construction based on real-world schemas subjected to controlled transformations, including naming drift, schema fragmentation, and removal of cross-source foreign keys. A deterministic evaluation framework measures executability, attribute recovery, and data reconstruction quality. Results show that even state-of-the-art reasoning LLMs struggle to recover globally consistent relational structures under high ambiguity and limited relational visibility. Overall, this thesis advances the study of schema-level reasoning in LLMs by introducing new methods, analyses, and benchmarks for relational reasoning across heterogeneous databases. The findings reveal both the promise and current limitations of LLMs in understanding, transferring, and reconstructing relational structure.","abstract_has_math":false,"creators":["Daviran, Mohammadreza"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Rafiei, Davood (Computing Science)"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-11","date_published":"2026-11","updated_at":"2026-11-26T20:55:54Z","subjects":["Relational Databases","Large Language Models","Text-to-SQL","Schema Reasoning","Query Mapping","Data Integration","Schema Mapping","Global Schema Construction","SQL Query Transformation"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/86057","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/86057","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","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%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F107551","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F107551","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Rafiei, Davood (Computing Science)"]},{"key":"dc:creator","label":"Author","values":["Daviran, Mohammadreza"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-11-16T14:07:48Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Relational Databases","Large Language Models","Text-to-SQL","Schema Reasoning","Query Mapping","Data Integration","Schema Mapping","Global Schema Construction","SQL Query Transformation"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/86057"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Relational databases underpin modern information systems, yet real-world data environments are increasingly heterogeneous, distributed, and fragmented across schemas with differing structures, naming conventions, and semantics. Although large language models (LLMs) have shown strong performance in tasks such as Text-to-SQL generation and schema understanding, their ability to reason across multiple relational schemas remains poorly understood. This thesis investigates cross-schema relational reasoning in LLMs through three connected problems: cross-schema SQL query mapping, analysis of factors affecting mapping success, and schema reconstruction from fragmented databases. First, the thesis presents SQL-Exchange, a framework for transforming SQL queries across heterogeneous schemas while preserving source-query structure. Using schema-aware prompting, template-guided abstraction, and target-grounded value substitution, the framework enables structure-preserving query transfer across semantically different domains. Experiments show that LLMs can generate executable and semantically meaningful mappings, which further improve downstream Text-to-SQL performance, especially in low-resource settings. Second, the thesis analyzes why cross-schema SQL mappings succeed or fail. Using over 100,000 generated mappings, it examines the effects of query complexity, schema feasibility, and mapping flexibility on execution validity, semantic correctness, and structural preservation. Results indicate that complex query structures, schema incompatibilities, and ambiguous mappings significantly reduce performance, exposing key limitations of current LLMs under schema shift. Finally, the thesis studies whether LLMs can reconstruct coherent global schemas from fragmented local schemas in data integration scenarios. It introduces a benchmark for global schema construction based on real-world schemas subjected to controlled transformations, including naming drift, schema fragmentation, and removal of cross-source foreign keys. A deterministic evaluation framework measures executability, attribute recovery, and data reconstruction quality. Results show that even state-of-the-art reasoning LLMs struggle to recover globally consistent relational structures under high ambiguity and limited relational visibility. Overall, this thesis advances the study of schema-level reasoning in LLMs by introducing new methods, analyses, and benchmarks for relational reasoning across heterogeneous databases. The findings reveal both the promise and current limitations of LLMs in understanding, transferring, and reconstructing relational structure."]},{"key":"dc:title","label":"Title","values":["Reasoning Across Relational Schemas with Large Language Models"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Rafiei, Davood (Computing Science)"],"dc:creator":["Daviran, Mohammadreza"],"dc:date.accessioned":["2026-11-16T14:07:48Z"],"dc:date.issued":["2026-11"],"dc:description.abstract":["Relational databases underpin modern information systems, yet real-world data environments are increasingly heterogeneous, distributed, and fragmented across schemas with differing structures, naming conventions, and semantics. Although large language models (LLMs) have shown strong performance in tasks such as Text-to-SQL generation and schema understanding, their ability to reason across multiple relational schemas remains poorly understood. This thesis investigates cross-schema relational reasoning in LLMs through three connected problems: cross-schema SQL query mapping, analysis of factors affecting mapping success, and schema reconstruction from fragmented databases. First, the thesis presents SQL-Exchange, a framework for transforming SQL queries across heterogeneous schemas while preserving source-query structure. Using schema-aware prompting, template-guided abstraction, and target-grounded value substitution, the framework enables structure-preserving query transfer across semantically different domains. Experiments show that LLMs can generate executable and semantically meaningful mappings, which further improve downstream Text-to-SQL performance, especially in low-resource settings. Second, the thesis analyzes why cross-schema SQL mappings succeed or fail. Using over 100,000 generated mappings, it examines the effects of query complexity, schema feasibility, and mapping flexibility on execution validity, semantic correctness, and structural preservation. Results indicate that complex query structures, schema incompatibilities, and ambiguous mappings significantly reduce performance, exposing key limitations of current LLMs under schema shift. Finally, the thesis studies whether LLMs can reconstruct coherent global schemas from fragmented local schemas in data integration scenarios. It introduces a benchmark for global schema construction based on real-world schemas subjected to controlled transformations, including naming drift, schema fragmentation, and removal of cross-source foreign keys. A deterministic evaluation framework measures executability, attribute recovery, and data reconstruction quality. Results show that even state-of-the-art reasoning LLMs struggle to recover globally consistent relational structures under high ambiguity and limited relational visibility. Overall, this thesis advances the study of schema-level reasoning in LLMs by introducing new methods, analyses, and benchmarks for relational reasoning across heterogeneous databases. The findings reveal both the promise and current limitations of LLMs in understanding, transferring, and reconstructing relational structure."],"dc:identifier.doi":["https://doi.org/10.7939/86057"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["Relational Databases","Large Language Models","Text-to-SQL","Schema Reasoning","Query Mapping","Data Integration","Schema Mapping","Global Schema Construction","SQL Query Transformation"],"dc:title":["Reasoning Across Relational Schemas with Large Language Models"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T20:55:54Z"}