A query processing apparatus and method automatically generating a query window for an end user. The apparatus and method includes acquiring virtual schema information about tagged document data, automatically generating a query window on the basis of the virtual schema information, specifying an increase or a decrease in a number of repetitions of condition input fields for a repetitive item on the query window, copying content of the condition input fields in a certain repetition to the condition input fields in a newly-added repetition when an increase in the number of repetitions is specified, specifying a joining condition between conditions in each of the repetitions; and generating query code from information input in the query window and transmitting the query code to the query processing apparatus.
展开▼