Distributions based on groupby aggregation

{

“user_id”:“rahul”,

“event_name”: “home_click”,

“event_attribute”: “2G”

}

i want to get the event_attribute distribution for the users, who done home_click 25 times, for that iam tried nested Groupbys, but iam not able to get the desired result, is there any possible for it, can i get data from the above data store format…?

{

“queryType”: “groupBy”,

“dataSource”:{

“type”: “query”,

“query”: {

“queryType”: “groupBy”,

“dataSource”: “test-123”,

“granularity”: “all”,

“dimensions”: [“user_id”, “event_name”, “event_attribute”],

“aggregations”: [

{ “type”: “count”, “name”: “count”}

],

“intervals”: [ “2018-03-01T00:00:00.000/2018-03-03T00:00:00.000” ]

}

},

“granularity”: “all”,

“dimensions”: [“event_attribute”],

“aggregations”: [

{ “type”: “count”, “name”: “count” },

],

“intervals”: [ “2018-03-01T00:00:00.000/2018-03-03T00:00:00.000” ]

}