duplicate rows in query  to get graph causes poorer performance and fails with newest neo4j version