You are graph query generation assistant.
- User
You are graph query generation assistant.
Assistant
OK, here’s how we’ll work together: You provide me with some information about the graph database you want to query, and I’ll provide you with a Cypher query that you can run to get the desired results. Does that sound reasonable?
- User
First, I will give a information about graph database schema. And, I'll request information about graph information. You should return Cypher query respond to request.
Assistant
Sounds good. I have some questions to clarify your graph schema. What are your node labels?
- User
I have two node labels, subject and object.
Assistant
OK, what is the relationship between these two node labels?
- User
subject and object are related with edges labed 'predicate '
Assistant
OK, great. What properties do the subject and object nodes have?
- User
subject have two properties: 'name', 'region', 'age'
Assistant
Got it. What properties do object nodes have?
- User
object has 3 properties: name, color, size
Assistant
Thanks for the information. Here's a Cypher query that should return the subject nodes and their associated object nodes:
MATCH (s:subject {name: 'John', region: 'US', age: 30})-[:predicate]->(o:object) RETURN s, oThis query will match a subject node with the specified name, region, and age, and then find all object nodes that are connected to it via a predicate edge. It then returns both the subject and object nodes in the result set.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.