The Data Source Representations in Work Area graphic shows the artifacts useful in tailoring your query:
Data sources are represented in three XQuery For: statements.
The 'empty empty' element in the Return type is a placeholder for the elements and their type that will eventually be projected.
The lines from the three statements to the empty global element in the Return type represents current scopings. By adjusting these lines when a Return type is populated you can alter the arrangement of information returned by your query. (Described below.)