cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Importing CSV but there are some conditions

I'm trying to import the data which looks something like the below image

And I'm trying to get nodes like the below image

The thing is all question nodes are connected, and responses are connected to each question node. But for some questions the responses are based on Gender or other factors, so i don't how to import such thing, there are 1000s of rows and multiple questions have the same thing, so I can't hard code them. Except for the relationship I have mentioned the rest are connected with the relationship as "has options".

I am attaching the toy csv in txt format as csv sharing is not supported.
toy.txt (559 Bytes)
If I'm not clear with any part please let me know.

Thanks in advance.

1 REPLY 1

ameyasoft
Graph Maven

Try this for Q3: