Abstract-We present a user-centered database query language called QBT (Query By Templates) The Extensible Markup Language (XML) is widely regarded as one of the fastest growing technologies in recent times [1]. XML has created new opportunities for using documents as a means of information representation, interchange, and retrieval. With XML, structurally rich documents can be created for the traditional purposes of reading, browsing, and printing, as well as searching and querying. Searches in word-processor documents are usually restricted to linear word or phrase searches. With the current HTML internet technology, searches continue to be limited primarily to Boolean keyword matching. However, with proper use of the metadata embedded in XML documents, users have the ability to pose queries (complex searches involving both textual content and structure) in document collections, similar to database queries.The increase in popularity of XML has led to its use in most areas of application development. necessitate efficient management of XML resources. This next-generation web will use database systems capable of handling high volumes of XML data and will need to allow users to query such information. In our view, this is the next generation of database systems-systems that will need to manage and search complex data with well-defined semantics.This leads us to the next logical question-how can users take advantage of the embedded structure in XML documents in their searches? Although most search engines provide some form of Boolean query formulation, users rarely utilize the Boolean query features in search engines. One expects that keyword searches will continue to be the most widely used type of search. However, the fact that XML documents include rich structural information will affect how users formulate their searches. The basic premise of user-database communication is deeper than simply the ability to retrieve documents via some content. Users can only communicate efficiently with databases when the communication medium provides users with the facilities for discovery as well as search using a familiar environment.Toward this goal, we generalize the Query By Example (QBE) language so that it can be applied to databases containing complex structured data [2]. QBE is suitable for relational databases since it uses tabular skeletons, which are analogous to tables in the relational model, as a means for constructing queries. In other words, the template for presenting queries in QBE is similar to the conceptual structure of the