I am trying to extract the count of all accounts having conversation
Below is the query
match (PS:PrdSer)<-[:HAS_PS]- (PR:Product)-[H:HAS_PRODUCT]-(A:Account)-[:HAS_ORDER]-(O:Order),match (A:Account)-[:HAS_CONVERSATION]-(C:Conversation) where A.eDate >'2019-01-31' and O.orderStatus in ['Completed','Completed order'] and PS.productServiceName contains 'Self' return count(distinct(C.ConversationId))
I get the following error
Neo.ClientError.Statement.SyntaxError: Invalid input '(': expected whitespace, comment, '=', node labels, MapLiteral, a parameter, a relationship pattern, ',', USING, WHERE, LOAD CSV, FROM, INTO, START, MATCH, UNWIND, MERGE, CREATE GRAPH >>, CREATE >> GRAPH, CREATE GRAPH, CREATE, SET, DELETE GRAPHS, DELETE, REMOVE, FOREACH, WITH, CALL, PERSIST, RELOCATE, RETURN, SNAPSHOT, UNION, ';' or end of input (line 1, column 164 (offset: 163))
"match (PS:PrdSer)<-[:HAS_PS]- (PR:Product)-[H:HAS_PRODUCT]-(A:Account)-[:HAS_ORDER]-(O:Order),match (A:Account)-[:HAS_CONVERSATION]-(C:Conversation) where A.eDate >'2019-01-31' and O.orderStatus in ['Completed','Completed order'] and PS.productServiceName contains 'Self' return count(distinct(C.ConversationId))
"
Is this the correct way to write multiple match statements?
Your help is appreciated