It would be useful to have the functionality to drag an entity attr and create an aggregate filtered by this attribute. To match the filtered attr, could show a popup to suggest the user to choose the input / variable to filter in query, or create a new one (input / variable).