Upload 2 files
Browse files- text_2_cypher_train.csv +54 -0
- text_2_cypher_valid.csv +26 -0
text_2_cypher_train.csv
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
id,graph_name,schema,input,output
|
2 |
+
1,movies,"Node properties are the following:
|
3 |
+
Movie {title: STRING, votes: INTEGER, tagline: STRING, released: INTEGER}, Person {born: INTEGER, name: STRING}
|
4 |
+
Relationship properties are the following:
|
5 |
+
ACTED_IN {roles: LIST}, REVIEWED {summary: STRING, rating: INTEGER}
|
6 |
+
The relationships are the following:
|
7 |
+
(:Person)-[:ACTED_IN]->(:Movie), (:Person)-[:DIRECTED]->(:Movie), (:Person)-[:PRODUCED]->(:Movie), (:Person)-[:WROTE]->(:Movie), (:Person)-[:FOLLOWS]->(:Person), (:Person)-[:REVIEWED]->(:Movie)",Which actors played in the most movies?,"MATCH (p:Person)-[:ACTED_IN]->(m:Movie)
|
8 |
+
RETURN p.name, COUNT(m) AS movies_count
|
9 |
+
ORDER BY movies_count DESC
|
10 |
+
LIMIT 1"
|
11 |
+
2,movies,"Node properties are the following:
|
12 |
+
Movie {title: STRING, votes: INTEGER, tagline: STRING, released: INTEGER}, Person {born: INTEGER, name: STRING}
|
13 |
+
Relationship properties are the following:
|
14 |
+
ACTED_IN {roles: LIST}, REVIEWED {summary: STRING, rating: INTEGER}
|
15 |
+
The relationships are the following:
|
16 |
+
(:Person)-[:ACTED_IN]->(:Movie), (:Person)-[:DIRECTED]->(:Movie), (:Person)-[:PRODUCED]->(:Movie), (:Person)-[:WROTE]->(:Movie), (:Person)-[:FOLLOWS]->(:Person), (:Person)-[:REVIEWED]->(:Movie)",Which actors played in more than one movie released after 2000?,"MATCH (p:Person)-[a:ACTED_IN]->(m:Movie)
|
17 |
+
WHERE m.released > 2000
|
18 |
+
WITH p, COUNT(m) AS movies_count
|
19 |
+
WHERE movies_count > 1
|
20 |
+
RETURN p.name, movies_count"
|
21 |
+
3,companies,"Node properties are the following:
|
22 |
+
Person {name: STRING, id: STRING, summary: STRING}, Organization {isDissolved: BOOLEAN, nbrEmployees: INTEGER, revenue: FLOAT, name: STRING, motto: STRING, id: STRING, summary: STRING, isPublic: BOOLEAN}, IndustryCategory {name: STRING, id: STRING}, City {name: STRING, summary: STRING, id: STRING}, Country {name: STRING, id: STRING, summary: STRING}, Article {id: STRING, sentiment: FLOAT, author: STRING, siteName: STRING, summary: STRING, date: DATE_TIME, title: STRING}, Chunk {text: STRING, embedding: LIST}, Fewshot {Question: STRING, Cypher: STRING, id: INTEGER, embedding: LIST}
|
23 |
+
Relationship properties are the following:
|
24 |
+
|
25 |
+
The relationships are the following:
|
26 |
+
(:Person)-[:HAS_PARENT]->(:Person), (:Person)-[:HAS_CHILD]->(:Person), (:Organization)-[:IN_CITY]->(:City), (:Organization)-[:HAS_CATEGORY]->(:IndustryCategory), (:Organization)-[:HAS_SUBSIDIARY]->(:Organization), (:Organization)-[:HAS_SUPPLIER]->(:Organization), (:Organization)-[:HAS_CEO]->(:Person), (:Organization)-[:HAS_BOARD_MEMBER]->(:Person), (:Organization)-[:HAS_INVESTOR]->(:Organization), (:Organization)-[:HAS_INVESTOR]->(:Person), (:Organization)-[:HAS_COMPETITOR]->(:Organization), (:City)-[:IN_COUNTRY]->(:Country), (:Article)-[:HAS_CHUNK]->(:Chunk), (:Article)-[:MENTIONS]->(:Organization)",Which company has the most subsidiaries?,"MATCH (o:Organization)-[:HAS_SUBSIDIARY]->(subsidiary:Organization)
|
27 |
+
WITH o, COUNT(subsidiary) AS NumberOfSubsidiaries
|
28 |
+
RETURN o.name AS CompanyName, NumberOfSubsidiaries
|
29 |
+
ORDER BY NumberOfSubsidiaries DESC
|
30 |
+
LIMIT 1"
|
31 |
+
4,companies,"Node properties are the following:
|
32 |
+
Person {name: STRING, id: STRING, summary: STRING}, Organization {isDissolved: BOOLEAN, nbrEmployees: INTEGER, revenue: FLOAT, name: STRING, motto: STRING, id: STRING, summary: STRING, isPublic: BOOLEAN}, IndustryCategory {name: STRING, id: STRING}, City {name: STRING, summary: STRING, id: STRING}, Country {name: STRING, id: STRING, summary: STRING}, Article {id: STRING, sentiment: FLOAT, author: STRING, siteName: STRING, summary: STRING, date: DATE_TIME, title: STRING}, Chunk {text: STRING, embedding: LIST}, Fewshot {Question: STRING, Cypher: STRING, id: INTEGER, embedding: LIST}
|
33 |
+
Relationship properties are the following:
|
34 |
+
|
35 |
+
The relationships are the following:
|
36 |
+
(:Person)-[:HAS_PARENT]->(:Person), (:Person)-[:HAS_CHILD]->(:Person), (:Organization)-[:IN_CITY]->(:City), (:Organization)-[:HAS_CATEGORY]->(:IndustryCategory), (:Organization)-[:HAS_SUBSIDIARY]->(:Organization), (:Organization)-[:HAS_SUPPLIER]->(:Organization), (:Organization)-[:HAS_CEO]->(:Person), (:Organization)-[:HAS_BOARD_MEMBER]->(:Person), (:Organization)-[:HAS_INVESTOR]->(:Organization), (:Organization)-[:HAS_INVESTOR]->(:Person), (:Organization)-[:HAS_COMPETITOR]->(:Organization), (:City)-[:IN_COUNTRY]->(:Country), (:Article)-[:HAS_CHUNK]->(:Chunk), (:Article)-[:MENTIONS]->(:Organization)",Who are the board members of Siemens?,"MATCH (:Organization {name: ""Siemens""})-[:HAS_BOARD_MEMBER]->(person:Person)
|
37 |
+
RETURN person.name AS BoardMember"
|
38 |
+
5,neoflix,"Node properties are the following:
|
39 |
+
Movie {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, status: STRING, title: STRING, imdb_id: STRING, release_date: DATE, budget: INTEGER, runtime: FLOAT, popularity: FLOAT, id: INTEGER, original_title: STRING, original_language: STRING, tagline: STRING, homepage: STRING}, Language {id: STRING, name: STRING}, Country {id: STRING, name: STRING}, Genre {id: INTEGER, name: STRING}, ProductionCompany {id: INTEGER, name: STRING}, Collection {name: STRING, id: INTEGER, backdrop_path: STRING, poster_path: STRING}, Person {gender: INTEGER, profile_path: STRING, id: INTEGER, name: STRING}, User {id: INTEGER}, Keyword {id: INTEGER, name: STRING}, Video {tagline: STRING, average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, homepage: STRING}, Adult {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, tagline: STRING, homepage: STRING}, Package {price: FLOAT, duration: DURATION, id: INTEGER, name: STRING}, Subscription {expiresAt: DATE_TIME, id: STRING}
|
40 |
+
Relationship properties are the following:
|
41 |
+
CAST_FOR {credit_id: STRING, cast_id: INTEGER, order: INTEGER, character: STRING}, CREW_FOR {credit_id: STRING, job: STRING, department: STRING}, RATED {timestamp: DATE_TIME, rating: FLOAT}
|
42 |
+
The relationships are the following:
|
43 |
+
(:Movie)-[:HAS_KEYWORD]->(:Keyword), (:Movie)-[:ORIGINAL_LANGUAGE]->(:Language), (:Movie)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Movie)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Movie)-[:IN_GENRE]->(:Genre), (:Movie)-[:PRODUCED_BY]->(:ProductionCompany), (:Movie)-[:IN_COLLECTION]->(:Collection), (:Person)-[:CAST_FOR]->(:Movie), (:Person)-[:CAST_FOR]->(:Video), (:Person)-[:CREW_FOR]->(:Movie), (:User)-[:RATED]->(:Movie), (:User)-[:RATED]->(:Adult), (:User)-[:RATED]->(:Video), (:Video)-[:ORIGINAL_LANGUAGE]->(:Language), (:Video)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Video)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Video)-[:IN_GENRE]->(:Genre), (:Video)-[:PRODUCED_BY]->(:ProductionCompany), (:Video)-[:HAS_KEYWORD]->(:Keyword), (:Video)-[:IN_COLLECTION]->(:Collection), (:Adult)-[:ORIGINAL_LANGUAGE]->(:Language), (:Adult)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Adult)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Adult)-[:IN_GENRE]->(:Genre), (:Adult)-[:PRODUCED_BY]->(:ProductionCompany), (:Adult)-[:HAS_KEYWORD]->(:Keyword), (:Package)-[:PROVIDES_ACCESS_TO]->(:Genre), (:Subscription)-[:FOR_PACKAGE]->(:Package)",Which movies was Tim Allen casted for?,"MATCH (p:Person {name: ""Tim Allen""})-[:CAST_FOR]->(m:Movie)
|
44 |
+
RETURN m.title;"
|
45 |
+
6,neoflix,"Node properties are the following:
|
46 |
+
Movie {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, status: STRING, title: STRING, imdb_id: STRING, release_date: DATE, budget: INTEGER, runtime: FLOAT, popularity: FLOAT, id: INTEGER, original_title: STRING, original_language: STRING, tagline: STRING, homepage: STRING}, Language {id: STRING, name: STRING}, Country {id: STRING, name: STRING}, Genre {id: INTEGER, name: STRING}, ProductionCompany {id: INTEGER, name: STRING}, Collection {name: STRING, id: INTEGER, backdrop_path: STRING, poster_path: STRING}, Person {gender: INTEGER, profile_path: STRING, id: INTEGER, name: STRING}, User {id: INTEGER}, Keyword {id: INTEGER, name: STRING}, Video {tagline: STRING, average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, homepage: STRING}, Adult {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, tagline: STRING, homepage: STRING}, Package {price: FLOAT, duration: DURATION, id: INTEGER, name: STRING}, Subscription {expiresAt: DATE_TIME, id: STRING}
|
47 |
+
Relationship properties are the following:
|
48 |
+
CAST_FOR {credit_id: STRING, cast_id: INTEGER, order: INTEGER, character: STRING}, CREW_FOR {credit_id: STRING, job: STRING, department: STRING}, RATED {timestamp: DATE_TIME, rating: FLOAT}
|
49 |
+
The relationships are the following:
|
50 |
+
(:Movie)-[:HAS_KEYWORD]->(:Keyword), (:Movie)-[:ORIGINAL_LANGUAGE]->(:Language), (:Movie)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Movie)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Movie)-[:IN_GENRE]->(:Genre), (:Movie)-[:PRODUCED_BY]->(:ProductionCompany), (:Movie)-[:IN_COLLECTION]->(:Collection), (:Person)-[:CAST_FOR]->(:Movie), (:Person)-[:CAST_FOR]->(:Video), (:Person)-[:CREW_FOR]->(:Movie), (:User)-[:RATED]->(:Movie), (:User)-[:RATED]->(:Adult), (:User)-[:RATED]->(:Video), (:Video)-[:ORIGINAL_LANGUAGE]->(:Language), (:Video)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Video)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Video)-[:IN_GENRE]->(:Genre), (:Video)-[:PRODUCED_BY]->(:ProductionCompany), (:Video)-[:HAS_KEYWORD]->(:Keyword), (:Video)-[:IN_COLLECTION]->(:Collection), (:Adult)-[:ORIGINAL_LANGUAGE]->(:Language), (:Adult)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Adult)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Adult)-[:IN_GENRE]->(:Genre), (:Adult)-[:PRODUCED_BY]->(:ProductionCompany), (:Adult)-[:HAS_KEYWORD]->(:Keyword), (:Package)-[:PROVIDES_ACCESS_TO]->(:Genre), (:Subscription)-[:FOR_PACKAGE]->(:Package)",Who worked with Tim Allen in 2010?,"MATCH (tim:Person {name: ""Tim Allen""})-[:CAST_FOR]->(m:Movie)
|
51 |
+
WHERE m.release_date >= date(""2010-01-01"") AND m.release_date <= date(""2010-12-31"")
|
52 |
+
MATCH (p:Person)-[:CAST_FOR|CREW_FOR]->(m)
|
53 |
+
WHERE p <> tim
|
54 |
+
RETURN DISTINCT p.name"
|
text_2_cypher_valid.csv
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
id,graph_name,schema,input,output
|
2 |
+
1,movies,"Node properties are the following:
|
3 |
+
Movie {title: STRING, votes: INTEGER, tagline: STRING, released: INTEGER}, Person {born: INTEGER, name: STRING}
|
4 |
+
Relationship properties are the following:
|
5 |
+
ACTED_IN {roles: LIST}, REVIEWED {summary: STRING, rating: INTEGER}
|
6 |
+
The relationships are the following:
|
7 |
+
(:Person)-[:ACTED_IN]->(:Movie), (:Person)-[:DIRECTED]->(:Movie), (:Person)-[:PRODUCED]->(:Movie), (:Person)-[:WROTE]->(:Movie), (:Person)-[:FOLLOWS]->(:Person), (:Person)-[:REVIEWED]->(:Movie)",How many directors did Tom Hanks work with?,"MATCH (:Person {name: ""Tom Hanks""})-[:ACTED_IN]->(:Movie)<-[:DIRECTED]-(directors:Person)
|
8 |
+
RETURN COUNT(DISTINCT directors) AS NumberOfDirectors"
|
9 |
+
2,companies,"Node properties are the following:
|
10 |
+
Person {name: STRING, id: STRING, summary: STRING}, Organization {isDissolved: BOOLEAN, nbrEmployees: INTEGER, revenue: FLOAT, name: STRING, motto: STRING, id: STRING, summary: STRING, isPublic: BOOLEAN}, IndustryCategory {name: STRING, id: STRING}, City {name: STRING, summary: STRING, id: STRING}, Country {name: STRING, id: STRING, summary: STRING}, Article {id: STRING, sentiment: FLOAT, author: STRING, siteName: STRING, summary: STRING, date: DATE_TIME, title: STRING}, Chunk {text: STRING, embedding: LIST}, Fewshot {Question: STRING, Cypher: STRING, id: INTEGER, embedding: LIST}
|
11 |
+
Relationship properties are the following:
|
12 |
+
|
13 |
+
The relationships are the following:
|
14 |
+
(:Person)-[:HAS_PARENT]->(:Person), (:Person)-[:HAS_CHILD]->(:Person), (:Organization)-[:IN_CITY]->(:City), (:Organization)-[:HAS_CATEGORY]->(:IndustryCategory), (:Organization)-[:HAS_SUBSIDIARY]->(:Organization), (:Organization)-[:HAS_SUPPLIER]->(:Organization), (:Organization)-[:HAS_CEO]->(:Person), (:Organization)-[:HAS_BOARD_MEMBER]->(:Person), (:Organization)-[:HAS_INVESTOR]->(:Organization), (:Organization)-[:HAS_INVESTOR]->(:Person), (:Organization)-[:HAS_COMPETITOR]->(:Organization), (:City)-[:IN_COUNTRY]->(:Country), (:Article)-[:HAS_CHUNK]->(:Chunk), (:Article)-[:MENTIONS]->(:Organization)",What are the three latest articles mentioning Neo4j?,"MATCH (a:Article)-[:MENTIONS]->(o:Organization {name: ""Neo4j""})
|
15 |
+
RETURN a.id, a.title, a.date
|
16 |
+
ORDER BY a.date DESC
|
17 |
+
LIMIT 3"
|
18 |
+
3,neoflix,"Node properties are the following:
|
19 |
+
Movie {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, status: STRING, title: STRING, imdb_id: STRING, release_date: DATE, budget: INTEGER, runtime: FLOAT, popularity: FLOAT, id: INTEGER, original_title: STRING, original_language: STRING, tagline: STRING, homepage: STRING}, Language {id: STRING, name: STRING}, Country {id: STRING, name: STRING}, Genre {id: INTEGER, name: STRING}, ProductionCompany {id: INTEGER, name: STRING}, Collection {name: STRING, id: INTEGER, backdrop_path: STRING, poster_path: STRING}, Person {gender: INTEGER, profile_path: STRING, id: INTEGER, name: STRING}, User {id: INTEGER}, Keyword {id: INTEGER, name: STRING}, Video {tagline: STRING, average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, homepage: STRING}, Adult {average_vote: FLOAT, overview: STRING, revenue: FLOAT, poster_path: STRING, vote_count: INTEGER, title: STRING, release_date: DATE, status: STRING, budget: INTEGER, popularity: FLOAT, imdb_id: STRING, original_title: STRING, id: INTEGER, runtime: FLOAT, original_language: STRING, tagline: STRING, homepage: STRING}, Package {price: FLOAT, duration: DURATION, id: INTEGER, name: STRING}, Subscription {expiresAt: DATE_TIME, id: STRING}
|
20 |
+
Relationship properties are the following:
|
21 |
+
CAST_FOR {credit_id: STRING, cast_id: INTEGER, order: INTEGER, character: STRING}, CREW_FOR {credit_id: STRING, job: STRING, department: STRING}, RATED {timestamp: DATE_TIME, rating: FLOAT}
|
22 |
+
The relationships are the following:
|
23 |
+
(:Movie)-[:HAS_KEYWORD]->(:Keyword), (:Movie)-[:ORIGINAL_LANGUAGE]->(:Language), (:Movie)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Movie)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Movie)-[:IN_GENRE]->(:Genre), (:Movie)-[:PRODUCED_BY]->(:ProductionCompany), (:Movie)-[:IN_COLLECTION]->(:Collection), (:Person)-[:CAST_FOR]->(:Movie), (:Person)-[:CAST_FOR]->(:Video), (:Person)-[:CREW_FOR]->(:Movie), (:User)-[:RATED]->(:Movie), (:User)-[:RATED]->(:Adult), (:User)-[:RATED]->(:Video), (:Video)-[:ORIGINAL_LANGUAGE]->(:Language), (:Video)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Video)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Video)-[:IN_GENRE]->(:Genre), (:Video)-[:PRODUCED_BY]->(:ProductionCompany), (:Video)-[:HAS_KEYWORD]->(:Keyword), (:Video)-[:IN_COLLECTION]->(:Collection), (:Adult)-[:ORIGINAL_LANGUAGE]->(:Language), (:Adult)-[:SPOKEN_IN_LANGUAGE]->(:Language), (:Adult)-[:PRODUCED_IN_COUNTRY]->(:Country), (:Adult)-[:IN_GENRE]->(:Genre), (:Adult)-[:PRODUCED_BY]->(:ProductionCompany), (:Adult)-[:HAS_KEYWORD]->(:Keyword), (:Package)-[:PROVIDES_ACCESS_TO]->(:Genre), (:Subscription)-[:FOR_PACKAGE]->(:Package)",Which are the top 5 highest average rated Mystery movies?,"MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: ""Mystery""})
|
24 |
+
RETURN m.title AS Title, m.average_vote AS AverageRating
|
25 |
+
ORDER BY m.average_vote DESC
|
26 |
+
LIMIT 5"
|