I have got two arrays through the following cypher query
return p.home,p1.away
collect(distinct toInteger(p.score[0])) as value1,
collect(distinct toInteger(p1.score[1])) as value2
Here, value1=[1,2,3,4] and value=[3,0,6,2] I wanted to have:
sum (1+2+3+4+3+0+6+2) as totalValue ?