USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM "file:c:/Users/Jean/Downloads/CompaniesTEST.csv" AS line
MERGE (a:COMPANY {permalink: line.permalink, funding_total: line.funding_total_usd, funding_rounds: toInt(line.funding_rounds), founded_at: line.founded_at, founded_month: line.founded_month, founded_quarter: line.founded_quarter, founded_year: toInt(line.founded_year), first_funding_at: line.first_funding_at, last_funding_at: line.last_funding_at})
MERGE (b:CATEGORY {name: line.category_list})
MERGE (c:MARKET {name: line.market})
MERGE (d:STATUS {name: line.status})
MERGE (e:COUNTRY {name: line.country_code})
MERGE (f:STATE {name: line.state_code})
MERGE (g:REGION {name: line.region})
MERGE (h:CITY {name: line.city})
CREATE (a)-[:HAS_CATEGORY]->(b)
CREATE (a)-[:HAS_MARKET]->(c)
CREATE (a)-[:HAS_STATUS]->(d)
CREATE (a)-[:HAS_COUNTRY]->(e)
CREATE (a)-[:HAS_STATE]->(f)
CREATE (a)-[:HAS_REGION]->(g)
CREATE (a)-[:HAS_CITY]->(h)