Dynamically return virtual relationship based on matched relationships

If your query results in the path identified as ‘actual data’, you can construct a virtual path for each of the paths identified as ‘output’ using the apoc procedure/functions described in the link below.

https://neo4j.com/labs/apoc/4.2/virtual/virtual-nodes-rels/#_function_overview