Intelligent Querying for Implementing Building Aggregation Pipelines