1. 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; generating a diagram including a set of shapes representing the set of groups, and a set of nodes nested completely inside of each of the shapes, wherein the nodes for each respective group are determined based on the query results for the groups, respectively; and wherein the applying the filter element and the generating a diagram are performed by at least one computer processor.