MATCH (kw1:Tag)<-[e:TAGGED]-(tp1:Testplan)-[e2:TAGGED]->(kw2:Tag)
WHERE kw1.name = "result"
RETURN kw1,kw2,count(tp1)
ORDER BY count(tp1) DESC
This cypher returns something as follows
Kw1 kw2 count(tp1)
“result” “error” 104
“result” “prerequisites” 89
“result” “alpha” 63
I want the result to be
Kw1 kw2 count(tp1)
“result” “error”,”prerequisites” 70
“result” “error”,”alpha” 63
Here the count in the second table gives the number of Testplans being TAGGED to "result","error" and "prerequisites" and similarly "result","error" and "alpha"