I have constructed a fairly complicated query, by a series of smaller sub queries. Each one references the one before it, which simplified the complexity of the coding, and allowed me to avoid ambiguous joins. I now want format the final query, which is for the user, so that it contains all of the sub queries it relies on. How do I do this? I can provide the code, if that would be useful.