When you say "having the following table" do you mean tis data exists in a relational / sql database and you're trying to bring it all into Neo4j? Or you've already created :Person and :Project nodes in Neo4j, and you just need to create the relationships?
Apart from that you need to use MERGE carefully, as it can create duplicates that you don't intend (see Understanding how MERGE works - Knowledge Base). If you are importing relational data and the nodes already exist, have you tried:
MATCH (p:Person {name: "name1"}), (n:Project)
MERGE (p)-[:HAS_ROLE]->(n)
RETURN p, n