12. The computer-readable storage medium of claim 11 , wherein the generated diagram further includes a set of members within each of the nodes, and wherein the set of members for each node is determined based on the query results.
11. A computer-readable storage medium storing computer-executable instructions that when executed by at least one processor cause the at least one processor to perform a method for providing a query-based diagrammatic presentation of data, the method comprising: generating a filter element that defines a set of groups and includes a set of declarative queries that define information to be included in the set of groups; applying the filter element to a data source, including performing the set of declarative queries on the data source, thereby generating a set of query results for each of the groups; and generating a diagram including a set of shapes representing the set of groups, and a set of nodes nested within each of the shapes, wherein the nodes for each respective group are determined based on the query results for the groups, respectively.