The document discusses the challenges of integrating XML data sources with differing schemas, leading to structural and vocabulary heterogeneity, which complicates query writing. It proposes a new query language called Flexible Preference Tree Pattern Query (FPTPQ), allowing multiple names and paths for the same node and introducing preference nodes to enhance query results. Additionally, the paper presents a holistic evaluation algorithm, FlexPrefTreeMatch, designed to effectively assess FPTPQ queries and improve solution relevance.