I'm currently implementing a database querying tool, and am currently working on a section which would allow users to specify ORDER BY and Aggregate clauses. My biggest challenge has been to represent it in a neat format, while allowing users to add as many attributes as they like. What I've done so far is presented the results as a Tree, where users can add levels to the tree, representing new attributes.
Pressing the 'Add Attributes' button adds a new level in the tree. I'm not 100% satisfied with this approach, however I also tried a grid approach but preferred this due to the fact that users can keep adding as many attributes as they like.
Does it appear user-friendly, neat and visually pleasing? If not, what could be improved? Is there some other representation I could use?