LOAD CSV WITH HEADERS FROM 'file:///Regions.tsv' AS line FIELDTERMINATOR '\t' WITH line // merge store MERGE (region:Region {id:toInteger(line.region_id)}) SET region.name=line.region_name, region.code=line.region_code WITH line, region MATCH (country:Country {code:line.country_code}) SET country.iso_id=toInteger(line.iso_id) WITH region, country MERGE (region)-[:HAS_COUNTRY]->(country);