How to narrow down the current aggregation context to a specific scope within set of documents returned from Filter Aggregation?

Hi,
Couldn't copy paste the question here due 5000 char limit..however, here is the question in stackoverflow..
Appreciate any help.

Thanks !