{"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have the most entities linked as beneficiaries in filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS country, COUNT(e) AS entityCount\\nORDER BY entityCount DESC\\nLIMIT 3\\nRETURN country, entityCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the games played by streams that have a total view count greater than 50,000,000."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 50000000\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its abstract and the count of Keyword linked via HAS_KEY, and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which first_name starts with Jea!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name STARTS WITH 'Jea'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all the categories represented by businesses in 'San Mateo'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.city = 'San Mateo'\\nRETURN DISTINCT c.name AS category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Article for which title=Maslov class and minimality in Calabi-Yau manifolds!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies released between 1990 and 2000 have more than 5000 votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 1990 AND m.released <= 2000 AND m.votes > 5000\\nRETURN m.title, m.released, m.votes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the title values from 20 Article that are linked to Keyword via HAS_KEY and return title along with the respective Keyword counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the highest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.budget DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where category_id is 978aee6db23fc939cec71ac05eb15b7a and Article, with comments equal 18 pages, latex2e with amsfonts. Final version, accepted for\n publication, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})-[*]-(e:Article{comments:'18 pages, latex2e with amsfonts. Final version, accepted for publication'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Journal that is not related to the Topic with the description Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry.!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Topic {description: 'Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry.'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from DOI for which doi_id=fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where first_name contains R., along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.first_name CONTAINS 'R.'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 actors with the most roles in movies released before 1980."}, {"role": "assistant", "content": "MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.year < 1980\\nRETURN a.name, count(r) AS roles\\nORDER BY roles DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "Which department does the S.Skinny L.W Epic come from?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'S.Skinny L.W Epic'})-[:FROM_DEPARTMENT]->(d:Department)\\nRETURN d.departmentName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character, with a 'community' value greater than 700, has interacted with 'Aemon-Targaryen-(Maester-Aemon)' and has the lowest 'book1PageRank'?"}, {"role": "assistant", "content": "MATCH (target:Character { name: 'Aemon-Targaryen-(Maester-Aemon)' })\\nMATCH (target)-[*1..1]-(c:Character)\\nWHERE c.community > 700\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Journal where name ends with Iz!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name =~'Iz.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to UpdateDate for which update_date is 2009-10-31!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2009-10-31'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve all addresses that are marked as the same as a given address"}, {"role": "assistant", "content": "MATCH (a1:Address {address: 'given address'})-[:same_as]->(a2:Address)\\nRETURN a1, a2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Driver\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Home_city\": \"STRING\",\n \"Party\": \"STRING\",\n \"Driver_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Grade\": \"STRING\",\n \"Type\": \"STRING\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Driver\",\n \"type\": \"ATTENDS\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Driver\",\n \"type\": \"ATTENDS\",\n \"to\": \"School\"\n }\n ],\n \"relationshipProperties\": {\n \"ATTENDS\": {\n \"Years_Working\": \"INTEGER\",\n \"If_full_time\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many drivers are there?"}, {"role": "assistant", "content": "MATCH (d:Driver)\\nRETURN COUNT(d)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to DOI for which doi_id is abce5ed79c520bdb8fd79a61a852648d!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "How many different types of switches are held in rack 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(switch:Switch)\\nRETURN COUNT(DISTINCT switch.ip) AS numberOfSwitchTypes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 businesses that have been reviewed with a mention of 'library'."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'library'\\nRETURN b.name, b.address, b.city, b.state\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated exactly 5 stars by at least one user?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE r.rating = 5.0\\nRETURN DISTINCT m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where title is Notes for a Quantum Index Theorem and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Notes for a Quantum Index Theorem'})-[r:PUBLISHED_IN]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which applications are dependent on the service with name 'java'?"}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})<-[:DEPENDS_ON]-(a:Application)\\nRETURN a.name AS application_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"singer\": {\n \"properties\": {\n \"singer_id\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_year\": \"STRING\",\n \"net_worth_millions\": \"STRING\",\n \"citizenship\": \"STRING\"\n }\n },\n \"song\": {\n \"properties\": {\n \"song_id\": \"STRING\",\n \"title\": \"STRING\",\n \"singer_id\": \"STRING\",\n \"sales\": \"STRING\",\n \"highest_position\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the most common singer citizenship ?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nRETURN singer.Citizenship\\nORDER BY singer.Citizenship DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies that have a character played by a person with gender 1?"}, {"role": "assistant", "content": "MATCH (p:Person {gender: 1})-[:CAST_FOR]->(m:Movie)\\nRETURN m\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies where the main actor is also the director."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch title of the Article that are connected to Journal via PUBLISHED_IN where meta are at most 217!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.meta < '217'}\\nRETURN n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a follower count between 200,000 and 500,000, listing the first 5?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers >= 200000 AND s.followers <= 500000\\nRETURN s\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 most followed users who mention 'neo4j' in their tweets."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u.name, u.followers\\nORDER BY u.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters are in the top 5 for louvain community size?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.louvain AS community, count(c) AS communitySize\\nORDER BY communitySize DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all tweets by 'Neo4j' that mention a user with at least 5000 followers."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:MENTIONS]->(m:User)\\nWHERE m.followers >= 5000\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "How many 'Machine' nodes are there in 'Rack' with 'zone' 2?"}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 2})-[:HOLDS]->(m:Machine)\\nRETURN count(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the update_date from UpdateDate where update_date is not 2016-11-23!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date <> '2016-11-23'\\nRETURN DISTINCT n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which category_id starts with f, skip the first 2 records and return the next 2 records of category_id!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id STARTS WITH 'f'\\nWITH n.category_id AS category_id SKIP 2\\nLIMIT 2\\nRETURN category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "Show all product sizes."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN DISTINCT p.product_size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where article_id is not 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1013'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where description contains Studi!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description CONTAINS 'Studi'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the affiliation from Author where either author_id is d83c43e5b1cf398c4e549843f497694b or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = 'd83c43e5b1cf398c4e549843f497694b' OR n.affiliation IS NOT NULL\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the most number of IMDb votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.imdbVotes\\nORDER BY m.imdbVotes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions have a score greater than 0?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score > 0\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Provide the names of 3 actors who have also directed movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(a)\\nRETURN a.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with an average vote less than 5."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote < 5\\nRETURN m.title, m.average_vote\\nORDER BY m.average_vote\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author for which first_name is A., and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.first_name = 'A.'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with an INTERACTS2 relationship with a weight exactly 92?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2]->(c2:Character)\\nWHERE r.weight = 92\\nRETURN c1.name AS character1, c2.name AS character2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article where title is Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Free Field Construction for the ABF Models in Regime II'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 users who are moderators of more than one stream."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, count(s) AS num_moderated_streams\\nWHERE num_moderated_streams > 1\\nRETURN u.name, u.id\\nORDER BY num_moderated_streams DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Categories for which specifications is math.CA, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'math.CA'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the highest follower count but the lowest total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name, s.followers, s.total_view_count\\nORDER BY s.followers DESC, s.total_view_count ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 orders with the most different products included."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH o, count(DISTINCT p) AS numProducts\\nORDER BY numProducts DESC\\nLIMIT 5\\nRETURN o.orderID, numProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where title is Solutions to congruences using sets with the property of Baire and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Solutions to congruences using sets with the property of Baire'})-[r:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its title and the count of Journal linked via PUBLISHED_IN, and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where last_name is Dunajski and Report, for which report_id equals 3fa3ec8100d88908b00d139dacdedb6a?"}, {"role": "assistant", "content": "MATCH p=(a:Author{last_name:'Dunajski'})-[*]->(d:Report{report_id:'3fa3ec8100d88908b00d139dacdedb6a'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where title is Generating Functional in CFT on Riemann Surfaces II: Homological Aspects and PUBLISHED_IN has pages on 303-348!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '303-348'}]->(m)\\nWHERE n.title='Generating Functional in CFT on Riemann Surfaces II: Homological Aspects'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the highest IMDb rating that is shorter than 90 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 90\\nWITH m\\nORDER BY m.imdbRating DESC\\nLIMIT 1\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"Staff_ID\": \"INTEGER\",\n \"Staff_Details\": \"STRING\"\n }\n },\n \"ClaimsProcessingStage\": {\n \"properties\": {\n \"Next_Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Name\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Description\": \"STRING\"\n }\n },\n \"Policy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"ClaimsDocument\": {\n \"properties\": {\n \"Created_Date\": \"INTEGER\",\n \"Document_Type_Code\": \"STRING\",\n \"Created_by_Staff_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimsProcessing\": {\n \"properties\": {\n \"Claim_Outcome_Code\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\",\n \"Claim_Processing_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimHeader\": {\n \"properties\": {\n \"Amount_Claimed\": \"FLOAT\",\n \"Date_of_Settlement\": \"STRING\",\n \"Claim_Header_ID\": \"INTEGER\",\n \"Amount_Piad\": \"FLOAT\",\n \"Date_of_Claim\": \"STRING\",\n \"Claim_Type_Code\": \"STRING\",\n \"Claim_Status_Code\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of records of each policy type and its type code."}, {"role": "assistant", "content": "MATCH (p:Policy)\\nRETURN p.Policy_Type_Code, COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the intermediaries that have an active status."}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nWHERE i.status = 'ACTIVE'\\nRETURN i.name AS intermediary_name, i.countries AS countries, i.address AS address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"MatchSeason\": {\n \"properties\": {\n \"Draft_Class\": \"STRING\",\n \"Draft_Pick_Number\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Season\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Country\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"College\": \"STRING\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Years_Played\": \"STRING\",\n \"Total_WL\": \"STRING\",\n \"Player\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"Singles_WL\": \"STRING\",\n \"Doubles_WL\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"Official_native_language\": \"STRING\",\n \"Country_name\": \"STRING\",\n \"Capital\": \"STRING\",\n \"Country_id\": \"INTEGER\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Team_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of teams that do no have match season record?"}, {"role": "assistant", "content": "MATCH (t:Team)\\nWHERE NOT (t)-[:PARTICIPATES_IN]-(:MatchSeason)\\nRETURN t.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which production companies have produced both movies and TV shows?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nMATCH (pc)<-[:PRODUCED_BY]-(v:Video)\\nRETURN DISTINCT pc.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Categories with category_id equal to eea477d68b70c3a05be12567240033ef!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Sportsinfo\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"SportName\": \"STRING\",\n \"HoursPerWeek\": \"INTEGER\",\n \"OnScholarship\": \"STRING\",\n \"GamesPlayed\": \"INTEGER\"\n }\n },\n \"PlaysGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"StuID\": \"INTEGER\",\n \"Hours_Played\": \"INTEGER\"\n }\n },\n \"VideoGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"GType\": \"STRING\",\n \"GName\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n }\n ]\n}"}, {"role": "user", "content": "Show all video game types."}, {"role": "assistant", "content": "MATCH (v:VideoGame)\\nRETURN DISTINCT v.GType"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where title is Open sets satisfying systems of congruences and Report, with report_id equal 5049b80a2935f95cc95cf14dbfb8c610, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'Open sets satisfying systems of congruences'})-[*]-(e:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the DOI that is not related to the Author with the first_name A.!"}, {"role": "assistant", "content": "MATCH (n:DOI), (:Author {first_name: 'A.'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of characters who have an INTERACTS relationship with 'Stevron-Frey'."}, {"role": "assistant", "content": "MATCH (c:Character {name: \"Stevron-Frey\"})\\nOPTIONAL MATCH (c)-[:INTERACTS]-(other)\\nRETURN DISTINCT other.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify officers connected to entities with a jurisdiction description of 'Samoa'."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Entity)\\nWHERE e.jurisdiction_description = 'Samoa'\\nRETURN o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Journal where name is Math. Ann?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Ann'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all customers who have placed orders with a required date in 1998."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE o.requiredDate STARTS WITH '1998'\\nRETURN c.companyName AS customerName, c.contactName AS contactName, c.customerID AS customerID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Topic for which description is Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{description:'Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Apartment\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"bathroom_count\": \"INTEGER\",\n \"apt_number\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"apt_type_code\": \"STRING\",\n \"bedroom_count\": \"INTEGER\",\n \"room_count\": \"STRING\"\n }\n },\n \"Guest\": {\n \"properties\": {\n \"gender_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"date_of_birth\": \"STRING\",\n \"guest_first_name\": \"STRING\",\n \"guest_last_name\": \"STRING\"\n }\n },\n \"ApartmentBooking\": {\n \"properties\": {\n \"booking_end_date\": \"STRING\",\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"booking_start_date\": \"STRING\"\n }\n },\n \"ApartmentFacility\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"facility_code\": \"STRING\"\n }\n },\n \"ApartmentBuilding\": {\n \"properties\": {\n \"building_full_name\": \"STRING\",\n \"building_short_name\": \"STRING\",\n \"building_manager\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"building_description\": \"STRING\",\n \"building_phone\": \"STRING\",\n \"building_address\": \"STRING\"\n }\n },\n \"ViewUnitStatu\": {\n \"properties\": {\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"available_yn\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n },\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n }\n ]\n}"}, {"role": "user", "content": "How many apartments do not have any facility?"}, {"role": "assistant", "content": "MATCH (a:Apartment)\\nWHERE NOT (:ApartmentFacility)-[:IS_LOCATED_IN]->(a)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 video titles that have been produced by 'Pixar Animation Studios'."}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nRETURN v.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the `name`s of the entities that are connected to filings with a `number` greater than 10 through the `BENEFITS` relationship."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.number > 10\\nMATCH (f)-[:BENEFITS]->(e:Entity)\\nRETURN DISTINCT e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 packages that provide the longest duration of access to movies."}, {"role": "assistant", "content": "MATCH (p:Package)-[:PROVIDES_ACCESS_TO]->(:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN p.name, p.duration\\nORDER BY p.duration DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 VIPs in streams with a total view count exceeding 10 million?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE s.total_view_count > 10000000\\nRETURN u.name AS vip_name\\nORDER BY s.total_view_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 streams by total view count that also have a team?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(:Team)\\nWHERE s.total_view_count IS NOT NULL\\nRETURN s\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most viewed games by streams that have a team?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE exists{(s)-[:HAS_TEAM]->(:Team)}\\nRETURN g.name AS Game, sum(s.total_view_count) AS TotalViews\\nORDER BY TotalViews DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have abstract: The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where name is log-balanced and traversing through Topic with label Dynamical Systems_10!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'log-balanced'})-[*]->(d:Topic{label:'Dynamical Systems_10'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have the most moderator relationships with other users?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:MODERATOR]->(otherUser:User)\\nRETURN u.name AS user, count(r) AS num_moderator_relationships\\nORDER BY num_moderator_relationships DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the people born in the 1960s who have directed a movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(:Movie)\\nWHERE p.born >= 1960 AND p.born < 1970\\nRETURN p.name AS director, p.born AS birthYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies by budget size?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget IS NOT NULL\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business reviewed by Jenny has the lowest star rating?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS business, r.stars AS rating\\nORDER BY r.stars ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 5 filings with the most entities involved as concerns from different sectors."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWITH f, COUNT(DISTINCT e) AS entityCount\\nORDER BY entityCount DESC\\nLIMIT 5\\nMATCH (f)-[:CONCERNS]->(e:Entity)\\nRETURN f.sar_id AS FilingID, f.begin AS BeginDate, f.end AS EndDate, f.amount AS Amount, COLLECT(e.name) AS ConcernedEntities"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Author where last_name is Leoni, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Leoni'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the title for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.title AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "\"How long is the longest thread of replies?\""}, {"role": "assistant", "content": "MATCH p=(t:Tweet)-[:REPLY_TO*]->(:Tweet)\\nRETURN length(p) AS longestThread\\nORDER BY longestThread DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the cluster for Topic combined with the label for Topic!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.cluster AS Records\\nUNION ALL\\nMATCH (m:Topic)\\nRETURN m.label AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where category_id is 33657234da1dc070ea09e7c31bb86abb and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with title equal to Hyper-K{\\\"a}hler Hierarchies and their twistor theory, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List streams that have a total view count greater than 500 million."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count > 500000000\\nRETURN s.name, s.url, s.total_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total revenue generated by movies in the \"Adventure\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Adventure'})\\nRETURN sum(m.revenue) AS totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where affiliation is unspecified and traversing through Keyword with name tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water-!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[*]->(d:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the tagline of the movie released in 1999?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released = 1999\\nRETURN m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the cluster from Topic where cluster is not 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster <> '7'\\nRETURN DISTINCT n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of businesses that have received a review from 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN DISTINCT b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where meta is 248 and retrieve the title of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '248'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What are the characters involved in the top 3 heaviest INTERACTS45 relationships?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS45]->(c2:Character)\\nRETURN c1.name AS Character1, c2.name AS Character2, r.weight AS Weight\\nORDER BY r.weight DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Journal where name is Geom. Topol and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten Journal that have journal_id and return their records!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id IS NOT NULL\\nRETURN n.journal_id\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Keyword for which name is uncountably many different asymptotic growth rates, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'uncountably many different asymptotic growth rates'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with title equal to Fast matrix multiplication is stable, passing through Categories via HAS_CATEGORY?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Fast matrix multiplication is stable'})-[:HAS_CATEGORY]->(c:Categories)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the author_id for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.author_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Report where report_no is Swansea preprint 99-14, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Swansea preprint 99-14'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the comments from Article where either title is $A_{\\infty}$-structures on an elliptic curve or comments is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = '$A_{\\infty}$-structures on an elliptic curve' OR n.comments IS NOT NULL\\nRETURN DISTINCT n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Journal where name is Math. Nachr and Author, for which first_name equals S. O.?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{name:'Math. Nachr'})-[*]->(d:Author{first_name:'S. O.'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find UpdateDate such that update_date is 2011-11-10!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = date('2011-11-10')\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Keyword for which name is population dynamics, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'population dynamics'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the abstract of the Article and the category_id for Categories!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Categories)\\nRETURN n.abstract, m.category_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 users by the number of movies they have rated."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, count(r) AS numRatings\\nORDER BY numRatings DESC\\nLIMIT 5\\nRETURN u.name AS user, numRatings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the last_name from Author where either last_name is Chakrabarti or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Chakrabarti' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List top 5 actors by number of movies acted in."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS numMovies\\nORDER BY numMovies DESC\\nLIMIT 5\\nRETURN p.name AS actor, numMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Article where title is Subexponential groups in 4-manifold topology and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.title = 'Subexponential groups in 4-manifold topology'\\nRETURN properties(b) AS Article_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where name is uncountably many different asymptotic growth rates and Keyword, for which name is layer-by-layer growth?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'uncountably many different asymptotic growth rates'}), (b:Keyword{name:'layer-by-layer growth'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the last_name and the affiliation for those Author where last_name starts with K!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name STARTS WITH 'K'\\nRETURN n.last_name AS last_name, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where cluster is 8 and share a common property with Article, for which title equals The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'8'})-[r]->(n), (d:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Report where report_id is dd0a54fea06e7b7a384741aac9313d65 and Article, for which article_id equals 1048?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})-[*]->(d:Article{article_id:'1048'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the article_id of the Article that is not related to the Author with the first_name R.!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {first_name: 'R.'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the maximum `weight` of the `INTERACTS45` relationship between characters with a `louvain` value of 0?"}, {"role": "assistant", "content": "MATCH (source:Character)-[r:INTERACTS45]->(target:Character)\\nWHERE source.louvain = 0 AND target.louvain = 0\\nWITH r.weight AS weight\\nRETURN max(weight)"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "\"Who is related to John Snow?\""}, {"role": "assistant", "content": "MATCH (c1:Character {name: \"John Snow\"})-[:INTERACTS|:INTERACTS1|:INTERACTS2|:INTERACTS3|:INTERACTS45]-(c2:Character)\\nRETURN c2.name AS RelatedCharacter"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its abstract and the count of Journal linked via PUBLISHED_IN where pages is not '293-299', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '293-299'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find the 3 users with the lowest reputation who have asked questions."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(:Question)\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 users by image link?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.image IS NOT NULL\\nRETURN u.image, u.display_name, u.reputation\\nORDER BY u.reputation DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the affiliation of the Author and the report_no for Report!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Report)\\nRETURN n.affiliation, m.report_no\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies that were released in the month of December."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE date(m.release_date).month = 12\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the VIP users in streams that have over 1000000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE s.followers > 1000000\\nRETURN u.name AS vip_user, s.name AS stream"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 orders with the highest freight cost."}, {"role": "assistant", "content": "MATCH (o:Order)\\nRETURN o\\nORDER BY o.freight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 products by quantity ordered in the 'Condiments' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Condiments'})<-[:PART_OF]-(p:Product)<-[:ORDERS]-(o:Order)\\nRETURN p.productName, SUM(o.quantity) AS totalQuantity\\nORDER BY totalQuantity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 people who have directed and written the same movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:WROTE]-(p)\\nRETURN p.name AS person\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from DOI with name equal to 10.1142/S0219061301000077!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1142/S0219061301000077'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 users who have written reviews for 'Imagine Nation Brewing'."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {name: 'Imagine Nation Brewing'})\\nWITH u, count(r) AS reviewsCount\\nORDER BY reviewsCount DESC\\nLIMIT 3\\nRETURN u.name, reviewsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Keyword where name is exponentially growing?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'exponentially growing'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where meta is 248 and retrieve the comments of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '248'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Name the languages spoken in streams with a total view count exceeding 10 million."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 10000000\\nRETURN DISTINCT l.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the actors born in France."}, {"role": "assistant", "content": "MATCH (a:Actor {bornIn: \"France\"})\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"customer_code\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"staff_gender\": \"STRING\",\n \"staff_name\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"DepartmentStore\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"store_phone\": \"STRING\",\n \"store_name\": \"STRING\",\n \"store_email\": \"STRING\",\n \"store_address\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"supplier_id\": \"INTEGER\",\n \"supplier_name\": \"STRING\",\n \"supplier_phone\": \"STRING\"\n }\n },\n \"DepartmentStoreChain\": {\n \"properties\": {\n \"dept_store_chain_name\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"department_id\": \"INTEGER\",\n \"department_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_AT\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"SUPPLIES\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"MANAGES\": {\n \"date_assigned_to\": \"STRING\",\n \"job_title_code\": \"STRING\",\n \"date_assigned_from\": \"STRING\"\n },\n \"SUPPLIED_BY\": {\n \"total_value_purchased\": \"FLOAT\",\n \"date_supplied_from\": \"STRING\",\n \"total_amount_purchased\": \"STRING\",\n \"date_supplied_to\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the hardware product with the greatest price?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.product_type_code = 'Hardware'\\nRETURN p.product_name\\nORDER BY p.product_price DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with a released year before 1985."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released < 1985\\nRETURN m.title, m.released\\nORDER BY m.released\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the category_id and the specifications for those Categories where category_id starts with 4!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id STARTS WITH '4'\\nRETURN n.category_id AS category_id, n.specifications AS specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the business addresses and their user reviews in 'Burlingame'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)<-[:WROTE]-(u:User)\\nWHERE b.city = 'Burlingame'\\nRETURN b.address, r.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which officers have a 'icij_id' property that starts with 'CFE' and are 'officer_of' entities with a 'jurisdiction' of 'NIUE'?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[r:officer_of]->(e:Entity)\\nWHERE o.icij_id STARTS WITH 'CFE' AND e.jurisdiction = 'NIUE'\\nRETURN o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the languages available for the movie 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nRETURN l.name AS language"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 521-554, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='521-554'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 1008 and PUBLISHED_IN has pages on 641-672!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '641-672'}]->(m)\\nWHERE n.article_id='1008'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 3 oldest movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.released ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Author for which last_name is Keller!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Keller'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Author where last_name is Polishchuk, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Polishchuk'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the affiliation from Author where last_name is not Chakrabarti!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name <> 'Chakrabarti'\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 directors have directed the most movies with a budget over 200 million USD?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.budget > 200000000\\nWITH d, count(m) AS moviesDirected\\nORDER BY moviesDirected DESC\\nLIMIT 3\\nRETURN d.name, moviesDirected"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Report for which report_no is ITF-99-42!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'ITF-99-42'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where title is An adelic causality problem related to abelian L-functions and traversing through Article with comments 16 pages To be published in Journal of Geometry and Physics!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'An adelic causality problem related to abelian L-functions'})-[*]->(d:Article{comments:'16 pages To be published in Journal of Geometry and Physics'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the longest name among all actors?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(:Movie)\\nRETURN p.name AS name\\nORDER BY size(p.name) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the report_no from Report where report_no is not none provided!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no <> 'none provided'\\nRETURN DISTINCT n.report_no AS report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three users have rated movies in the most number of different genres?"}, {"role": "assistant", "content": "MATCH (u:User)-[:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH u, COUNT(DISTINCT g) AS genreCount\\nORDER BY genreCount DESC\\nLIMIT 3\\nRETURN u, genreCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 questions with a createdAt date exactly on January 1, 2020."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE date(q.createdAt) = date('2020-01-01')\\nRETURN q\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which abstract is The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the maximum `weight` of INTERACTS relationships involving characters with `louvain` value of 1?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE c1.louvain = 1 AND c2.louvain = 1\\nRETURN max(r.weight)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Linear Algebra_1 and DOI, with name equal 10.1142/S0219061301000077, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Linear Algebra_1'})-[*]-(e:DOI{name:'10.1142/S0219061301000077'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 actors by the number of different movies acted in?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(DISTINCT m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN p.name AS actor, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 genres that have the most movies?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS Genre, count(m) AS MovieCount\\nORDER BY MovieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"course\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"staring_date\": \"STRING\",\n \"course\": \"STRING\"\n }\n },\n \"teacher\": {\n \"properties\": {\n \"teacher_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"hometown\": \"STRING\"\n }\n },\n \"course_arrange\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"teacher_id\": \"STRING\",\n \"grade\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the hometown of the youngest teacher?"}, {"role": "assistant", "content": "MATCH (teacher:teacher)\\nRETURN teacher.Hometown\\nORDER BY teacher.Age ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the three most commonly used hashtags in tweets?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS hashtag, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average score of questions tagged with 'react-apollo'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'react-apollo'})\\nWITH avg(q.score) AS average_score\\nRETURN average_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Report where report_id is d4a4409b7e8a77f4894c998a04162257?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Article for which the abstract is missing!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract IS NULL\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find article_id of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 263-281!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '263-281'\\nRETURN n.article_id AS article_id, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which people have reviewed a movie with the words \"solid romp\" in the summary?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary CONTAINS 'A solid romp'\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to DOI where doi_id is 3cee0a24d271bd40a0fb03d70f70dcc7 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '3cee0a24d271bd40a0fb03d70f70dcc7'\\nRETURN properties(b) AS DOI_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a key_id which begins with k, and is linked to Article via HAS_KEY relationship, where Article has abstract In this paper we study the smallest Mealy automaton of intermediate growth,\nfirst considered by the last two authors. We describe the automatic\ntransformation monoid it defines, give a formula for the generating series for\nits (ball volume) growth function, and give sharp asymptotics for its growth\nfunction, namely [ F(n) \\sim 2^{5/2} 3^{3/4} \\pi^{-2} n^{1/4}\n\\exp{\\pi\\sqrt{n/6}} ] with the ratios of left- to right-hand side tending to 1\nas $n \\to \\infty$.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' In this paper we study the smallest Mealy automaton of intermediate growth, first considered by the last two authors. We describe the automatic transformation monoid it defines, give a formula for the generating series for its (ball volume) growth function, and give sharp asymptotics for its growth function, namely [ F(n) \\sim 2^{5/2} 3^{3/4} \\pi^{-2} n^{1/4} \\exp{\\pi\\sqrt{n/6}} ] with the ratios of left- to right-hand side tending to 1 as $n \\to \\infty$. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where affiliation is unspecified and traversing through Author with affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[*]->(d:Author{affiliation:'unspecified'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 languages in which movies are made based on the 'languages' property of movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.languages IS NOT NULL\\nUNWIND m.languages AS language\\nRETURN language, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Author with last_name equal to Neeman!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Neeman'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {}\n },\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Author and DOI?"}, {"role": "assistant", "content": "MATCH (a:Author)-[r]->(n), (d:DOI)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Enzyme\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Product\": \"STRING\",\n \"name\": \"STRING\",\n \"Chromosome\": \"STRING\",\n \"Location\": \"STRING\",\n \"Porphyria\": \"STRING\",\n \"OMIM\": \"INTEGER\"\n }\n },\n \"Medicine\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Trade_Name\": \"STRING\",\n \"FDA_approved\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n },\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n }\n ],\n \"relationshipProperties\": {\n \"INTERACTS_WITH\": {\n \"interaction_type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many distinct FDA approval statuses are there for the medicines?"}, {"role": "assistant", "content": "MATCH (m:Medicine)-[:INTERACTS_WITH]->(e:Enzyme)\\nRETURN count(distinct m.FDA_approved) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which first_name is J. Daniel, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'J. Daniel'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 videos with the least revenue."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.revenue IS NOT NULL\\nRETURN v.title, v.revenue\\nORDER BY v.revenue ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have the most number of movies with a rating greater than 8.0?"}, {"role": "assistant", "content": "MATCH (p:Person {gender: 2})-[:CREW_FOR {job: 'Director'}]-(m:Movie)\\nWHERE m.average_vote > 8.0\\nWITH p, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN p.name, movieCount\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the runtime of the movie with the highest average vote?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.runtime, m.average_vote\\nORDER BY m.average_vote DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all applications that are running on machines that are located in a rack with a zone of 2."}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 2})-[:HOLDS]->(m:Machine)-[:RUNS]->(a:Application)\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"VotingRecord\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Vice_President_Vote\": \"INTEGER\",\n \"Class_Senator_Vote\": \"INTEGER\",\n \"Class_President_Vote\": \"INTEGER\",\n \"President_Vote\": \"INTEGER\",\n \"Treasurer_Vote\": \"INTEGER\",\n \"Secretary_Vote\": \"INTEGER\",\n \"Election_Cycle\": \"STRING\",\n \"Registration_Date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n }\n ]\n}"}, {"role": "user", "content": "How many students does each advisor have?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Advisor, COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where abstract is Using a contraction procedure, we construct a twist operator that satisfies a\nshifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2))\nalgebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a\nGervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a\nclass of representations, the dynamical Yang-Baxter equation may be expressed\nas a compatibility condition for the algebra of the Lax operators.\n and Author, with first_name equal A., including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{abstract:' Using a contraction procedure, we construct a twist operator that satisfies a shifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a Gervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a class of representations, the dynamical Yang-Baxter equation may be expressed as a compatibility condition for the algebra of the Lax operators. '})-[*]-(e:Author{first_name:'A.'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams with the most chatters who are users."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWITH s, count(u) AS userChatters\\nORDER BY userChatters DESC\\nLIMIT 5\\nRETURN s.id AS StreamID, s.name AS StreamName, userChatters"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List all the genres associated with the movie 'Toy Story'."}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name AS genre"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies released between 1990 and 2000 with an average vote greater than 7."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date >= date('1990-01-01') AND m.release_date <= date('2000-12-31') AND m.average_vote > 7\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most significant number of languages spoken?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH m, count(l) AS languageCount\\nORDER BY languageCount DESC\\nLIMIT 5\\nRETURN m.title AS movie, languageCount AS spokenLanguages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from DOI with name equal to 10.1007/s00220-004-1078-7!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.name = '10.1007/s00220-004-1078-7'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify characters who belong to community 579."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 579\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most frequently spoken languages in videos?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nRETURN l.name AS Language, count(v) AS VideoCount\\nORDER BY VideoCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Author with last_name equal to Leoni!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Leoni'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article where title contains An ad!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title CONTAINS 'An ad'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all the reviews with a star rating below 3.5."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars < 3.5\\nRETURN u.name AS UserName, r.text AS ReviewText, r.stars AS StarRating, b.name AS BusinessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average release year of movies reviewed with a rating above 80?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 80\\nRETURN AVG(m.released) AS averageReleaseYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of movies in the \"Drama\" genre?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Drama'})<-[:IN_GENRE]-(m:Movie)\\nWITH avg(m.runtime) AS average_runtime\\nRETURN average_runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 orders shipped to France."}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France'\\nRETURN o.orderID, o.shipName, o.shipCity, o.shipPostalCode, o.shipAddress, o.shipCountry, o.shippedDate\\nORDER BY o.shippedDate\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies directed by a person born in France?"}, {"role": "assistant", "content": "MATCH (d:Director {bornIn: 'France'})-[:DIRECTED]->(m:Movie)\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have been directed by actors."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:DIRECTED]->(m:Movie)\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Journal via PUBLISHED_IN and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the order IDs for orders containing products from more than three different categories?"}, {"role": "assistant", "content": "MATCH (o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH o.orderID AS orderID, COUNT(DISTINCT c.categoryID) AS categoryCount\\nWHERE categoryCount > 3\\nRETURN orderID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the product that has the lowest ratio of units on order to reorder level."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel <> 0\\nWITH p, (toFloat(p.unitsOnOrder) / toFloat(p.reorderLevel)) AS ratio\\nORDER BY ratio ASC\\nLIMIT 1\\nRETURN p, ratio"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the abstract from Article where either abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n or abstract is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract = ' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. ' OR n.abstract IS NOT NULL\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the category_id for Categories that is linked through a HAS_CATEGORY relationship with the Article where title is Fast linear algebra is stable!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.title='Fast linear algebra is stable'\\nRETURN m.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which customers (show `customerID` and `companyName`) have placed orders that include the product with the lowest `reorderLevel`?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWITH p, min(p.reorderLevel) AS lowestReorderLevel\\nWHERE p.reorderLevel = lowestReorderLevel\\nMATCH (p)<-[:ORDERS]-(o:Order)<-[:PURCHASED]-(c:Customer)\\nRETURN DISTINCT c.customerID, c.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average total view count of streams that have a language \"en\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nWITH avg(s.total_view_count) AS average_view_count\\nRETURN average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date of the review with the lowest star rating for 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})<-[:REVIEWS]-(r:Review)\\nWITH r\\nORDER BY r.stars ASC\\nRETURN r.date\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 2 or cluster is less than 7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 2 OR n.cluster < 7\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Volume\": {\n \"properties\": {\n \"Song\": \"STRING\",\n \"Volume_Issue\": \"STRING\",\n \"Weeks_on_Top\": \"FLOAT\",\n \"Artist_ID\": \"INTEGER\",\n \"Issue_Date\": \"STRING\",\n \"Volume_ID\": \"INTEGER\"\n }\n },\n \"MusicFestival\": {\n \"properties\": {\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Date_of_ceremony\": \"STRING\",\n \"Volume\": \"INTEGER\",\n \"Music_Festival\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Famous_Title\": \"STRING\",\n \"Famous_Release_date\": \"STRING\",\n \"Artist_ID\": \"INTEGER\",\n \"Artist\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "How many distinct artists do the volumes associate to?"}, {"role": "assistant", "content": "MATCH (v:Volume)\\nRETURN COUNT(DISTINCT v.Artist_ID)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 2 or cluster is less than 9!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 2 OR n.cluster < 9\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the start times of all processes running on machines in zone 2."}, {"role": "assistant", "content": "MATCH (z:Zone {zone: 2})-[:ROUTES]->(:Interface)<-[:ROUTES]-(:Switch)<-[:HOLDS]-(r:Rack {zone: 2})-[:HOLDS]->(m:Machine)-[:RUNS]->(p:Process)\\nRETURN p.startTime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 5 businesses that have a category of 'Brewery'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Brewery'})\\nRETURN b.name, b.address, b.city, b.state, b.businessId\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 videos have a poster path ending with 'jpg'?"}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.poster_path ENDS WITH 'jpg'\\nRETURN v.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 streams that play a game and have a VIP who is a user."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game), (s)-[:VIP]->(u:User)\\nRETURN s, u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the title from Article where abstract is not We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract <> ' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '\\nRETURN DISTINCT n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 tweets by 'Neo4j' that retweet another user's tweets."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:RETWEETS]->(retweeted:Tweet)\\nRETURN t.text, t.created_at\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Room\": {\n \"properties\": {\n \"decor\": \"STRING\",\n \"beds\": \"INTEGER\",\n \"RoomId\": \"STRING\",\n \"roomName\": \"STRING\",\n \"bedType\": \"STRING\",\n \"maxOccupancy\": \"INTEGER\",\n \"basePrice\": \"INTEGER\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"CheckIn\": \"STRING\",\n \"Room\": \"STRING\",\n \"Kids\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"CheckOut\": \"STRING\",\n \"Adults\": \"INTEGER\",\n \"LastName\": \"STRING\",\n \"Code\": \"INTEGER\",\n \"Rate\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name and id of the top 3 expensive rooms."}, {"role": "assistant", "content": "MATCH (r:Room)\\nRETURN r.RoomId, r.roomName\\nORDER BY r.basePrice DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 languages used by streams that have more than 10,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.followers > 10000\\nRETURN DISTINCT l.name\\nORDER BY l.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "How many different types of transactions are there?"}, {"role": "assistant", "content": "MATCH (f:FinancialTransaction)\\nRETURN count(DISTINCT f.transaction_type)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 movies directed by Pixar Animation Studios."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: \"Pixar Animation Studios\"})\\nRETURN m.title AS MovieTitle\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which label is Optical Imaging and Signal Processing_11, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Optical Imaging and Signal Processing_11'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies that have an overview."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.overview <> \"\"\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 applications with a PID less than 2000."}, {"role": "assistant", "content": "MATCH (a:Application)\\nWHERE a.pid < 2000\\nRETURN a\\nORDER BY a.pid\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of followers for users who have posted tweets that mention the user with screen name \"neo4j\"?"}, {"role": "assistant", "content": "MATCH (targetUser:User {screen_name: 'neo4j'}) <-[:MENTIONS]-(tweet:Tweet) <-[:POSTS]-(user:User)\\nWITH avg(user.followers) AS averageFollowers\\nRETURN averageFollowers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the title and the abstract for those Article where title starts with M!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH 'M'\\nRETURN n.title AS title, n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers supply products to more than one category?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, collect(DISTINCT c.categoryID) AS categories\\nWHERE size(categories) > 1\\nRETURN s.companyName AS Supplier, size(categories) AS NumberOfCategories"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List all services listening on port 80."}, {"role": "assistant", "content": "MATCH (s:Service)-[:LISTENS]->(p:Port {port: 80})\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all movies that were produced in a country other than the United States."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE c.name <> \"United States of America\"\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have produced movies in more than 3 different languages?"}, {"role": "assistant", "content": "MATCH (c:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWITH c, count(distinct l) AS numLangs\\nWHERE numLangs > 3\\nRETURN c.name, numLangs\\nORDER BY numLangs DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"gender_mf\": \"STRING\",\n \"coupon_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"good_or_bad_customer\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_last_hire\": \"STRING\"\n }\n },\n \"DiscountCoupon\": {\n \"properties\": {\n \"coupon_id\": \"INTEGER\",\n \"coupon_amount\": \"INTEGER\",\n \"date_issued\": \"STRING\"\n }\n },\n \"ViewProductAvailability\": {\n \"properties\": {\n \"booking_id\": \"INTEGER\",\n \"available_yn\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n },\n \"Booking\": {\n \"properties\": {\n \"amount_payable\": \"FLOAT\",\n \"booking_end_date\": \"STRING\",\n \"count_hired\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"booking_start_date\": \"STRING\",\n \"amount_of_discount\": \"FLOAT\",\n \"amount_outstanding\": \"FLOAT\",\n \"amount_of_refund\": \"FLOAT\",\n \"customer_id\": \"INTEGER\",\n \"returned_damaged_yn\": \"STRING\"\n }\n },\n \"ProductsForHire\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\",\n \"product_description\": \"STRING\",\n \"daily_hire_cost\": \"FLOAT\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount_paid\": \"FLOAT\",\n \"payment_type_code\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"amount_paid_in_full_yn\": \"STRING\",\n \"payment_id\": \"INTEGER\",\n \"amount_due\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n }\n ],\n \"relationshipProperties\": {\n \"RENTED_BY\": {\n \"returned_yn\": \"STRING\",\n \"booked_amount\": \"FLOAT\",\n \"returned_late_yn\": \"STRING\",\n \"booked_count\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?"}, {"role": "assistant", "content": "MATCH (p:ProductsForHire)\\nWHERE p.product_type_code = 'Cutlery' AND p.daily_hire_cost < 20\\nRETURN p.product_name, p.product_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the affiliation for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1063 or article_id is less than 1069!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1063 OR n.article_id < 1069\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"who is the youngest director to direct a movie\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nRETURN p.name AS Director, p.born AS YearBorn\\nORDER BY p.born DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 types of machines located in DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Rack)-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN t.type\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the original addresses associated with the sourceID 'Panama Papers'."}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.sourceID = 'Panama Papers' AND a.original_address IS NOT NULL\\nRETURN a.original_address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the article_id for Article combined with the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.article_id AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Report for which report_id is 45009bf7f2e3f4f275de6d92deab7b27, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the cluster from Topic where description is not Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description <> 'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'\\nRETURN DISTINCT n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What product is a variant of the 'Lorenzo'?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Lorenzo'\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 products with the lowest reorder level."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.productName, p.reorderLevel\\nORDER BY p.reorderLevel ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 entities have filed the most number of filings concerning banks in 'Australia'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:CONCERNS]->(bank:Entity)\\nWHERE exists { (bank)-[:COUNTRY]->(:Country {name: 'Australia'}) }\\nRETURN e.name, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have been ordered by customers from Berlin?"}, {"role": "assistant", "content": "MATCH (c:Customer {city: \"Berlin\"})-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nRETURN DISTINCT p.productName AS ProductOrdered"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 1008 and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1008'})-[r:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List characters whose fastrf_embedding tenth element is less than -0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[9] < -0.5\\nRETURN c.name, c.fastrf_embedding"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tags are associated with questions that have a createdAt date earlier than 2018?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.createdAt < datetime('2018-01-01T00:00:00Z')\\nRETURN t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that were both acted in and directed by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title AS MovieTitle, p.name AS PersonName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Pilot\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Pilot_name\": \"STRING\",\n \"Rank\": \"INTEGER\",\n \"Position\": \"STRING\",\n \"Pilot_ID\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Join_Year\": \"INTEGER\",\n \"Nationality\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"Manufacturer\": \"STRING\",\n \"Fuel_Propulsion\": \"STRING\",\n \"Model\": \"STRING\",\n \"Fleet_Series\": \"STRING\",\n \"Powertrain\": \"STRING\",\n \"Aircraft_ID\": \"INTEGER\",\n \"Order_Year\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"Pilot\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"Pilot\"\n }\n ],\n \"relationshipProperties\": {\n \"OPERATED_BY\": {\n \"Record_ID\": \"INTEGER\",\n \"Date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the most common nationality of pilots."}, {"role": "assistant", "content": "MATCH (p:Pilot)\\nWITH p.Nationality AS Nationality, COUNT(p) as count\\nORDER BY count DESC\\nRETURN Nationality\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is The aim of this paper is to justify the common cryptographic practice of\nselecting elliptic curves using their order as the primary criterion. We can\nformalize this issue by asking whether the discrete log problem (DLOG) has the\nsame difficulty for all curves over a given finite field with the same order.\nWe prove that this is essentially true by showing polynomial time random\nreducibility of DLOG among such curves, assuming the Generalized Riemann\nHypothesis (GRH). We do so by constructing certain expander graphs, similar to\nRamanujan graphs, with elliptic curves as nodes and low degree isogenies as\nedges.\n The result is obtained from the rapid mixing of random walks on this graph.\nOur proof works only for curves with (nearly) the same endomorphism rings.\nWithout this technical restriction such a DLOG equivalence might be false;\nhowever, in practice the restriction may be moot, because all known polynomial\ntime techniques for constructing equal order curves produce only curves with\nnearly equal endomorphism rings.\n and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' The aim of this paper is to justify the common cryptographic practice of selecting elliptic curves using their order as the primary criterion. We can formalize this issue by asking whether the discrete log problem (DLOG) has the same difficulty for all curves over a given finite field with the same order. We prove that this is essentially true by showing polynomial time random reducibility of DLOG among such curves, assuming the Generalized Riemann Hypothesis (GRH). We do so by constructing certain expander graphs, similar to Ramanujan graphs, with elliptic curves as nodes and low degree isogenies as edges. The result is obtained from the rapid mixing of random walks on this graph. Our proof works only for curves with (nearly) the same endomorphism rings. Without this technical restriction such a DLOG equivalence might be false; however, in practice the restriction may be moot, because all known polynomial time techniques for constructing equal order curves produce only curves with nearly equal endomorphism rings. '})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 filings concerning entities that are located at a latitude higher than 40 degrees?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.location.latitude > 40\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have the most movies released in the 2000s?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.year >= 2000 AND m.year < 2010\\nWITH d, count(m) AS numMovies\\nORDER BY numMovies DESC\\nLIMIT 5\\nRETURN d.name AS director, numMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions tagged with 'aws-lambda' that have a negative score."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWHERE q.score < 0\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Keyword where key_id ends with d8!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id =~'d8.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have acted in movies directed by the person who directed 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie {title: 'Speed Racer'})\\nWITH d\\nMATCH (d)-[:DIRECTED]->(movie:Movie)<-[:ACTED_IN]-(actor:Person)\\nRETURN DISTINCT actor.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which versions of the software \"RHEL\" are there?"}, {"role": "assistant", "content": "MATCH (software:Software {name: 'RHEL'})-[:VERSION]->(version:Version)\\nRETURN version.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Author where author_id is 700c655b31f9b9275ba10a9875c15332, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Report where report_id is 5049b80a2935f95cc95cf14dbfb8c610 and traversing through Journal with name Math. Ann!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})-[*]->(d:Journal{name:'Math. Ann'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the entities that have undergone liquidation as per their notes."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.note = 'Closed date stands for Liquidation date.'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: 19 pages, AMSLatex, references added and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '19 pages, AMSLatex, references added'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 5 businesses located on 'Pine St' in any city."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.address CONTAINS 'Pine St'\\nRETURN b\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which last_name is Keller!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Keller'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 businesses with the lowest average stars rating."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWITH b, AVG(r.stars) AS avg_stars\\nORDER BY avg_stars ASC\\nLIMIT 5\\nRETURN b.name, avg_stars"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 keywords associated with the movie 'Toy Story'."}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN k.name\\nORDER BY k.id\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which abstract starts with H!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract STARTS WITH ' H'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "How many invoices do we have?"}, {"role": "assistant", "content": "MATCH (i:Invoice)\\nRETURN count(i)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which affiliation is Nice - Sophia Antipolis!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user asked the question with the lowest number of favorites?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH min(q.favorites) AS min_favorites\\nMATCH (q:Question {favorites: min_favorites})\\nMATCH (u:User)-[:ASKED]->(q)\\nRETURN u.display_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a total view count greater than 10,000,000 and are played in English?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 10000000 AND l.name = \"en\"\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the highest average vote and released after 2010?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date > date('2010-01-01')\\nRETURN m.title AS movie_title, m.average_vote AS average_vote\\nORDER BY average_vote DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 orders placed in the year 1996?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.orderDate STARTS WITH '1996'\\nRETURN o\\nORDER BY o.orderDate\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find officers linked to entities that were incorporated in 2007 and are still active."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:officer_of]-(o:Officer)\\nWHERE e.incorporation_date CONTAINS '2007' AND e.status = 'Active'\\nRETURN o.name AS officer_name, e.name AS entity_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 18 pages, latex2e with amsfonts. Final version, accepted for\n publication and Keyword, with name equal exponentially growing, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'18 pages, latex2e with amsfonts. Final version, accepted for publication'})-[*]-(e:Keyword{name:'exponentially growing'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What genres have more than ten movies associated with them?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(m) AS movieCount\\nWHERE movieCount > 10\\nRETURN g.name, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with the lowest book45PageRank?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank IS NOT NULL\\nRETURN c.name, c.book45PageRank\\nORDER BY c.book45PageRank\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 users who have a color attribute of '#4A708B' and size greater than 2.5."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.color = '#4A708B' AND u.size > 2.5\\nRETURN u\\nORDER BY u.size DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most complex taglines?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline IS NOT NULL\\nRETURN m.title, m.tagline\\nORDER BY size(split(m.tagline, ' ')) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the most significant difference between budget and revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget IS NOT NULL AND m.revenue IS NOT NULL\\nRETURN m.title, m.budget, m.revenue, (m.revenue - m.budget) AS profit_difference\\nORDER BY profit_difference DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 entities with the highest number of filings where they are the beneficiary."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWITH e, count(f) AS filingCount\\nORDER BY filingCount DESC\\nLIMIT 5\\nRETURN e.name AS entityName, filingCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either name is 10.1142/S0219061301000107 or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1142/S0219061301000107' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which last_name is Leoni!"}, {"role": "assistant", "content": "MATCH (n:Author {last_name:'Leoni'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 beneficiary banks by the total amount received from filings."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWITH e.name AS beneficiary_bank, SUM(f.amount) AS total_amount\\nRETURN beneficiary_bank, total_amount\\nORDER BY total_amount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average length of the review text for each user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, size(r.text) AS reviewLength\\nWITH u, avg(reviewLength) AS averageReviewLength\\nRETURN u.name AS userName, averageReviewLength"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 languages are most commonly spoken in movies with an average vote below 4?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.average_vote < 4\\nRETURN l.name AS language, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have questions with the highest average downVotes?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, AVG(q.downVotes) AS avgDownVotes\\nORDER BY avgDownVotes DESC\\nLIMIT 3\\nRETURN u.display_name, avgDownVotes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Geometrical Tools for Quantum Euclidean Spaces and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Geometrical Tools for Quantum Euclidean Spaces'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with an original title different from their title?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.original_title <> m.title\\nRETURN m.title, m.original_title\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Song\": {\n \"properties\": {\n \"languages\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"song_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"releasedate\": \"STRING\",\n \"rating\": \"INTEGER\",\n \"resolution\": \"INTEGER\",\n \"genre_is\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"File\": {\n \"properties\": {\n \"duration\": \"STRING\",\n \"file_size\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"formats\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"g_name\": \"STRING\",\n \"most_popular_in\": \"STRING\",\n \"rating\": \"STRING\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"preferred_genre\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all male British artists?"}, {"role": "assistant", "content": "MATCH (a:Artist)\\nWHERE a.country = \"UK\" AND a.gender = \"Male\"\\nRETURN a.Artist_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which key_id is 0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id:'0e45607b74a52b79f39c242abf265272'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which Entities have a \"registered_address\" relationship with an Address in \"Samoa\"?"}, {"role": "assistant", "content": "MATCH (a:Address {countries: \"Samoa\"})<-[:registered_address]-(e:Entity)\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which languages have more than 5 movies spoken in them?"}, {"role": "assistant", "content": "MATCH (l:Language)<-[:SPOKEN_IN_LANGUAGE]-(m:Movie)\\nWITH l, count(m) AS movieCount\\nWHERE movieCount > 5\\nRETURN l.name AS language, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that are part of any collection and have a revenue less than 1 million USD."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection)\\nWHERE m.revenue < 1000000\\nRETURN m.title AS MovieTitle, c.name AS CollectionName, m.revenue AS Revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Pilot\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Pilot_name\": \"STRING\",\n \"Rank\": \"INTEGER\",\n \"Position\": \"STRING\",\n \"Pilot_ID\": \"INTEGER\",\n \"Team\": \"STRING\",\n \"Join_Year\": \"INTEGER\",\n \"Nationality\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"Manufacturer\": \"STRING\",\n \"Fuel_Propulsion\": \"STRING\",\n \"Model\": \"STRING\",\n \"Fleet_Series\": \"STRING\",\n \"Powertrain\": \"STRING\",\n \"Aircraft_ID\": \"INTEGER\",\n \"Order_Year\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"Pilot\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"OPERATED_BY\",\n \"to\": \"Pilot\"\n }\n ],\n \"relationshipProperties\": {\n \"OPERATED_BY\": {\n \"Record_ID\": \"INTEGER\",\n \"Date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of pilots from team \"Bradley\" or \"Fordham\"."}, {"role": "assistant", "content": "MATCH (a:Pilot)\\nWHERE a.Team IN [\"Bradley\", \"Fordham\"]\\nRETURN a.Pilot_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the descriptions of streams that have chatted with the user '9linda'."}, {"role": "assistant", "content": "MATCH (u:User {name: '9linda'})-[:CHATTER]->(s:Stream)\\nRETURN s.description AS StreamDescription"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDb rating of movies with a budget greater than $100 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many unique games are played by streams with more than 500000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.followers > 500000\\nRETURN COUNT(DISTINCT g) AS unique_games_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Article where comments is 21 pages, AMS-LaTeX and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'21 pages, AMS-LaTeX'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"installation_date\": \"STRING\",\n \"long\": \"FLOAT\",\n \"lat\": \"FLOAT\",\n \"city\": \"STRING\",\n \"dock_count\": \"INTEGER\"\n }\n },\n \"Status\": {\n \"properties\": {\n \"time\": \"STRING\",\n \"docks_available\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"bikes_available\": \"INTEGER\"\n }\n },\n \"Weather\": {\n \"properties\": {\n \"wind_dir_degrees\": \"INTEGER\",\n \"precipitation_inches\": \"INTEGER\",\n \"mean_sea_level_pressure_inches\": \"FLOAT\",\n \"zip_code\": \"INTEGER\",\n \"events\": \"STRING\",\n \"max_humidity\": \"INTEGER\",\n \"min_sea_level_pressure_inches\": \"FLOAT\",\n \"max_sea_level_pressure_inches\": \"INTEGER\",\n \"max_gust_speed_mph\": \"INTEGER\",\n \"date\": \"STRING\",\n \"max_visibility_miles\": \"INTEGER\",\n \"max_wind_Speed_mph\": \"INTEGER\",\n \"mean_wind_speed_mph\": \"INTEGER\",\n \"mean_humidity\": \"INTEGER\",\n \"mean_dew_point_f\": \"INTEGER\",\n \"mean_temperature_f\": \"INTEGER\",\n \"min_humidity\": \"INTEGER\",\n \"min_temperature_f\": \"INTEGER\",\n \"min_dew_point_f\": \"INTEGER\",\n \"mean_visibility_miles\": \"INTEGER\",\n \"min_visibility_miles\": \"INTEGER\",\n \"max_temperature_f\": \"INTEGER\",\n \"max_dew_point_f\": \"INTEGER\",\n \"cloud_cover\": \"INTEGER\"\n }\n },\n \"Trip\": {\n \"properties\": {\n \"start_station_name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"duration\": \"INTEGER\",\n \"end_date\": \"STRING\",\n \"bike_id\": \"INTEGER\",\n \"zip_code\": \"INTEGER\",\n \"end_station_id\": \"INTEGER\",\n \"subscription_type\": \"STRING\",\n \"end_station_name\": \"STRING\",\n \"start_station_id\": \"INTEGER\",\n \"start_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "How many stations does Mountain View city has?"}, {"role": "assistant", "content": "MATCH (s:Station {city:\"Mountain View\"})\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have played a role in movies with a budget over 200 million dollars?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.budget > 200000000\\nRETURN DISTINCT a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its title and the count of Journal linked via PUBLISHED_IN where meta is not '220', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta <> '220'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with a book45PageRank between 2 and 5?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank >= 2 AND c.book45PageRank <= 5\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams are part of a team created after 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt > datetime('2015-01-01T00:00:00Z')\\nRETURN s.name AS stream_name, t.name AS team_name, t.createdAt AS team_created_at"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_address_id\": \"INTEGER\",\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_phone_number\": \"STRING\",\n \"amount_outstanding\": \"FLOAT\",\n \"date_became_customer\": \"STRING\",\n \"customer_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"date_joined_staff\": \"STRING\",\n \"date_left_staff\": \"STRING\",\n \"nickname\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"staff_address_id\": \"INTEGER\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Lesson\": {\n \"properties\": {\n \"lesson_time\": \"STRING\",\n \"price\": \"FLOAT\",\n \"lesson_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"lesson_id\": \"INTEGER\",\n \"vehicle_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"lesson_status_code\": \"STRING\"\n }\n },\n \"CustomerPayment\": {\n \"properties\": {\n \"datetime_payment\": \"STRING\",\n \"payment_method_code\": \"STRING\",\n \"amount_payment\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Vehicle\": {\n \"properties\": {\n \"vehicle_details\": \"STRING\",\n \"vehicle_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first and last names for all customers?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nRETURN c.first_name, c.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have asked questions with a title containing 'apollo-server'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.title CONTAINS 'apollo-server'\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Journal that is not related to the Article with the abstract A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Article {abstract: ' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the valid_until date of the officer with node_id 12174285?"}, {"role": "assistant", "content": "MATCH (o:Officer {node_id: 12174285})\\nRETURN o.valid_until"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the most recent three movies added to the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.release_date DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is We consider a finite sequence of random points in a finite domain of a\nfinite-dimensional Euclidean space. The points are sequentially allocated in\nthe domain according to a model of cooperative sequential adsorption. The main\npeculiarity of the model is that the probability distribution of a point\ndepends on previously allocated points. We assume that the dependence vanishes\nas the concentration of points tends to infinity. Under this assumption the law\nof large numbers, the central limit theorem and Poisson approximation are\nproved for the generated sequence of random point measures.\n and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' We consider a finite sequence of random points in a finite domain of a finite-dimensional Euclidean space. The points are sequentially allocated in the domain according to a model of cooperative sequential adsorption. The main peculiarity of the model is that the probability distribution of a point depends on previously allocated points. We assume that the dependence vanishes as the concentration of points tends to infinity. Under this assumption the law of large numbers, the central limit theorem and Poisson approximation are proved for the generated sequence of random point measures. '})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Author that are missing the last_name!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name IS NULL\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to DOI for which name is 10.1016/S0040-9383(00)00015-X!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0040-9383(00)00015-X'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all people who have followed and been followed by the same person."}, {"role": "assistant", "content": "MATCH (p1:Person)-[:FOLLOWS]->(p2:Person)<-[:FOLLOWS]-(p1)\\nRETURN p1, p2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were created in 2019 and have a score less than 0?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt >= '2019-01-01T00:00:00Z' AND q.createdAt < '2020-01-01T00:00:00Z' AND q.score < 0\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 adult films with a tagline 'Humiliation. Rape. Murder. You know the drill.'"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.tagline = 'Humiliation. Rape. Murder. You know the drill.'\\nRETURN a.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Topic where description is Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications. and traversing through Keyword with key_id 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.'})-[*]->(d:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either doi_id is 01c710839626aa78f11824682bccef1b or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = '01c710839626aa78f11824682bccef1b' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where cluster is 11 and share a common property with Author, for which author_id equals d83c43e5b1cf398c4e549843f497694b?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'})-[r]->(n), (d:Author{author_id:'d83c43e5b1cf398c4e549843f497694b'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that have interacted with 'Neo4j' the most?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:INTERACTS_WITH]->(user:User)\\nRETURN user.name AS userName, COUNT(*) AS interactionCount\\nORDER BY interactionCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which name starts with 1, skip the first 2 records and return the next 2 records of name!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name STARTS WITH '1'\\nWITH n.name AS name SKIP 2\\nLIMIT 2\\nRETURN name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 games that have been featured in streams with a team having over 1,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nMATCH (s)-[:HAS_TEAM]->(t:Team)\\nWHERE s.followers > 1000\\nRETURN DISTINCT g.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name is super-population viewpoint!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name:'super-population viewpoint'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of reviews written per user for businesses in 'CA'?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'}) <-[:REVIEWS]-(review:Review) <-[:WROTE]-(user:User)\\nWITH count(DISTINCT review) AS totalReviews, count(DISTINCT user) AS totalUsers\\nRETURN totalReviews / toFloat(totalUsers) AS averageReviewsPerUser"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 streams that have changed their primary game at least once."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, count(distinct g) AS num_games\\nWHERE num_games > 1\\nRETURN s.name AS stream_name, s.url AS stream_url\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have the most number of languages associated."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, count(l) AS num_languages\\nORDER BY num_languages DESC\\nLIMIT 5\\nRETURN s.id AS StreamID, s.name AS StreamName, num_languages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 users who have a profile image URL ending with 'normal.jpg' and follow 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {name: 'Neo4j'})\\nWHERE u.profile_image_url ENDS WITH 'normal.jpg'\\nRETURN u\\nORDER BY u.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of last_name and affiliation from Author where last_name does not start with D!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.last_name STARTS WITH 'D'\\nRETURN DISTINCT n.last_name AS last_name, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article for which title is Failure of Brown representability in derived categories, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.title = 'Failure of Brown representability in derived categories'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total quantity of products ordered by the customer with customerID 'VINET'?"}, {"role": "assistant", "content": "MATCH (c:Customer {customerID: 'VINET'})-[:PURCHASED]->(:Order)-[o:ORDERS]->(p:Product)\\nRETURN sum(o.quantity) AS totalQuantity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user asked the question with the lowest score?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u\\nORDER BY q.score ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 highest rated movies by users."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nRETURN m.title, AVG(r.rating) AS average_rating\\nORDER BY average_rating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all businesses that have been reviewed and are located in 'MT'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category)\\nWHERE b.state = 'MT'\\nMATCH (r:Review)-[:REVIEWS]->(b)\\nRETURN DISTINCT b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the highest IMDb rating that is in black and white?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "For each nonull cluster of the Topic, how many times does it appear, and what are the minimum, maximum and average values of cluster associated to it?"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster IS NOT NULL\\nWITH DISTINCT n\\nWITH n.cluster as cluster, COUNT(n) AS count, min(n.cluster) AS min, max(n.cluster) AS max, avg(n.cluster) AS avg\\nRETURN cluster, count, min, max, avg"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have asked the most questions tagged with 'aws-lambda'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWITH u, count(q) AS questions_asked\\nORDER BY questions_asked DESC\\nLIMIT 3\\nRETURN u.display_name, questions_asked"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 Entities by the total amount of Filings they have benefited from?"}, {"role": "assistant", "content": "MATCH (e:Entity)<-[:BENEFITS]-(f:Filing)\\nWITH e, SUM(f.amount) AS totalAmount\\nORDER BY totalAmount DESC\\nLIMIT 3\\nRETURN e.name AS entityName, totalAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has article_id 1063!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1063'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Categories linked via HAS_CATEGORY and retrieve the abstract of the Article and the Categories counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_CATEGORY]->(m:Categories)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS categories_count\\nORDER BY categories_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies that have a poster path."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path IS NOT NULL\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the longest movie tagline in the dataset?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH max(size(m.tagline)) AS max_length\\nMATCH (m:Movie)\\nWHERE size(m.tagline) = max_length\\nRETURN m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the most crew members with a job of \"Writer\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[cf:CREW_FOR]-(p:Person)\\nWHERE cf.job = \"Writer\"\\nWITH m, count(DISTINCT p) AS writer_count\\nORDER BY writer_count DESC\\nRETURN m.title AS movie_title, writer_count\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code\": \"STRING\",\n \"date_effective_from\": \"STRING\",\n \"date_effective_to\": \"STRING\",\n \"template_details\": \"STRING\"\n }\n },\n \"documents\": {\n \"properties\": {\n \"document_id\": \"STRING\",\n \"template_id\": \"STRING\",\n \"document_name ( Data base )\": \"STRING\",\n \"document_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"paragraphs\": {\n \"properties\": {\n \"paragraph_id\": \"STRING\",\n \"document_id\": \"STRING\",\n \"paragraph_text\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the paragraph texts for the document with the name 'Customer reviews'?"}, {"role": "assistant", "content": "MATCH (T1:Paragraphs)-[]-(T2:Documents)\\nWHERE T2.Document_Name = \"Customer reviews\"\\nRETURN T1.Paragraph_Text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"last_update\": \"STRING\",\n \"create_date\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"email\": \"STRING\",\n \"last_name\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"active\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"name\": \"STRING\",\n \"category_id\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"actor_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"last_name\": \"STRING\"\n }\n },\n \"Rental\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"return_date\": \"STRING\",\n \"rental_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"rental_rate\": \"FLOAT\",\n \"rental_duration\": \"INTEGER\",\n \"language_id\": \"INTEGER\",\n \"title\": \"STRING\",\n \"last_update\": \"STRING\",\n \"description\": \"STRING\",\n \"release_year\": \"INTEGER\",\n \"length\": \"INTEGER\",\n \"replacement_cost\": \"FLOAT\",\n \"rating\": \"STRING\",\n \"film_id\": \"INTEGER\",\n \"special_features\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Inventory\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"film_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\"\n }\n },\n \"Addres\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"phone\": \"STRING\",\n \"last_update\": \"STRING\",\n \"address\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"postal_code\": \"STRING\",\n \"address2\": \"STRING\",\n \"district\": \"STRING\"\n }\n },\n \"City\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"last_update\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"payment_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n }\n ],\n \"relationshipProperties\": {\n \"STARS_IN\": {\n \"last_update\": \"STRING\"\n },\n \"RELATED_TO\": {\n \"last_update\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many different last names do the actors and actresses have?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nRETURN count(DISTINCT a.last_name)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 actors by number of movies acted in with a revenue greater than 500 million dollars?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.revenue > 500000000\\nWITH a, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 5\\nRETURN a.name AS actorName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which people have a Bachelor's degree with a score above 3.5?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(e.degree) CONTAINS 'bachelor' AND toFloat(e.score) > 3.5\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where title is Solutions to congruences using sets with the property of Baire and Article, with comments equal 44 pages, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[*]-(e:Article{comments:'44 pages'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies with a tagline containing 'beginning'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'beginning'\\nRETURN m.title, m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a review summary 'An amazing journey' and their ratings?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary = 'An amazing journey'\\nRETURN m.title AS movie_title, r.rating AS rating\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the production companies that have produced movies with an original language of Spanish."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE exists { (m)-[:ORIGINAL_LANGUAGE]->(:Language {name: 'Spanish'}) }\\nRETURN DISTINCT pc.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many people have directed more than two movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, count(m) AS moviesDirected\\nWHERE moviesDirected > 2\\nRETURN count(p) AS directorsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the `icij_id` of the officer associated with the entity named \"NINGBO SUNRISE ENTERPRISES UNITED CO., LTD.\"?"}, {"role": "assistant", "content": "MATCH (e:Entity {name: \"NINGBO SUNRISE ENTERPRISES UNITED CO., LTD.\"})<-[:officer_of]-(o:Officer)\\nRETURN o.icij_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 routers in DataCenter 'DC1' by zone number."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Router)\\nRETURN r.name, r.zone\\nORDER BY r.zone DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 movies released in the year 1995."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE date(m.release_date).year = 1995\\nWITH m \\nORDER BY m.release_date ASC\\nLIMIT 5\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where author_id is 788db042978edbbfc654927e23ac21d1 and Journal, for which journal_id equals d3b321ed42589ea798c241aa7de23d2d?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'788db042978edbbfc654927e23ac21d1'})-[*]->(d:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 users followed by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN user.name AS followed_user_name\\nORDER BY user.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name is layer-by-layer growth!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name:'layer-by-layer growth'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:DOI)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 1008 and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '1008'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Categories for which specifications=q-fin.RM!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'q-fin.RM'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Topic that has description The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations.!"}, {"role": "assistant", "content": "MATCH path=(:Topic {description:'The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations.'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average reputation of users who asked questions tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nMATCH (u:User)-[:ASKED]->(q)\\nWITH avg(u.reputation) AS average_reputation\\nRETURN average_reputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to UpdateDate for which update_date is 2021-02-09!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2021-02-09'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies did Nancy Meyers write?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Nancy Meyers\"})-[:WROTE]->(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the comments of the Article and the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:DOI)\\nRETURN n.comments, m.doi_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Keyword for which name is tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water-, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where meta is 248 and has comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '248'}]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 movies by revenue that have a runtime less than 100 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 100 AND m.revenue IS NOT NULL\\nRETURN m\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of followers for streams that have at least 2 moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(m)\\nWITH s, count(DISTINCT m) AS moderatorCount\\nWHERE moderatorCount >= 2\\nRETURN avg(s.followers) AS averageFollowers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which Entities have the same \"original_name\" but are incorporated in different jurisdictions?"}, {"role": "assistant", "content": "MATCH (e1:Entity), (e2:Entity)\\nWHERE e1.original_name = e2.original_name AND e1.jurisdiction <> e2.jurisdiction\\nRETURN DISTINCT e1.original_name, e1.jurisdiction, e2.jurisdiction"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Apartment\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"bathroom_count\": \"INTEGER\",\n \"apt_number\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"apt_type_code\": \"STRING\",\n \"bedroom_count\": \"INTEGER\",\n \"room_count\": \"STRING\"\n }\n },\n \"Guest\": {\n \"properties\": {\n \"gender_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"date_of_birth\": \"STRING\",\n \"guest_first_name\": \"STRING\",\n \"guest_last_name\": \"STRING\"\n }\n },\n \"ApartmentBooking\": {\n \"properties\": {\n \"booking_end_date\": \"STRING\",\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"booking_start_date\": \"STRING\"\n }\n },\n \"ApartmentFacility\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"facility_code\": \"STRING\"\n }\n },\n \"ApartmentBuilding\": {\n \"properties\": {\n \"building_full_name\": \"STRING\",\n \"building_short_name\": \"STRING\",\n \"building_manager\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"building_description\": \"STRING\",\n \"building_phone\": \"STRING\",\n \"building_address\": \"STRING\"\n }\n },\n \"ViewUnitStatu\": {\n \"properties\": {\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"available_yn\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n },\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n }\n ]\n}"}, {"role": "user", "content": "Show the booking status code and the corresponding number of bookings."}, {"role": "assistant", "content": "MATCH (b:ApartmentBooking)\\nRETURN b.booking_status_code, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n },\n {\n \"from\": \"User\",\n \"type\": \"COMMENTED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"PROVIDED\",\n \"to\": \"Answer\"\n },\n {\n \"from\": \"Answer\",\n \"type\": \"ANSWERED\",\n \"to\": \"Question\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"COMMENTED_ON\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "\"How many neo4j questions were created in 2020?\""}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'neo4j' AND q.creation_date >= 1577836800 AND q.creation_date < 1609459200\\nRETURN COUNT(q) AS neo4j_questions_2020"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 users have rated movies primarily in the 'Drama' genre?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nWITH u, COUNT(r) AS dramaRatings\\nORDER BY dramaRatings DESC\\nLIMIT 5\\nRETURN u.name AS userName, dramaRatings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"In_office\": \"STRING\",\n \"Party_ID\": \"STRING\",\n \"Member_ID\": \"INTEGER\",\n \"Member_Name\": \"STRING\"\n }\n },\n \"Region\": {\n \"properties\": {\n \"Catalogue\": \"STRING\",\n \"Format\": \"STRING\",\n \"Date\": \"STRING\",\n \"Label\": \"STRING\",\n \"Region_name\": \"STRING\",\n \"Region_ID\": \"INTEGER\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Took_office\": \"STRING\",\n \"Party_ID\": \"INTEGER\",\n \"Left_office\": \"STRING\",\n \"Party_name\": \"STRING\",\n \"Region_ID\": \"INTEGER\",\n \"Minister\": \"STRING\"\n }\n },\n \"PartyEvent\": {\n \"properties\": {\n \"Event_ID\": \"INTEGER\",\n \"Member_in_charge_ID\": \"INTEGER\",\n \"Party_ID\": \"INTEGER\",\n \"Event_Name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"PartyEvent\",\n \"type\": \"ORGANIZED_BY\",\n \"to\": \"Member\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"Region\"\n },\n {\n \"from\": \"PartyEvent\",\n \"type\": \"ORGANIZED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyEvent\",\n \"type\": \"ORGANIZED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyEvent\",\n \"type\": \"ORGANIZED_BY\",\n \"to\": \"Member\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of party events."}, {"role": "assistant", "content": "MATCH (p:PartyEvent)\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 tweets with the highest number of favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.text, t.favorites\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with the longest role lists in 'ACTED_IN' relationships?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(:Person)\\nRETURN m.title, size(r.roles) AS role_count\\nORDER BY role_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 entities that have been struck off as of 2013."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date STARTS WITH '2013'\\nRETURN e\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch abstract of the Article that are connected to Journal via PUBLISHED_IN where year are at most 2001!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.year < '2001'}\\nRETURN n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "Find all the locations whose names contain the word \"film\"."}, {"role": "assistant", "content": "MATCH (l:Location)\\nWHERE l.Location_Name =~ \"(?i).*film.*\"\\nRETURN l.Location_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where doi_id is 3cee0a24d271bd40a0fb03d70f70dcc7 and Article, with comments equal 21 pages, AMS-LaTeX, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{doi_id:'3cee0a24d271bd40a0fb03d70f70dcc7'})-[*]-(e:Article{comments:'21 pages, AMS-LaTeX'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find all reviews that have a star rating of 5."}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars = 5.0\\nRETURN r.reviewId, r.text, r.date, r.stars, b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Categories where specifications is cond-mat.soft?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cond-mat.soft'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams that have a description containing the word 'hilarious'?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'hilarious'\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Report where report_id is c3c968646b7780fada2a98b2a5a61746 and Categories, with category_id equal 978aee6db23fc939cec71ac05eb15b7a, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_id:'c3c968646b7780fada2a98b2a5a61746'})-[*]-(e:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from UpdateDate for which update_date is 2009-10-31, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2009-10-31'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the update_date of the UpdateDate that is not related to the Report with the report_no PUMA 566!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Report {report_no: 'PUMA 566'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the people born before 1950 who have directed a movie?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born < 1950\\nMATCH (p)-[:DIRECTED]->(m:Movie)\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 Filings where the amount is between $500,000 and $1,000,000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.amount >= 500000 AND f.amount <= 1000000\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the actors that acted in 'The Matrix'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie {title: 'The Matrix'})\\nRETURN p.name AS actor_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the URL of the stream that is moderated by the user with the least amount of followers and has the language \"ru\"?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, min(s.followers) AS min_followers\\nMATCH (u)-[:MODERATOR]->(s:Stream {followers: min_followers})\\nMATCH (s)-[:HAS_LANGUAGE]->(l:Language {name: 'ru'})\\nRETURN DISTINCT s.url"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of directors who have directed both a 'Comedy' and a 'Drama' movie?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: 'Comedy'}), (d)-[:DIRECTED]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: 'Drama'})\\nRETURN DISTINCT d.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: A New Cohomology Theory for Orbifold and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'A New Cohomology Theory for Orbifold'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 products are most frequently ordered together?"}, {"role": "assistant", "content": "MATCH (p1:Product)-[:ORDERS]-(o:Order)-[:ORDERS]-(p2:Product)\\nWHERE p1.productID < p2.productID\\nWITH p1, p2, count(o) AS times_ordered_together\\nORDER BY times_ordered_together DESC\\nRETURN p1.productName, p2.productName, times_ordered_together\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the streams that have the most moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, count{(s)-[:MODERATOR]->()} AS moderatorCount\\nRETURN s, moderatorCount\\nORDER BY moderatorCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Journal where journal_id is f6582df4742923aacfc6e67638bd4bf6 and traversing through Categories with category_id 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[*]->(d:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_id starts with 5, skip the first 2 records and return the next 2 records of report_id!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH '5'\\nWITH n.report_id AS report_id SKIP 2\\nLIMIT 2\\nRETURN report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: Only one change to previous version: ref. [62] misnumbering was fixed\n on request to the cited author and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'Only one change to previous version: ref. [62] misnumbering was fixed on request to the cited author'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2016-11-23 and the year of the update_date is 2010!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2016-11-23' AND date(n.update_date).year = 2010\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 most recent questions asked on the platform."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.createdAt, q.link\\nORDER BY q.createdAt DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 641-672 and retrieve the abstract of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '641-672'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 people born before 1960."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born < 1960\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which entities have the highest transaction volume?\""}, {"role": "assistant", "content": "MATCH (:Entity)-[r:FILED]->(f:Filing)\\nRETURN r.name AS EntityName, SUM(f.amount) AS TotalTransactionVolume\\nORDER BY TotalTransactionVolume DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where title is Classification of Subsystems for Local Nets with Trivial Superselection\n Structure!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.title='Classification of Subsystems for Local Nets with Trivial Superselection Structure'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2010-06-18 and the year of the update_date is 2018!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2010-06-18' AND date(n.update_date).year = 2018\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 characters based on their book1BetweennessCentrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality IS NOT NULL\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the author_id for Author that is linked through a WRITTEN_BY relationship with the Article where comments is 18 pages, latex2e with amsfonts. Final version, accepted for\n publication!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.comments='18 pages, latex2e with amsfonts. Final version, accepted for publication'\\nRETURN m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 users with the highest number of streams they are moderators of that have the language \"en\" and have at least one VIP and have at least one chatter."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE (s)-[:HAS_LANGUAGE]->(:Language {name: 'en'}) AND EXISTS { (s)-[:VIP]->(:User) } AND EXISTS { (s)-[:CHATTER]->(:User) }\\nWITH u, count(s) AS moderatedStreamCount\\nORDER BY moderatedStreamCount DESC\\nLIMIT 3\\nRETURN u.name AS userName, moderatedStreamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"museum\": {\n \"properties\": {\n \"museum_id\": \"STRING\",\n \"name\": \"STRING\",\n \"num_of_staff\": \"STRING\",\n \"open_year\": \"STRING\"\n }\n },\n \"visitor\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"level_of_membership\": \"STRING\",\n \"age\": \"STRING\"\n }\n },\n \"visit\": {\n \"properties\": {\n \"museum_id\": \"STRING\",\n \"visitor_id\": \"STRING\",\n \"num_of_ticket\": \"STRING\",\n \"total_spent\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low."}, {"role": "assistant", "content": "MATCH (visitor:visitor)\\nWHERE visitor.Level_of_membership > 4\\nRETURN visitor.Name\\nORDER BY visitor.Level_of_membership DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Can you find movies that are part of the 'Toy Story Collection'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: 'Toy Story Collection'})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where specifications is alg-geom and share a common property with Topic, for which cluster equals 4?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'alg-geom'})-[r]->(n), (d:Topic{cluster:'4'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have the longest bios on their profile?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nRETURN d.name, d.bio\\nORDER BY size(d.bio) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 customers based on the number of unique products ordered."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWITH c, COUNT(DISTINCT p.productID) AS uniqueProductsOrdered\\nORDER BY uniqueProductsOrdered DESC\\nLIMIT 5\\nRETURN c.companyName AS customerName, uniqueProductsOrdered"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams by follower count."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name, s.followers\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 actors have acted in the most movies?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nRETURN a.name AS actor, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 highest-grossing movies of 2006."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 2006\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which author_id is a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (n:Author {author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Topic where description is Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics. and traversing through Categories with specifications q-fin.PR!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.'})-[*]->(d:Categories{specifications:'q-fin.PR'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters with the top 3 highest 'book1BetweennessCentrality' values who interacted with \"Addam-Marbrand\" in book 1."}, {"role": "assistant", "content": "MATCH (am:Character {name: \"Addam-Marbrand\"})-[:INTERACTS1]->(other:Character)\\nWITH other \\nORDER BY other.book1BetweennessCentrality DESC\\nLIMIT 3\\nRETURN other.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 movies that have a language listed as 'French'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE 'French' IN m.languages\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the customers who have purchased products from suppliers located in the same country as the customer."}, {"role": "assistant", "content": "MATCH (c:Customer)-->(o:Order)-->(p:Product)<--(s:Supplier)\\nWHERE c.country = s.country\\nRETURN DISTINCT c.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for comments and article_id from Article where comments is not null and article_id exceeds 1071 and sort the results by article_id, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments IS NOT NULL AND n.article_id > 1071\\nRETURN n.comments AS comments, n.article_id AS article_id\\nORDER BY article_id DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "How many filings are there where the `originator_bank_country` is \"Germany\" and the `beneficiary_bank_country` is \"Afghanistan\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = \"Germany\" AND f.beneficiary_bank_country = \"Afghanistan\"\\nRETURN count(f)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have the highest number of user VIPs?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:VIP]-(u:User)\\nRETURN s.name AS stream, count(u) AS vip_count\\nORDER BY vip_count DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_no of the Report and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:Author)\\nRETURN n.report_no, m.author_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the lowest 'degree' value among characters in community 579?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 579})\\nRETURN min(c.degree)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 users who have written the most reviews."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS userName, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 genres associated with the most popular movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.popularity IS NOT NULL\\nRETURN g.name, m.popularity\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the comments from Article where article_id is not 1056!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1056'\\nRETURN DISTINCT n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the title of the Article and the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Author)\\nRETURN n.title, m.affiliation\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the business names and user names for reviews written in September 2015."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date >= date('2015-09-01') AND r.date < date('2015-10-01')\\nRETURN b.name AS businessName, u.name AS userName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the doi_id for DOI that is linked through a HAS_DOI relationship with the Article where title is Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.title='Free Field Construction for the ABF Models in Regime II'\\nRETURN m.doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has abstract Paul Erdos asked how frequently the ternary expansion of 2^n omits the digit\n2. He conjectured this happens only for finitely many values of n. We\ngeneralize this question to consider iterates of two discrete dynamical\nsystems. The first is over the real numbers, and considers the integer part of\nlambda 2^n for a real input lambda. The second is over the 3-adic integers, and\nconsiders the sequence lambda 2^n for a 3-adic integer input lambda.\n We show that the number of input values that have infinitely many iterates\nomitting the digit 2 in their ternary expansion is small in a suitable sense.\nFor each nonzero input we give an asymptotic upper bound on the number of the\nfirst k iterates that omit the digit 2, as k goes to infinity. We also study\nauxiliary problems concerning the Hausdorff dimension of intersections of\nmultiplicative translates of 3-adic Cantor sets.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Paul Erdos asked how frequently the ternary expansion of 2^n omits the digit 2. He conjectured this happens only for finitely many values of n. We generalize this question to consider iterates of two discrete dynamical systems. The first is over the real numbers, and considers the integer part of lambda 2^n for a real input lambda. The second is over the 3-adic integers, and considers the sequence lambda 2^n for a 3-adic integer input lambda. We show that the number of input values that have infinitely many iterates omitting the digit 2 in their ternary expansion is small in a suitable sense. For each nonzero input we give an asymptotic upper bound on the number of the first k iterates that omit the digit 2, as k goes to infinity. We also study auxiliary problems concerning the Hausdorff dimension of intersections of multiplicative translates of 3-adic Cantor sets. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Report with report_id equal to 9301481d98615f874763a17d18e2dc92!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'9301481d98615f874763a17d18e2dc92'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the title for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.title AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have the highest 'betweenness' centrality?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.screen_name, u.betweenness\\nORDER BY u.betweenness DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where description is Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications. and Topic, for which label is Linear Algebra_1?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.'}), (b:Topic{label:'Linear Algebra_1'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify characters in community 759 with a pagerank above 0.4."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 759 AND c.pagerank > 0.4\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "Are there any other articles that customers also like along with the 'Bunny fur jacket'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Bunny fur jacket'})-[:CUSTOMERS_ALSO_LIKE]->(other:Article)\\nRETURN other"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Author where first_name ends with J.!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name =~'J..*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to UpdateDate for which update_date is 2011-11-10!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2011-11-10'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average total view count for all users in the database?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH avg(s.total_view_count) AS average_view_count\\nRETURN average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where label is Geometry_7 and Keyword, for which name is super-exponential growth?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'}), (b:Keyword{name:'super-exponential growth'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with a tagline that starts with a verb."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline STARTS WITH 'Welcome' OR m.tagline STARTS WITH 'Enter' OR m.tagline STARTS WITH 'Escape'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Article with the abstract Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Article {abstract: ' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 22 pages, LaTeX and PUBLISHED_IN has pages on 537-560!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '537-560'}]->(m)\\nWHERE n.comments='22 pages, LaTeX'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Report where report_no is PUMA 566 and Topic, for which label equals Dynamical Systems_10?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_no:'PUMA 566'})-[*]->(d:Topic{label:'Dynamical Systems_10'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 sources used in tweets by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:USING]->(s:Source)\\nRETURN s.name AS source, COUNT(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the description from Topic where either label is Mathematics_9 or description is not null!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Mathematics_9' OR n.description IS NOT NULL\\nRETURN DISTINCT n.description AS description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have an IMDb ID of 'tt0114709'?"}, {"role": "assistant", "content": "MATCH (m:Movie {imdb_id: 'tt0114709'})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities are associated with originator bank 'CIMB Bank Berhad'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank = 'CIMB Bank Berhad'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 actors who have acted in movies directed by a director born in Nebraska."}, {"role": "assistant", "content": "MATCH (d:Director {bornIn: \"Nebraska\"})-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nRETURN DISTINCT a.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Journal where name is J.Statist.Phys and traversing through Journal with name Izv. Math!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J.Statist.Phys'})-[*]->(d:Journal{name:'Izv. Math'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Author where first_name is J. Daniel and list their properties, including those of Author!"}, {"role": "assistant", "content": "MATCH (b:Author)-[r]->(n)\\nWHERE b.first_name = 'J. Daniel'\\nRETURN properties(b) AS Author_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Article where title is Solutions to congruences using sets with the property of Baire, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where title is Generating Functional in CFT on Riemann Surfaces II: Homological Aspects and are PUBLISHED_IN linked to Journal, where year is 2002?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Generating Functional in CFT on Riemann Surfaces II: Homological Aspects'})-[r:PUBLISHED_IN {year :'2002'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Journal where name is Math. Nachr and share a common property with DOI, for which name equals 10.1142/S0219061301000077?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Nachr'})-[r]->(n), (d:DOI{name:'10.1142/S0219061301000077'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the user who wrote the most recent review for a business in 'Missoula'."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Missoula'})<-[:REVIEWS]-(r:Review)\\nWITH r\\nORDER BY r.date DESC\\nLIMIT 1\\nMATCH (u:User)-[:WROTE]->(r)\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which Applications listen on Port 8080?"}, {"role": "assistant", "content": "MATCH (p:Port {port: 8080})<-[:LISTENS]-(a:Application)\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of first_name and affiliation from Author where first_name does not start with J!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.first_name STARTS WITH 'J'\\nRETURN DISTINCT n.first_name AS first_name, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 10 or cluster is less than 3!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 10 OR n.cluster < 3\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 locations where the most active users are based?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.location IS NOT NULL\\nWITH u.location AS location, count(u) AS num_users, sum(u.statuses) AS total_statuses\\nRETURN location, num_users, total_statuses\\nORDER BY total_statuses DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Report where report_id is e5e11665c21162413ab43704232c83c4 and traversing through Categories with specifications math.DS!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'e5e11665c21162413ab43704232c83c4'})-[*]->(d:Categories{specifications:'math.DS'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report where report_id is f07a9f85a94d20f473a1bf9b432c05f8!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = 'f07a9f85a94d20f473a1bf9b432c05f8'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many categories are associated with the business named 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Neo4j'})-[:IN_CATEGORY]->(c:Category)\\nRETURN count(c) AS numberOfCategories"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 actors who have worked with the director of 'Toy Story'."}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: 'Toy Story'})\\nMATCH (toyStory)<-[:CREW_FOR {job: 'Director'}]-(director:Person)\\nMATCH (director)-[:CREW_FOR {job: 'Director'}]->(directedMovie:Movie)\\nMATCH (actor:Person)-[:CAST_FOR]->(directedMovie)\\nWITH actor, count(DISTINCT directedMovie) AS movieCount\\nORDER BY movieCount DESC\\nRETURN actor.name, movieCount\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the business names and their review stars for businesses on 'Main St'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.address CONTAINS 'Main St'\\nRETURN b.name AS businessName, r.stars AS reviewStars"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with title equal to A New Cohomology Theory for Orbifold, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'A New Cohomology Theory for Orbifold'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the most production credits in movies released in the 1990s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released < 2000\\nWITH p, count(m) AS productionCount\\nRETURN p.name AS producer, productionCount\\nORDER BY productionCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where author_id is 976d319b0a2961b44db9ef9e43ea5039 and Article, with comments equal Latex, 9 pages, no figures, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{author_id:'976d319b0a2961b44db9ef9e43ea5039'})-[*]-(e:Article{comments:'Latex, 9 pages, no figures'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 questions with a title containing the word 'error'."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.title CONTAINS 'error'\\nRETURN q.title, q.link, q.createdAt\\nORDER BY q.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What product type is related to 'Apollo seamless HW tights' that customers also like?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product), (a)-[:CUSTOMERS_ALSO_LIKE]->(a2:Article)-[:VARIANT_OF]->(p2:Product)\\nWHERE a.prodName = 'Apollo seamless HW tights'\\nRETURN DISTINCT p2.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Article that are missing the title!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title IS NULL\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a key_id which begins with k, and is linked to Article via HAS_KEY relationship, where Article has comments Published at http://dx.doi.org/10.1214/009117905000000369 in the\n Annals of Probability (http://www.imstat.org/aop/) by the Institute of\n Mathematical Statistics (http://www.imstat.org)!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'Published at http://dx.doi.org/10.1214/009117905000000369 in the Annals of Probability (http://www.imstat.org/aop/) by the Institute of Mathematical Statistics (http://www.imstat.org)'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average length of movie summaries?"}, {"role": "assistant", "content": "MATCH (:Person)-[review:REVIEWED]->(:Movie)\\nWITH size(review.summary) AS summary_length\\nRETURN avg(summary_length) AS average_summary_length"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are VIPs in the stream named 'itsbigchase'?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: 'itsbigchase'})<-[:VIP]-(u:User)\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the DOI where doi_id ends with f2!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id =~'f2.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all reviews written by 'Bob'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Bob'})-[:WROTE]->(r:Review)\\nRETURN r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of 3 people who were born after 1970."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born > 1970\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have the most followers among those who have interacted with Neo4j?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:INTERACTS_WITH]->(user:User)\\nRETURN user.name, user.followers\\nORDER BY user.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the description and the cluster for those Topic where description starts with E!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description STARTS WITH 'E'\\nRETURN n.description AS description, n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which doi_id is 0ef3b1eb742dfb0bc64bdfab8ed422f1!"}, {"role": "assistant", "content": "MATCH (n:DOI {doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which ports are exposed by the interface with IP '10.0.0.254'?"}, {"role": "assistant", "content": "MATCH (i:Interface {ip: '10.0.0.254'})-[:EXPOSES]->(p:Port)\\nRETURN p.port"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 44 pages and Article, with abstract equal The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'44 pages'})-[*]-(e:Article{abstract:' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch abstract of the Article that are connected to Journal via PUBLISHED_IN where pages are at most 1-31!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.pages < '1-31'}\\nRETURN n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Journal for which name is Topology!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Topology'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 questions with a title containing 'error' or 'issue'."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.title CONTAINS 'error' OR q.title CONTAINS 'issue'\\nRETURN q\\nORDER BY q.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average revenue of the movies directed by the director of \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})<-[:CAST_FOR]-(d:Person)-[:CREW_FOR {job: 'Director'}]->(m)\\nWITH d\\nMATCH (d)-[:CREW_FOR {job: 'Director'}]->(otherMovies:Movie)\\nRETURN avg(otherMovies.revenue)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 actors by number of roles in adult films?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(a:Adult)\\nWITH p, COUNT(a) AS numRoles\\nORDER BY numRoles DESC\\nLIMIT 3\\nRETURN p.name AS actor, numRoles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the IMDb ratings of movies directed by François Lallement?"}, {"role": "assistant", "content": "MATCH (d:Director {name: \"François Lallement\"})-[:DIRECTED]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.imdbRating AS IMDbRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where label is Riemannian geometry_4 and share a common property with Topic, for which cluster equals 7?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'})-[r]->(n), (d:Topic{cluster:'7'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the title from Article where either title is An adelic causality problem related to abelian L-functions or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'An adelic causality problem related to abelian L-functions' OR n.title IS NOT NULL\\nRETURN DISTINCT n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a director who was born after 1960 and have generated over 100 million in revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 100000000 AND exists { (d:Director)-[:DIRECTED]->(m) \\nWHERE d.born > date('1960-01-01') }\\nRETURN m.title, m.revenue, m.year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which top 5 countries are most frequently listed as the beneficiary bank country in filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country IS NOT NULL\\nRETURN f.beneficiary_bank_country AS Country, count(f) AS FilingsCount\\nORDER BY FilingsCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all softwares that have a dependency on the application \"webserver\"."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})<-[:DEPENDS_ON]-(software:Software)\\nRETURN DISTINCT software.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have a color of '#FF7F50' and a size greater than 1.5?"}, {"role": "assistant", "content": "MATCH (user:User)\\nWHERE user.color = '#FF7F50' AND user.size > 1.5\\nRETURN count(user) AS numUsers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 tweets have the most replies?"}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nWHERE exists{ (t)<-[:REPLY_TO]-() }\\nRETURN t, count{(t)<-[:REPLY_TO]-()} AS replies\\nORDER BY replies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What languages are spoken in the movie with the highest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m\\nORDER BY m.budget DESC\\nLIMIT 1\\nMATCH (m)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nRETURN l.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 89-106 and retrieve the article_id of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '89-106'\\nWITH DISTINCT n, m\\nRETURN n.article_id AS article_id, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average incorporation year for all Entities registered in Hong Kong?"}, {"role": "assistant", "content": "MATCH (e:Entity {countries: \"Hong Kong\"})\\nWITH toInteger(substring(e.incorporation_date, 0, 4)) AS incorporationYear\\nRETURN avg(incorporationYear) AS averageIncorporationYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date of the most recent review written by 'Bob'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Bob'})-[:WROTE]->(r:Review)\\nRETURN max(r.date) AS mostRecentReviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 characters with the highest book1BetweennessCentrality."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality IS NOT NULL\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which Zone routes to Interface with IP '10.2.8.254'?"}, {"role": "assistant", "content": "MATCH (z:Zone)-[:ROUTES]->(i:Interface {ip: '10.2.8.254'})\\nRETURN z"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"RollerCoaster\": {\n \"properties\": {\n \"Opened\": \"STRING\",\n \"Name\": \"STRING\",\n \"Status\": \"STRING\",\n \"Speed\": \"STRING\",\n \"Country_ID\": \"INTEGER\",\n \"Park\": \"STRING\",\n \"Roller_Coaster_ID\": \"INTEGER\",\n \"Length\": \"FLOAT\",\n \"Height\": \"FLOAT\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Country_ID\": \"INTEGER\",\n \"Area\": \"INTEGER\",\n \"Population\": \"INTEGER\",\n \"Languages\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many roller coasters are there?"}, {"role": "assistant", "content": "MATCH (r:RollerCoaster)\\nRETURN count(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 most recent questions tagged with 'graphql-js'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql-js'})\\nRETURN q\\nORDER BY q.createdAt DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of statements."}, {"role": "assistant", "content": "MATCH (s:Statement)\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at UpdateDate where update_date is 2014-01-15 and traversing through Article with article_id 1013!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-01-15'})-[*]->(d:Article{article_id:'1013'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2011-11-10 and Keyword, with name equal gain, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2011-11-10'})-[*]-(e:Keyword{name:'gain'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Journal where journal_id ends with f7!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id =~'f7.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal where name is Commun.Math.Phys!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'Commun.Math.Phys'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated by at least 100 users?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count >= 100\\nRETURN m.title, m.vote_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the actors born in the same year as Tom Hanks?"}, {"role": "assistant", "content": "MATCH (tomHanks:Person {name: \"Tom Hanks\"})\\nMATCH (otherPerson:Person)\\nWHERE otherPerson.born = tomHanks.born\\nRETURN otherPerson.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have produced movies with the highest average popularity?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWITH pc, avg(m.popularity) AS avg_popularity\\nORDER BY avg_popularity DESC\\nLIMIT 3\\nRETURN pc.name AS ProductionCompany, avg_popularity AS AveragePopularity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Author for which last_name is Mason!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Mason'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of distinct names associated with the photos."}, {"role": "assistant", "content": "MATCH (p:Photo)\\nRETURN COUNT(DISTINCT p.Name)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies that have a character played by a person with gender 1?"}, {"role": "assistant", "content": "MATCH (p:Person)-[c:CAST_FOR]->(m:Movie)\\nWHERE p.gender = 1\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 tags that are associated with questions created before 2018."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.createdAt < datetime('2018-01-01T00:00:00Z')\\nRETURN t.name, COUNT(q) AS question_count\\nORDER BY question_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2007-05-23 and the year of the update_date is 2009!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2007-05-23' AND date(n.update_date).year = 2009\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with article_id equal to 2007, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'2007'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a popularity score above 15?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.popularity > 15\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ClubRank\": {\n \"properties\": {\n \"Bronze\": \"FLOAT\",\n \"Rank\": \"FLOAT\",\n \"Gold\": \"FLOAT\",\n \"Club_ID\": \"INTEGER\",\n \"Silver\": \"FLOAT\",\n \"Total\": \"FLOAT\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Goals\": \"STRING\",\n \"name\": \"STRING\",\n \"Tries\": \"FLOAT\",\n \"Apps\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Points\": \"FLOAT\",\n \"Player_ID\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"CompetitionResult\": {\n \"properties\": {\n \"Competition_ID\": \"INTEGER\",\n \"Club_ID_2\": \"INTEGER\",\n \"Club_ID_1\": \"INTEGER\",\n \"Score\": \"STRING\"\n }\n },\n \"Competition\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Competition_ID\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Competition_type\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "What are the maximum and minimum number of silver medals for all the clubs?"}, {"role": "assistant", "content": "MATCH (c:Club_rank)\\nRETURN max(c.Silver), min(c.Silver)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have an average vote less than 5 and have been produced in the country with ID 'US'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {id: 'US'})\\nWHERE m.average_vote < 5\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of tags in the database?"}, {"role": "assistant", "content": "MATCH (t:Tag)\\nRETURN count(t) AS totalTags"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"County\": {\n \"properties\": {\n \"County_name\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"County_Id\": \"INTEGER\",\n \"Zip_code\": \"STRING\"\n }\n },\n \"Election\": {\n \"properties\": {\n \"Election_ID\": \"INTEGER\",\n \"Committee\": \"STRING\",\n \"District\": \"INTEGER\",\n \"Party\": \"INTEGER\",\n \"Delegate\": \"STRING\",\n \"First_Elected\": \"FLOAT\",\n \"Counties_Represented\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Lieutenant_Governor\": \"STRING\",\n \"US_Senate\": \"STRING\",\n \"Governor\": \"STRING\",\n \"Party\": \"STRING\",\n \"Attorney_General\": \"STRING\",\n \"Comptroller\": \"STRING\",\n \"Party_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n }\n ]\n}"}, {"role": "user", "content": "Show the average population of all counties."}, {"role": "assistant", "content": "MATCH (c:County)\\nRETURN avg(c.Population)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where year is 2002 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2002'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tag is associated with the most questions?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWITH t, count(q) AS questionCount\\nRETURN t.name AS tagName, questionCount\\nORDER BY questionCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Article where title or comments contains An adelic causality problem related to abelian L-functions!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title CONTAINS 'An adelic causality problem related to abelian L-functions'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Article)\\nWHERE m.comments CONTAINS 'An adelic causality problem related to abelian L-functions'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 users who are VIPs in streams with a name containing 'big'."}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWHERE s.name CONTAINS 'big'\\nRETURN u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What department section does the 'Johanna' belong to?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:FROM_DEPARTMENT]->(d:Department)\\nWHERE a.prodName = 'Johanna'\\nRETURN d.sectionNo, d.sectionName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to In this paper we study the smallest Mealy automaton of intermediate growth,\nfirst considered by the last two authors. We describe the automatic\ntransformation monoid it defines, give a formula for the generating series for\nits (ball volume) growth function, and give sharp asymptotics for its growth\nfunction, namely [ F(n) \\sim 2^{5/2} 3^{3/4} \\pi^{-2} n^{1/4}\n\\exp{\\pi\\sqrt{n/6}} ] with the ratios of left- to right-hand side tending to 1\nas $n \\to \\infty$.\n, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' In this paper we study the smallest Mealy automaton of intermediate growth, first considered by the last two authors. We describe the automatic transformation monoid it defines, give a formula for the generating series for its (ball volume) growth function, and give sharp asymptotics for its growth function, namely [ F(n) \\sim 2^{5/2} 3^{3/4} \\pi^{-2} n^{1/4} \\exp{\\pi\\sqrt{n/6}} ] with the ratios of left- to right-hand side tending to 1 as $n \\to \\infty$. '})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a book1PageRank exactly 0.15000000000000002?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank = 0.15000000000000002\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Author for which first_name is R., with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'R.'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Keyword for which name is exponentially growing!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'exponentially growing'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which is most upvoted question in 2022?\""}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(:Tag)\\nWHERE q.createdAt >= datetime('2022-01-01T00:00:00') AND q.createdAt < datetime('2023-01-01T00:00:00')\\nRETURN q.title, q.upVotes\\nORDER BY q.upVotes DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 adult films have the lowest average vote?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nRETURN a.title, a.average_vote\\nORDER BY a.average_vote ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have the most user moderators."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(u:User)\\nWITH s, COUNT(u) AS moderator_count\\nORDER BY moderator_count DESC\\nLIMIT 5\\nRETURN s.name AS stream_name, moderator_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"area_code_state\": {\n \"properties\": {\n \"area_code\": \"STRING\",\n \"state\": \"STRING\"\n }\n },\n \"contestants\": {\n \"properties\": {\n \"contestant_number\": \"STRING\",\n \"contestant_name ( Tabatha Gehling )\": \"STRING\"\n }\n },\n \"votes\": {\n \"properties\": {\n \"vote_id\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state\": \"STRING\",\n \"contestant_number\": \"STRING\",\n \"created\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of the contestants whose names are not 'Jessie Alloway'"}, {"role": "assistant", "content": "MATCH (contestants:CONTESTANTS)\\nWHERE contestants.contestant_name <> 'Jessie Alloway'\\nRETURN contestants.contestant_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that are both moderated and have VIP users, and list their names."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->()\\nMATCH (s)-[:VIP]->()\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have 'unitsInStock' exactly 0 and are not discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock = 0 AND p.discontinued = false\\nRETURN p.productName, p.productID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters with the highest degree?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.degree\\nORDER BY c.degree DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Author where author_id is ee24bab93b9531431f442226dd453745 and list their properties, including those of Author!"}, {"role": "assistant", "content": "MATCH (b:Author)-[r]->(n)\\nWHERE b.author_id = 'ee24bab93b9531431f442226dd453745'\\nRETURN properties(b) AS Author_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Item\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"i_id\": \"INTEGER\"\n }\n },\n \"Trust\": {\n \"properties\": {\n \"target_u_id\": \"INTEGER\",\n \"trust\": \"INTEGER\",\n \"source_u_id\": \"INTEGER\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"rank\": \"INTEGER\",\n \"a_id\": \"INTEGER\",\n \"i_id\": \"INTEGER\",\n \"rating\": \"INTEGER\",\n \"u_id\": \"INTEGER\"\n }\n },\n \"Useracct\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"u_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Trust\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Useracct\"\n },\n {\n \"from\": \"Trust\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Useracct\"\n }\n ]\n}"}, {"role": "user", "content": "Find the highest rank of all reviews."}, {"role": "assistant", "content": "MATCH (r:Review)\\nRETURN min(r.rank)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Categories for which category_id is 978aee6db23fc939cec71ac05eb15b7a, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the entities that the officer with name \"MOSSFON SUBSCRIBERS LTD.\" is an officer of?"}, {"role": "assistant", "content": "MATCH (o:Officer {name: \"MOSSFON SUBSCRIBERS LTD.\"})-[r:officer_of]->(e:Entity)\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers have supplied products that are currently discontinued?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.discontinued = true\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Report where report_no is SPbU-IP-00-03 and traversing through Topic with description Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'SPbU-IP-00-03'})-[*]->(d:Topic{description:'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have been tagged with the keyword 'jealousy'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'jealousy'})\\nRETURN m.title\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Reviewer\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Rating\": {\n \"properties\": {\n \"mID\": \"INTEGER\",\n \"stars\": \"INTEGER\",\n \"ratingDate\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"mID\": \"INTEGER\",\n \"year\": \"INTEGER\",\n \"director\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all directors who made one movie?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m.director AS director, COUNT(*) AS count\\nWHERE count = 1\\nRETURN director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Keyword where name ends with lo!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name =~'lo.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 actors who have acted in movies with at least three different directors."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(d:Director)\\nWITH a, m, count(DISTINCT d) AS numDirectors\\nWHERE numDirectors >= 3\\nRETURN a.name, count(DISTINCT m) AS moviesWithThreeDirectors\\nORDER BY moviesWithThreeDirectors DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Topic where description is Collection of techniques and methods for studying the limiting behavior of functions, sequences, and series as certain parameters approach infinity or other special values. Includes concepts such as asymptotic expansions, asymptotic normality, scaling behavior, and Jost asymptotics. Emphasizes the study of asymptotic properties, asymptotic solutions, and asymptotic optimality. Also encompasses topics like approximate normality, asymptotic equivalents, asymptotic expansion of risk difference, and asymptotic relations. May involve the use of O(m log(m B)) notation to describe and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Collection of techniques and methods for studying the limiting behavior of functions, sequences, and series as certain parameters approach infinity or other special values. Includes concepts such as asymptotic expansions, asymptotic normality, scaling behavior, and Jost asymptotics. Emphasizes the study of asymptotic properties, asymptotic solutions, and asymptotic optimality. Also encompasses topics like approximate normality, asymptotic equivalents, asymptotic expansion of risk difference, and asymptotic relations. May involve the use of O(m log(m B)) notation to describe'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names of businesses located at '313 N 1st St W' and their review texts."}, {"role": "assistant", "content": "MATCH (b:Business {address: '313 N 1st St W'})-[:REVIEWS]->(r:Review)\\nRETURN b.name AS BusinessName, r.text AS ReviewText"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which tweets by 'neo4j' have the highest number of favorites?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nRETURN t.text, t.favorites\\nORDER BY t.favorites DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 highest grossing movies in the genre 'Action'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Action'})\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"last_update\": \"STRING\",\n \"create_date\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"email\": \"STRING\",\n \"last_name\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"active\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"name\": \"STRING\",\n \"category_id\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"actor_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"last_name\": \"STRING\"\n }\n },\n \"Rental\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"return_date\": \"STRING\",\n \"rental_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"rental_rate\": \"FLOAT\",\n \"rental_duration\": \"INTEGER\",\n \"language_id\": \"INTEGER\",\n \"title\": \"STRING\",\n \"last_update\": \"STRING\",\n \"description\": \"STRING\",\n \"release_year\": \"INTEGER\",\n \"length\": \"INTEGER\",\n \"replacement_cost\": \"FLOAT\",\n \"rating\": \"STRING\",\n \"film_id\": \"INTEGER\",\n \"special_features\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Inventory\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"film_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\"\n }\n },\n \"Addres\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"phone\": \"STRING\",\n \"last_update\": \"STRING\",\n \"address\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"postal_code\": \"STRING\",\n \"address2\": \"STRING\",\n \"district\": \"STRING\"\n }\n },\n \"City\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"last_update\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"payment_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n }\n ],\n \"relationshipProperties\": {\n \"STARS_IN\": {\n \"last_update\": \"STRING\"\n },\n \"RELATED_TO\": {\n \"last_update\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa."}, {"role": "assistant", "content": "MATCH (p:Payment)\\nWHERE p.amount > 10\\nRETURN p.Payment_date\\nUNION\\nMATCH (s:staff)-[:WORKS_WITH]->(t:team), (p:player)<-[:PLAYS_FOR]-(t)\\nWHERE s.first_name = 'Elsa' AND NOT (p)-[:PLAYS_FOR]-()\\nRETURN p.Payment_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the update_date of the UpdateDate that is not related to the Article with the article_id 1069!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Article {article_id: '1069'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Interaction\": {\n \"properties\": {\n \"timestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"outcome\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Contact\": {\n \"properties\": {\n \"phone\": \"STRING\",\n \"address\": \"STRING\",\n \"email\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"issues\": \"STRING\",\n \"preferences\": \"STRING\"\n }\n },\n \"Lead\": {\n \"properties\": {\n \"source\": \"STRING\",\n \"name\": \"STRING\",\n \"contact\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Interaction\",\n \"type\": \"INTERACTION_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PURCHASED\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"CONTACT_FOR\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Interaction\",\n \"type\": \"INTERACTION_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"CONTACT_FOR\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PURCHASED\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Lead\",\n \"type\": \"BECAME\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Lead\",\n \"type\": \"BECAME\",\n \"to\": \"Account\"\n }\n ],\n \"relationshipProperties\": {\n \"PURCHASED\": {\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which account that has 'Customer Service' as an issue has the most interactions?"}, {"role": "assistant", "content": "MATCH (a:Account)<-[:INTERACTION_WITH]-(i:Interaction)\\nWHERE 'Customer Service' in a.issues\\nWITH a, COUNT(i) AS interactionCount\\nORDER BY interactionCount DESC\\nLIMIT 1\\nRETURN a.name as accountName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is Lionel J. and Article, for which title is Maslov class and minimality in Calabi-Yau manifolds?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Lionel J.'}), (b:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 actors by the number of movies they have appeared in?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWITH p, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5\\nRETURN p.name AS actor, movie_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where specifications is cs.CC and Journal, for which name equals Geom. Topol?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'cs.CC'})-[*]->(d:Journal{name:'Geom. Topol'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 tweets that mention 'Neo4j' and have more than 100 favorites."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nWHERE t.favorites > 100\\nRETURN t\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Author for which author_id is ee24bab93b9531431f442226dd453745, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'ee24bab93b9531431f442226dd453745'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where title is Chow groups of weighted hypersurfaces and Article, for which comments equals 22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor\n revisions. This version should closely match the published version?"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Chow groups of weighted hypersurfaces'})-[*]->(d:Article{comments:'22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor revisions. This version should closely match the published version'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies that are not part of any collection?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE NOT (m)-[:IN_COLLECTION]->(:Collection)\\nRETURN m.title AS MovieTitle\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has abstract The classical level set method, which represents the boundary of the unknown\ngeometry as the zero-level set of a function, has been shown to be very\neffective in solving shape optimization problems. The present work addresses\nthe issue of using a level set representation when there are simple geometrical\nand topological constraints. We propose a logarithmic barrier penalty which\nacts to enforce the constraints, leading to an approximate solution to shape\ndesign problems.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' The classical level set method, which represents the boundary of the unknown geometry as the zero-level set of a function, has been shown to be very effective in solving shape optimization problems. The present work addresses the issue of using a level set representation when there are simple geometrical and topological constraints. We propose a logarithmic barrier penalty which acts to enforce the constraints, leading to an approximate solution to shape design problems. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the \"countries\" values of all Entities that are linked to an Intermediary with the \"status\" of \"SUSPENDED\"."}, {"role": "assistant", "content": "MATCH (i:Intermediary {status: 'SUSPENDED'})-[:intermediary_of]->(e:Entity)\\nRETURN DISTINCT e.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of movies released before 1980?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 1980\\nRETURN avg(m.runtime) AS average_runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have the highest number of unique games played?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, COUNT(DISTINCT g) AS uniqueGames\\nORDER BY uniqueGames DESC\\nLIMIT 1\\nRETURN s.name AS streamName, uniqueGames"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from UpdateDate with update_date equal to 2017-07-11!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate)-[*3]->(n)\\nWHERE a.update_date = '2017-07-11'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"highschooler\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"grade\": \"STRING\"\n }\n },\n \"friend\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"friend_id\": \"STRING\"\n }\n },\n \"likes\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"liked_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of high schoolers."}, {"role": "assistant", "content": "MATCH (highschooler:Highschooler)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 suppliers have the least number of products listed?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, count(p) AS numProducts\\nORDER BY numProducts ASC\\nLIMIT 3\\nRETURN s.companyName, numProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Categories where category_id is 33657234da1dc070ea09e7c31bb86abb and traversing through Article with article_id 1071!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'})-[*]->(d:Article{article_id:'1071'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a language named after a country code 'en'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name AS stream_name, s.url AS stream_url"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"last_update\": \"STRING\",\n \"create_date\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"email\": \"STRING\",\n \"last_name\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"active\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"name\": \"STRING\",\n \"category_id\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"actor_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"last_name\": \"STRING\"\n }\n },\n \"Rental\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"return_date\": \"STRING\",\n \"rental_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"rental_rate\": \"FLOAT\",\n \"rental_duration\": \"INTEGER\",\n \"language_id\": \"INTEGER\",\n \"title\": \"STRING\",\n \"last_update\": \"STRING\",\n \"description\": \"STRING\",\n \"release_year\": \"INTEGER\",\n \"length\": \"INTEGER\",\n \"replacement_cost\": \"FLOAT\",\n \"rating\": \"STRING\",\n \"film_id\": \"INTEGER\",\n \"special_features\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Inventory\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"film_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\"\n }\n },\n \"Addres\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"phone\": \"STRING\",\n \"last_update\": \"STRING\",\n \"address\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"postal_code\": \"STRING\",\n \"address2\": \"STRING\",\n \"district\": \"STRING\"\n }\n },\n \"City\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"last_update\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"payment_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n }\n ],\n \"relationshipProperties\": {\n \"STARS_IN\": {\n \"last_update\": \"STRING\"\n },\n \"RELATED_TO\": {\n \"last_update\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "When did the first payment happen?"}, {"role": "assistant", "content": "MATCH (p:Payment)\\nRETURN p.Payment_date\\nORDER BY p.Payment_date ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Provide details of questions with a score greater than 5 and tagged with 'graphql-js'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql-js'})\\nWHERE q.score > 5\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Customer_ID\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"FLOAT\",\n \"Workshop_Group_ID\": \"INTEGER\",\n \"Service_Type_Code\": \"STRING\"\n }\n },\n \"RefPaymentMethod\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"payment_method_description\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"INTEGER\",\n \"Product_ID\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Store_Email_Address\": \"STRING\",\n \"Store_Phone\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Store_ID\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"InvoiceItem\": {\n \"properties\": {\n \"Invoice_Item_ID\": \"INTEGER\",\n \"Order_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Quantity\": \"INTEGER\",\n \"Invoice_ID\": \"INTEGER\",\n \"Other_Item_Details\": \"STRING\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"Order_Date\": \"STRING\",\n \"Actual_Delivery_Date\": \"STRING\",\n \"Order_ID\": \"INTEGER\",\n \"Planned_Delivery_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"Order_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Quantity\": \"STRING\",\n \"Invoice_ID\": \"INTEGER\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"MarketingRegion\": {\n \"properties\": {\n \"Marketing_Region_Name\": \"STRING\",\n \"Marketing_Region_Descriptrion\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"Booking\": {\n \"properties\": {\n \"Order_Date\": \"STRING\",\n \"Actual_Delivery_Date\": \"STRING\",\n \"Workshop_Group_ID\": \"STRING\",\n \"Booking_ID\": \"INTEGER\",\n \"Status_Code\": \"STRING\",\n \"Planned_Delivery_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Performer\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Performer_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n },\n \"RefServiceType\": {\n \"properties\": {\n \"Service_Type_Description\": \"STRING\",\n \"Parent_Service_Type_Code\": \"STRING\",\n \"Service_Type_Code\": \"STRING\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"Order_ID\": \"INTEGER\",\n \"Order_Quantity\": \"STRING\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"DramaWorkshopGroup\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Currency_Code\": \"STRING\",\n \"Workshop_Group_ID\": \"INTEGER\",\n \"Store_Email_Address\": \"STRING\",\n \"Store_Phone\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"State_County\": \"STRING\",\n \"City_Town\": \"STRING\",\n \"Address_ID\": \"STRING\",\n \"Line_2\": \"STRING\",\n \"Line_1\": \"STRING\"\n }\n },\n \"Client\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Client_ID\": \"INTEGER\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDES\",\n \"to\": \"DramaWorkshopGroup\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefServiceType\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Performer\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Performer\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefServiceType\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDES\",\n \"to\": \"DramaWorkshopGroup\"\n }\n ]\n}"}, {"role": "user", "content": "Show all payment method codes and the number of orders for each code."}, {"role": "assistant", "content": "MATCH (i:Invoice)\\nRETURN i.payment_method_code, COUNT(i)\\nORDER BY i.payment_method_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business has received the most reviews in 2018?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2018-01-01') AND r.date <= date('2018-12-31')\\nRETURN b.name, count(r) AS reviews_count\\nORDER BY reviews_count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Categories and Report, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*]-(n)-[*]-(b:Report)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 reviews with the earliest review dates."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r.reviewId, r.date, r.text, r.stars, u.name, b.name\\nORDER BY r.date ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where label is Mathematical Analysis_8 and Author, for which last_name equals Dougherty?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{label:'Mathematical Analysis_8'})-[*]->(d:Author{last_name:'Dougherty'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 countries where most adult films are produced?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH c.name AS country, COUNT(a) AS num_adult_films\\nORDER BY num_adult_films DESC\\nLIMIT 5\\nRETURN country, num_adult_films"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which abstract is The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_no for Report combined with the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:DOI)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Topic where cluster is 8?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'8'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Categories where category_id is f294e61ea01b3678d7cd02b973bb71da and traversing through Keyword with key_id 72e4f3fc2930bd3a0a7730a664d069d6!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'f294e61ea01b3678d7cd02b973bb71da'})-[*]->(d:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common language spoken in movies, excluding English?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nWHERE l.id <> 'en'\\nWITH l.name AS language, count(*) AS count\\nORDER BY count DESC\\nRETURN language, count\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either name is 10.1016/S0393-0440(00)00003-6 or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1016/S0393-0440(00)00003-6' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all products with 'unitPrice' less than 5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitPrice < 5\\nRETURN p.productName, p.unitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the tweets that 'neo4j' has retweeted from users with a lower follower count."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweeted:Tweet)<-[:POSTS]-(user:User)\\nWHERE user.followers < me.followers\\nRETURN user.screen_name, retweeted.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have written reviews for businesses with a businessId containing the letter \"b\"?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.businessId CONTAINS 'b'\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nMATCH (r)<-[:WROTE]-(u:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 processes with the earliest start times."}, {"role": "assistant", "content": "MATCH (p:Process)\\nRETURN p.name, p.startTime\\nORDER BY p.startTime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of streams that have at least one moderator and one VIP who are different users and belong to a team created before 2017 and have more than 50,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE (s)-[:MODERATOR]->(:User) AND (s)-[:VIP]->(:User)\\nMATCH (s)-[:MODERATOR]->(m:User), (s)-[:VIP]->(v:User)\\nWHERE m <> v\\nMATCH (s)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2017-01-01T00:00:00Z') AND s.followers > 50000\\nWITH DISTINCT s\\nRETURN count(s) AS streamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the shortest path between the stream with the highest follower count and the game \"Rust\"."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s\\nORDER BY s.followers DESC\\nLIMIT 1\\nMATCH p = shortestPath((s)-[*]-(g:Game {name: 'Rust'}))\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 genres have the most videos associated with them?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(v) as videoCount\\nRETURN g.name as genre, videoCount\\nORDER BY videoCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the DOI where doi_id or doi_id contains ee4af8f04acefe1036a78a4436691f55!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id CONTAINS 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.doi_id CONTAINS 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"poker_player\": {\n \"properties\": {\n \"poker_player_id\": \"STRING\",\n \"people_id\": \"STRING\",\n \"final_table_made\": \"STRING\",\n \"best_finish\": \"STRING\",\n \"money_rank\": \"STRING\",\n \"earnings\": \"STRING\"\n }\n },\n \"people\": {\n \"properties\": {\n \"people_id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_date\": \"STRING\",\n \"height\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the birth date of the poker player with the lowest earnings?"}, {"role": "assistant", "content": "MATCH (T1:people)-[]-(T2:poker_player)\\nRETURN T1.Birth_Date\\nORDER BY T2.Earnings ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Artwork\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Artwork_ID\": \"INTEGER\",\n \"Type\": \"STRING\"\n }\n },\n \"FestivalDetail\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Festival_Name\": \"STRING\",\n \"Chair_Name\": \"STRING\",\n \"Num_of_Audience\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Festival_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n },\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n }\n ],\n \"relationshipProperties\": {\n \"DISPLAYS\": {\n \"Result\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the most common type of artworks."}, {"role": "assistant", "content": "MATCH (a:Artwork)\\nWITH a.Type AS Type, COUNT(a) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Type"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where category_id is eea477d68b70c3a05be12567240033ef and Topic, with description equal The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'eea477d68b70c3a05be12567240033ef'})-[*]-(e:Topic{description:'The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the comments values from 20 Article that are linked to Author via WRITTEN_BY and return comments along with the respective Author counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Report where report_id is e5e11665c21162413ab43704232c83c4 and Categories, for which category_id equals 994d468c3f0dd780baf58c6d7f205afd?"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'e5e11665c21162413ab43704232c83c4'})-[*]->(d:Categories{category_id:'994d468c3f0dd780baf58c6d7f205afd'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters with the lowest book1PageRank?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c\\nORDER BY c.book1PageRank ASC\\nLIMIT 5\\nRETURN c.name, c.book1PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the users who follow \"Neo4j\" and have posted tweets using the \"Buffer\" source."}, {"role": "assistant", "content": "MATCH (neo:User {name: 'Neo4j'})\\nMATCH (follower:User)-[:FOLLOWS]->(neo)\\nMATCH (follower)-[:POSTS]->(tweet:Tweet)-[:USING]->(source:Source {name: 'Buffer'})\\nRETURN DISTINCT follower.screen_name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What color does 'Bella Biker Leggings' have?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Bella Biker Leggings'})\\nRETURN a.colourGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 tweets by 'Me' using a specific source named 'Buffer'."}, {"role": "assistant", "content": "MATCH (me:Me)-[:POSTS]->(tweet:Tweet)-[:USING]->(source:Source {name: 'Buffer'})\\nRETURN tweet.text, tweet.favorites\\nORDER BY tweet.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 adult films with a tagline containing the word 'sex'."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.tagline CONTAINS 'sex'\\nRETURN a\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "How many filings are there with an originator bank from 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country {name: 'United Kingdom'})\\nRETURN count(f) AS number_of_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 questions that have been downvoted at least 5 times?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.downVotes >= 5\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have an 'average_vote' greater than 8."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote > 8\\nRETURN m.title, m.average_vote\\nORDER BY m.average_vote DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which key_id starts with 6, skip the first 2 records and return the next 2 records of key_id!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id STARTS WITH '6'\\nWITH n.key_id AS key_id SKIP 2\\nLIMIT 2\\nRETURN key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 customers have ordered the most products from the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category {categoryName: \"Dairy Products\"})\\nWITH c, count(p) AS products_ordered\\nORDER BY products_ordered DESC\\nLIMIT 3\\nRETURN c.companyName, products_ordered"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 3 latest movies rated by user with id 1?"}, {"role": "assistant", "content": "MATCH (u:User {id: 1})-[:RATED]->(m:Movie)\\nRETURN m\\nORDER BY m.release_date DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with pages equal to 131-170, connected to Article that has article_id equal to 6150?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '131-170'}]->(m:Journal)\\nWHERE n.article_id = '6150'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is cs.CC and Article, for which comments is Latex, 9 pages, no figures?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'}), (b:Article{comments:'Latex, 9 pages, no figures'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of votes for movies released in the 1980s?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 1980 AND m.released < 1990\\nRETURN avg(m.votes) AS average_votes_1980s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find comments of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 263-281!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '263-281'\\nRETURN n.comments AS comments, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the first_name for Author combined with the comments for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.first_name AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are followed by 'neo4j' and have more than 500 followers?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:FOLLOWS]->(f:User)\\nWHERE f.followers > 500\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 IP addresses of interfaces connected to the router named 'DC1-R-1'."}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-R-1'})-[:ROUTES]->(i:Interface)\\nRETURN i.ip AS IPAddress\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Journal via PUBLISHED_IN with meta = 213, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta='213'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ProblemCategoryCode\": {\n \"properties\": {\n \"problem_category_description\": \"STRING\",\n \"problem_category_code\": \"STRING\"\n }\n },\n \"Problem\": {\n \"properties\": {\n \"problem_id\": \"INTEGER\",\n \"closure_authorised_by_staff_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"problem_description\": \"STRING\",\n \"date_problem_reported\": \"STRING\",\n \"other_problem_details\": \"STRING\",\n \"date_problem_closed\": \"STRING\",\n \"reported_by_staff_id\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"staff_first_name\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"staff_last_name\": \"STRING\",\n \"other_staff_details\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_details\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\"\n }\n },\n \"ProblemStatusCode\": {\n \"properties\": {\n \"problem_status_code\": \"STRING\",\n \"problem_status_description\": \"STRING\"\n }\n },\n \"ProblemLog\": {\n \"properties\": {\n \"problem_log_id\": \"INTEGER\",\n \"problem_id\": \"INTEGER\",\n \"assigned_to_staff_id\": \"INTEGER\",\n \"problem_status_code\": \"STRING\",\n \"log_entry_date\": \"STRING\",\n \"log_entry_fix\": \"STRING\",\n \"problem_category_code\": \"STRING\",\n \"other_log_details\": \"STRING\",\n \"log_entry_description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Problem\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Problem\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Problem\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Problem\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the ids of the problems which are reported before 1978-06-26?"}, {"role": "assistant", "content": "MATCH (p:Problem)\\nWHERE p.date_problem_reported < \"1978-06-26\"\\nRETURN p.problem_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its comments and the count of Journal linked via PUBLISHED_IN where year is not '2000', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year <> '2000'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 'ip' addresses of 'Switch' nodes in 'rack' 1?"}, {"role": "assistant", "content": "MATCH (r:Rack {rack: 1})-[ :HOLDS ]->(s:Switch)\\nRETURN s.ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the lastEditTimestamp of the address with node_id 14048584?"}, {"role": "assistant", "content": "MATCH (a:Address {node_id: 14048584})\\nRETURN a.lastEditTimestamp"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer_ID\": \"INTEGER\",\n \"Num_of_Factories\": \"INTEGER\",\n \"Open_Year\": \"FLOAT\",\n \"Num_of_Shops\": \"INTEGER\"\n }\n },\n \"Furniture\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Market_Rate\": \"FLOAT\",\n \"Num_of_Component\": \"INTEGER\",\n \"Furniture_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Furniture\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Furniture\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ],\n \"relationshipProperties\": {\n \"PRODUCED_BY\": {\n \"Price_in_Dollar\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops."}, {"role": "assistant", "content": "MATCH (m:Manufacturer)\\nWHERE m.Num_of_Shops > 10 OR m.Num_of_Factories < 10\\nRETURN m.Name, m.Open_Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"payment_method\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"product_description\": \"STRING\"\n }\n },\n \"RegularOrder\": {\n \"properties\": {\n \"distributer_id\": \"INTEGER\",\n \"regular_order_id\": \"INTEGER\"\n }\n },\n \"DeliveryRouteLocation\": {\n \"properties\": {\n \"location_name\": \"STRING\",\n \"route_id\": \"INTEGER\",\n \"location_code\": \"STRING\",\n \"location_address_id\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"employee_address_id\": \"INTEGER\",\n \"employee_phone\": \"STRING\",\n \"employee_id\": \"INTEGER\",\n \"employee_name\": \"STRING\"\n }\n },\n \"ActualOrderProduct\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"actual_order_id\": \"INTEGER\"\n }\n },\n \"CustomerAddress\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"date_to\": \"STRING\",\n \"address_type\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Truck\": {\n \"properties\": {\n \"truck_details\": \"STRING\",\n \"truck_licence_number\": \"STRING\",\n \"truck_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"DeliveryRoute\": {\n \"properties\": {\n \"other_route_details\": \"STRING\",\n \"route_id\": \"INTEGER\",\n \"route_name\": \"STRING\"\n }\n },\n \"ActualOrder\": {\n \"properties\": {\n \"actual_order_date\": \"STRING\",\n \"actual_order_id\": \"INTEGER\",\n \"regular_order_id\": \"INTEGER\",\n \"order_status_code\": \"STRING\"\n }\n },\n \"RegularOrderProduct\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"regular_order_id\": \"INTEGER\"\n }\n },\n \"OrderDelivery\": {\n \"properties\": {\n \"location_code\": \"STRING\",\n \"driver_employee_id\": \"INTEGER\",\n \"delivery_date\": \"STRING\",\n \"actual_order_id\": \"INTEGER\",\n \"delivery_status_code\": \"STRING\",\n \"truck_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"RegularOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ActualOrderProduct\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"RegularOrderProduct\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"RegularOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ActualOrder\",\n \"type\": \"PART_OF\",\n \"to\": \"RegularOrder\"\n },\n {\n \"from\": \"RegularOrderProduct\",\n \"type\": \"PART_OF\",\n \"to\": \"RegularOrder\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"DELIVERS_TO\",\n \"to\": \"DeliveryRouteLocation\"\n },\n {\n \"from\": \"DeliveryRouteLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"DeliveryRouteLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"DeliveryRoute\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"ActualOrderProduct\",\n \"type\": \"FULFILLS\",\n \"to\": \"ActualOrder\"\n },\n {\n \"from\": \"ActualOrderProduct\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"TRANSPORTS\",\n \"to\": \"Truck\"\n },\n {\n \"from\": \"DeliveryRouteLocation\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Employee\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"DeliveryRouteLocation\",\n \"type\": \"CONTAINS\",\n \"to\": \"DeliveryRoute\"\n },\n {\n \"from\": \"ActualOrderProduct\",\n \"type\": \"FULFILLS\",\n \"to\": \"ActualOrder\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"FULFILLS\",\n \"to\": \"ActualOrder\"\n },\n {\n \"from\": \"ActualOrder\",\n \"type\": \"PART_OF\",\n \"to\": \"RegularOrder\"\n },\n {\n \"from\": \"RegularOrderProduct\",\n \"type\": \"PART_OF\",\n \"to\": \"RegularOrder\"\n },\n {\n \"from\": \"RegularOrderProduct\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"DELIVERS_TO\",\n \"to\": \"DeliveryRouteLocation\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"FULFILLS\",\n \"to\": \"ActualOrder\"\n },\n {\n \"from\": \"OrderDelivery\",\n \"type\": \"TRANSPORTS\",\n \"to\": \"Truck\"\n }\n ]\n}"}, {"role": "user", "content": "Show the details of all trucks in the order of their license number."}, {"role": "assistant", "content": "MATCH (t:Truck)\\nRETURN t.truck_details\\nORDER BY t.truck_licence_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[r:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from DOI for which doi_id=f2f5ea4787de1e16c51c306e07bb740c!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Article for which abstract is The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Characteristic\": {\n \"properties\": {\n \"characteristic_name\": \"STRING\",\n \"characteristic_id\": \"INTEGER\",\n \"characteristic_data_type\": \"STRING\",\n \"characteristic_type_code\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_category_code\": \"STRING\",\n \"typical_buying_price\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"color_code\": \"STRING\",\n \"typical_selling_price\": \"STRING\",\n \"product_description\": \"STRING\"\n }\n },\n \"RefCharacteristicType\": {\n \"properties\": {\n \"characteristic_type_code\": \"STRING\",\n \"characteristic_type_description\": \"STRING\"\n }\n },\n \"RefColor\": {\n \"properties\": {\n \"color_code\": \"STRING\",\n \"color_description\": \"STRING\"\n }\n },\n \"RefProductCategory\": {\n \"properties\": {\n \"unit_of_measure\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_category_description\": \"STRING\"\n }\n },\n \"ProductCharacteristic\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"characteristic_id\": \"INTEGER\",\n \"product_characteristic_value\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "How many products have the characteristic named \"hot\"?"}, {"role": "assistant", "content": "MATCH (p:Product)<-[:HAS]-(pc:Product_Characteristic)-[:HAS]->(c:Characteristic)\\nWHERE c.characteristic_name = \"hot\"\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Sportsinfo\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"SportName\": \"STRING\",\n \"HoursPerWeek\": \"INTEGER\",\n \"OnScholarship\": \"STRING\",\n \"GamesPlayed\": \"INTEGER\"\n }\n },\n \"PlaysGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"StuID\": \"INTEGER\",\n \"Hours_Played\": \"INTEGER\"\n }\n },\n \"VideoGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"GType\": \"STRING\",\n \"GName\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n }\n ]\n}"}, {"role": "user", "content": "What are ids and total number of hours played for each game?"}, {"role": "assistant", "content": "MATCH (g:PlaysGame)\\nRETURN g.GameID, SUM(g.Hours_Played)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users with the highest betweenness have tweeted about 'education'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:TAGS]->(:Hashtag {name: 'education'})\\nWHERE u.betweenness IS NOT NULL\\nRETURN u.screen_name, u.betweenness\\nORDER BY u.betweenness DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count IS NOT NULL\\nRETURN m.title, m.vote_count\\nORDER BY m.vote_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"breeds\": {\n \"properties\": {\n \"breed_code\": \"STRING\",\n \"breed_name\": \"STRING\"\n }\n },\n \"charges\": {\n \"properties\": {\n \"charge_id\": \"STRING\",\n \"charge_type\": \"STRING\",\n \"charge_amount\": \"STRING\"\n }\n },\n \"sizes\": {\n \"properties\": {\n \"size_code\": \"STRING\",\n \"size_description\": \"STRING\"\n }\n },\n \"treatment_types\": {\n \"properties\": {\n \"treatment_type_code\": \"STRING\",\n \"treatment_type_description\": \"STRING\"\n }\n },\n \"owners\": {\n \"properties\": {\n \"owner_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"dogs\": {\n \"properties\": {\n \"dog_id\": \"STRING\",\n \"owner_id\": \"STRING\",\n \"abandoned_yn\": \"STRING\",\n \"breed_code\": \"STRING\",\n \"size_code\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"gender\": \"STRING\",\n \"weight\": \"STRING\",\n \"date_arrived\": \"STRING\",\n \"date_adopted\": \"STRING\",\n \"date_departed\": \"STRING\"\n }\n },\n \"professionals\": {\n \"properties\": {\n \"professional_id\": \"STRING\",\n \"role_code\": \"STRING\",\n \"first_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"last_name\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"treatments\": {\n \"properties\": {\n \"treatment_id\": \"STRING\",\n \"dog_id\": \"STRING\",\n \"professional_id\": \"STRING\",\n \"treatment_type_code\": \"STRING\",\n \"date_of_treatment\": \"STRING\",\n \"cost_of_treatment\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state."}, {"role": "assistant", "content": "MATCH (professionals:Professionals)\\nWHERE professionals.city =~'.*[W|w]est.*'\\nRETURN professionals.role_code,professionals.street,professionals.city,professionals.state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has title Maslov class and minimality in Calabi-Yau manifolds!"}, {"role": "assistant", "content": "MATCH path=(:Article {title:'Maslov class and minimality in Calabi-Yau manifolds'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies that have no revenue recorded?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NULL OR m.revenue = 0\\nRETURN m.title, m.id\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 movies released in 1995."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 1995\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Topic with label equal to Population Dynamics_0!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.label = 'Population Dynamics_0'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of countries where the beneficiary bank of the filing is located. Limit to top 5 results."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT c.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 packages by the number of subscriptions associated with them."}, {"role": "assistant", "content": "MATCH (p:Package)<-[:FOR_PACKAGE]-(s:Subscription)\\nRETURN p.name AS PackageName, count(s) AS SubscriptionsCount\\nORDER BY SubscriptionsCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 games are mostly played by streams with a total view count exceeding 100 million?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 100000000\\nRETURN g.name, count(s) AS stream_count\\nORDER BY stream_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which reviews were written by 'Will'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)\\nRETURN r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters by book1BetweennessCentrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the teams that have streams with more than 5,000 followers and have at least one VIP who also plays \"Rust\" and have at least one moderator and have at least one chatter?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 5000\\nMATCH (s)-[:HAS_TEAM]->(t:Team), (s)-[:VIP]->(vip)-[:PLAYS]->(g:Game { name: \"Rust\" }), (s)-[:MODERATOR]->(:User), (s)-[:CHATTER]->(:User)\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where abstract is An inclusion of observable nets satisfying duality induces an inclusion of\ncanonical field nets. Any Bose net intermediate between the observable net and\nthe field net and satisfying duality is the fixed-point net of the field net\nunder a compact group. This compact group is its canonical gauge group if the\noccurrence of sectors with infinite statistics can be ruled out for the\nobservable net and its vacuum Hilbert space is separable.\n and PUBLISHED_IN has pages on 263-281!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '263-281'}]->(m)\\nWHERE n.abstract=' An inclusion of observable nets satisfying duality induces an inclusion of canonical field nets. Any Bose net intermediate between the observable net and the field net and satisfying duality is the fixed-point net of the field net under a compact group. This compact group is its canonical gauge group if the occurrence of sectors with infinite statistics can be ruled out for the observable net and its vacuum Hilbert space is separable. '\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many entities have a registered address in a country that is different from their own country?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE e.countries <> a.countries\\nRETURN count(DISTINCT e) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Generating Functional in CFT on Riemann Surfaces II: Homological Aspects and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Generating Functional in CFT on Riemann Surfaces II: Homological Aspects'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Apartment\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"bathroom_count\": \"INTEGER\",\n \"apt_number\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"apt_type_code\": \"STRING\",\n \"bedroom_count\": \"INTEGER\",\n \"room_count\": \"STRING\"\n }\n },\n \"Guest\": {\n \"properties\": {\n \"gender_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"date_of_birth\": \"STRING\",\n \"guest_first_name\": \"STRING\",\n \"guest_last_name\": \"STRING\"\n }\n },\n \"ApartmentBooking\": {\n \"properties\": {\n \"booking_end_date\": \"STRING\",\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"booking_start_date\": \"STRING\"\n }\n },\n \"ApartmentFacility\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"facility_code\": \"STRING\"\n }\n },\n \"ApartmentBuilding\": {\n \"properties\": {\n \"building_full_name\": \"STRING\",\n \"building_short_name\": \"STRING\",\n \"building_manager\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"building_description\": \"STRING\",\n \"building_phone\": \"STRING\",\n \"building_address\": \"STRING\"\n }\n },\n \"ViewUnitStatu\": {\n \"properties\": {\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"available_yn\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n },\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n }\n ]\n}"}, {"role": "user", "content": "Show the short names of the buildings managed by \"Emma\"."}, {"role": "assistant", "content": "MATCH (b:ApartmentBuilding)\\nWHERE b.building_manager = \"Emma\"\\nRETURN b.building_short_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 entities that have filed the most transactions with a beneficiary in the United Kingdom?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:BENEFITS]->(b:Entity)\\nWHERE f.beneficiary_bank_country = \"United Kingdom\"\\nWITH e, count(f) AS transactions\\nORDER BY transactions DESC\\nLIMIT 5\\nRETURN e.name, transactions"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What is the color group name of 'Effie Cabby Cap'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Effie Cabby Cap'})\\nRETURN a.colourGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the screen names of users who have a 'betweenness' score greater than 800 and have posted tweets containing links."}, {"role": "assistant", "content": "MATCH (user:User)-[:POSTS]->(tweet:Tweet)-[:CONTAINS]->(link:Link)\\nWHERE user.betweenness > 800\\nRETURN DISTINCT user.screen_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that have \"maximilian_dood\" as a moderator and have \"en\" as their language."}, {"role": "assistant", "content": "MATCH (u:User {name: 'maximilian_dood'})-[:MODERATOR]->(s:Stream)\\nMATCH (s)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which machines are running a service that has a start time between 1606500000000 and 1606600000000?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(s:Service)\\nWHERE s.startTime >= 1606500000000 AND s.startTime <= 1606600000000\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 packages that provide access to the 'Drama' genre."}, {"role": "assistant", "content": "MATCH (p:Package)-[:PROVIDES_ACCESS_TO]->(g:Genre {name: 'Drama'})\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the tagline of the video 'Jonah: A VeggieTales Movie'?"}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})\\nRETURN v.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the category_id of the Categories that is not related to the Author with the last_name Burnol!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Author {last_name: 'Burnol'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"MatchSeason\": {\n \"properties\": {\n \"Draft_Class\": \"STRING\",\n \"Draft_Pick_Number\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Season\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Country\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"College\": \"STRING\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Years_Played\": \"STRING\",\n \"Total_WL\": \"STRING\",\n \"Player\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"Singles_WL\": \"STRING\",\n \"Doubles_WL\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"Official_native_language\": \"STRING\",\n \"Country_name\": \"STRING\",\n \"Capital\": \"STRING\",\n \"Country_id\": \"INTEGER\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Team_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n }\n ]\n}"}, {"role": "user", "content": "What are the players who played for Columbus Crew, and how many years did each play for?"}, {"role": "assistant", "content": "MATCH (p:Player)-[:PARTICIPATES_IN]->(t:Team)\\nWHERE t.Name = \"Columbus Crew\"\\nRETURN p.Player, p.Years_Played"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"continents\": {\n \"properties\": {\n \"contid\": \"STRING\",\n \"continent\": \"STRING\"\n }\n },\n \"countries\": {\n \"properties\": {\n \"countryid\": \"STRING\",\n \"countryname\": \"STRING\",\n \"continent\": \"STRING\"\n }\n },\n \"car_makers\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"maker\": \"STRING\",\n \"fullname\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"model_list\": {\n \"properties\": {\n \"modelid\": \"STRING\",\n \"maker\": \"STRING\",\n \"model\": \"STRING\"\n }\n },\n \"car_names\": {\n \"properties\": {\n \"makeid\": \"STRING\",\n \"model\": \"STRING\",\n \"make\": \"STRING\"\n }\n },\n \"cars_data\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"mpg\": \"STRING\",\n \"cylinders\": \"STRING\",\n \"edispl\": \"STRING\",\n \"horsepower\": \"STRING\",\n \"weight\": \"STRING\",\n \"accelerate\": \"STRING\",\n \"year\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the full name of each car maker, along with its id and how many models it produces?"}, {"role": "assistant", "content": "MATCH (T1:car_makers)-[]-(T2:model_list)\\nRETURN T1.FullName,T1.Id,count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where name is 10.1007/s00220-004-1078-7?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00220-004-1078-7'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average revenue generated by movies released in each decade?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, 10 * (m.release_date.year / 10) AS decade\\nWITH decade, avg(m.revenue) AS average_revenue\\nRETURN decade, average_revenue\\nORDER BY decade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch abstract of the Article that are connected to Journal via PUBLISHED_IN where pages are at most 303-348!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.pages < '303-348'}\\nRETURN n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'book1PageRank' higher than 1 and interacted with \"Aegon-V-Targaryen\" in any book?"}, {"role": "assistant", "content": "MATCH (aegon:Character {name: \"Aegon-V-Targaryen\"})\\nMATCH (aegon)-[:INTERACTS*..5]-(other)\\nWHERE other.book1PageRank > 1\\nRETURN DISTINCT other.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters who have interacted with 'Haldon' in any book and have a 'centrality' of 0.0."}, {"role": "assistant", "content": "MATCH (haldon:Character { name: 'Haldon' })-[r]->(other:Character)\\nWHERE type(r) IN ['INTERACTS', 'INTERACTS1', 'INTERACTS2', 'INTERACTS3', 'INTERACTS45'] AND other.centrality = 0.0\\nRETURN DISTINCT other.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Journal where journal_id is d41d8cd98f00b204e9800998ecf8427e, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d41d8cd98f00b204e9800998ecf8427e'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the 3 streams with the most distinct languages used."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, count(DISTINCT l) AS languageCount\\nRETURN s.name AS streamName, languageCount\\nORDER BY languageCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which description is Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis., by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Author with author_id equal to a95ff40457bf3cae9c6852c6a14937fa!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.author_id = 'a95ff40457bf3cae9c6852c6a14937fa'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 actors have the most roles listed in their ACTED_IN relationships?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[r:ACTED_IN]->(m:Movie)\\nRETURN a.name AS actor, count(r) AS numRoles\\nORDER BY numRoles DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies based on popularity."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average unitsOnOrder of products supplied by the supplier with companyName equal to 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE s.companyName = 'Exotic Liquids'\\nRETURN avg(p.unitsOnOrder)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 actors who have acted in movies directed by a director born in Nebraska."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWHERE d.bornIn CONTAINS \"Nebraska\"\\nRETURN DISTINCT a.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 games have the most streams associated with them?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH g.name AS gameName, COUNT(s) AS streamCount\\nORDER BY streamCount DESC\\nLIMIT 3\\nRETURN gameName, streamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find entities that have been both struck off and inactivated in the same year."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL AND e.inactivation_date IS NOT NULL AND substring(e.struck_off_date, 7) = substring(e.inactivation_date, 7)\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Can you display the top 5 businesses that have reviews with a text mentioning 'IPA'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'IPA'\\nRETURN b.name, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDb rating of movies based on books?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN avg(m.imdbRating) AS average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 movies reviewed with the summary 'An amazing journey'."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary = 'An amazing journey'\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the journal_id and the name for those Journal where journal_id starts with e!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id STARTS WITH 'e'\\nRETURN n.journal_id AS journal_id, n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions asked by users with a reputation greater than 100000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 100000\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where name is 10.1016/S0040-9383(00)00015-X and Keyword, with key_id equal d8ed805e2dd529e548ead28198edd980, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{name:'10.1016/S0040-9383(00)00015-X'})-[*]-(e:Keyword{key_id:'d8ed805e2dd529e548ead28198edd980'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Report where report_no is PAM-780 and share a common property with Author, for which last_name equals Polishchuk?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'PAM-780'})-[r]->(n), (d:Author{last_name:'Polishchuk'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all officers with the country code 'KOR'."}, {"role": "assistant", "content": "MATCH (o:Officer {country_codes: 'KOR'})\\nRETURN o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"arrivalTime\": \"STRING\",\n \"departureTime\": \"STRING\",\n \"flightNumber\": \"STRING\"\n }\n },\n \"Ticket\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"ticketNumber\": \"STRING\",\n \"issueDate\": \"STRING\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"reservationNumber\": \"STRING\",\n \"reservationDate\": \"STRING\"\n }\n },\n \"Airport\": {\n \"properties\": {\n \"location\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Passenger\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"dob\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Airport\",\n \"type\": \"HAS_FLIGHT\",\n \"to\": \"Flight\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"TO\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"FOR_FLIGHT\",\n \"to\": \"Flight\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"HAS_TICKET\",\n \"to\": \"Ticket\"\n },\n {\n \"from\": \"Passenger\",\n \"type\": \"MADE\",\n \"to\": \"Reservation\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"HAS_TICKET\",\n \"to\": \"Ticket\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"FOR_FLIGHT\",\n \"to\": \"Flight\"\n },\n {\n \"from\": \"Airport\",\n \"type\": \"HAS_FLIGHT\",\n \"to\": \"Flight\"\n },\n {\n \"from\": \"Flight\",\n \"type\": \"TO\",\n \"to\": \"Airport\"\n },\n {\n \"from\": \"Passenger\",\n \"type\": \"MADE\",\n \"to\": \"Reservation\"\n }\n ],\n \"relationshipProperties\": {\n \"HAS_FLIGHT\": {\n \"distance\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What is the total number of airports in the database?"}, {"role": "assistant", "content": "MATCH (a:Airport)\\nRETURN count(a) as total_airports"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 'sar_id' values of the filings that benefited the entity with ID 'barclays-bank-plc-london-england-gbr'?"}, {"role": "assistant", "content": "MATCH (e:Entity {id: 'barclays-bank-plc-london-england-gbr'})<-[:BENEFITS]-(f:Filing)\\nRETURN f.sar_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2017-07-11 and the year of the update_date is 2017!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2017-07-11' AND date(n.update_date).year = 2017\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the description of the Topic and the category_id for Categories!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Categories)\\nRETURN n.description, m.category_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"customer_code\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"staff_gender\": \"STRING\",\n \"staff_name\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"DepartmentStore\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"store_phone\": \"STRING\",\n \"store_name\": \"STRING\",\n \"store_email\": \"STRING\",\n \"store_address\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"supplier_id\": \"INTEGER\",\n \"supplier_name\": \"STRING\",\n \"supplier_phone\": \"STRING\"\n }\n },\n \"DepartmentStoreChain\": {\n \"properties\": {\n \"dept_store_chain_name\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"department_id\": \"INTEGER\",\n \"department_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_AT\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"SUPPLIES\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"MANAGES\": {\n \"date_assigned_to\": \"STRING\",\n \"job_title_code\": \"STRING\",\n \"date_assigned_from\": \"STRING\"\n },\n \"SUPPLIED_BY\": {\n \"total_value_purchased\": \"FLOAT\",\n \"date_supplied_from\": \"STRING\",\n \"total_amount_purchased\": \"STRING\",\n \"date_supplied_to\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many customers use each payment method?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nRETURN c.payment_method_code, COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"cust_name\": \"STRING\",\n \"acc_bal\": \"INTEGER\",\n \"no_of_loans\": \"INTEGER\",\n \"acc_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"credit_score\": \"INTEGER\"\n }\n },\n \"Loan\": {\n \"properties\": {\n \"amount\": \"INTEGER\",\n \"loan_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"STRING\",\n \"loan_ID\": \"STRING\"\n }\n },\n \"Bank\": {\n \"properties\": {\n \"bname\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"no_of_customers\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of customers who do not have saving accounts?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE NOT c.acc_type = 'saving'\\nRETURN c.cust_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the name for Journal!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:Journal)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the author_id and the affiliation for those Author where author_id starts with a!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'a'\\nRETURN n.author_id AS author_id, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' follows and who also follow 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (n:User {screen_name: 'neo4j'})-[:FOLLOWS]->(u:User)-[:FOLLOWS]->(n)\\nRETURN u\\nORDER BY u.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from DOI for which name is 10.1006/jnth.2000.2616, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1006/jnth.2000.2616'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'amount' of filings for each distinct 'originator_bank_country'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f.originator_bank_country AS originator_bank_country, avg(f.amount) AS average_amount\\nRETURN originator_bank_country, average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the businesses that have only received 5-star reviews."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars = 5.0\\nWITH b, COLLECT(r) AS reviews\\nWHERE ALL(review IN reviews\\nWHERE review.stars = 5.0)\\nRETURN b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Find Topic that has a description which begins with t, and is linked to Keyword via HAS_TOPIC relationship, where Keyword has key_id 468e440686a5984c9dbaefb5ac25d127!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id: '468e440686a5984c9dbaefb5ac25d127'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.description STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the filings where the originator entity and beneficiary entity are both located in landlocked countries."}, {"role": "assistant", "content": "MATCH (filing:Filing)\\nMATCH (filing)-[:ORIGINATOR]->(originator:Entity)\\nMATCH (originator)-[:COUNTRY]->(originatorCountry:Country)\\nWHERE originatorCountry.tld IS NULL\\nMATCH (filing)-[:BENEFITS]->(beneficiary:Entity)\\nMATCH (beneficiary)-[:COUNTRY]->(beneficiaryCountry:Country)\\nWHERE beneficiaryCountry.tld IS NULL\\nRETURN filing"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 users have the least number of interactions?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->()\\nWITH u, COUNT(r) AS interactions\\nORDER BY interactions ASC\\nLIMIT 5\\nRETURN u.label AS User, interactions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the maximum amount filed between 2006-01-01T00:00:00Z and 2006-12-31T00:00:00Z?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin >= datetime('2006-01-01T00:00:00Z') AND f.begin <= datetime('2006-12-31T00:00:00Z')\\nRETURN max(f.amount) AS max_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 teams by the number of streams they have."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH t, count(s) AS stream_count\\nORDER BY stream_count DESC\\nLIMIT 5\\nRETURN t.name AS team_name, stream_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Topic where cluster is 8 and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.cluster = '8'\\nRETURN properties(b) AS Topic_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report where report_id is c3c968646b7780fada2a98b2a5a61746!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = 'c3c968646b7780fada2a98b2a5a61746'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the category_id of the Categories that is not related to the DOI with the doi_id 0ef3b1eb742dfb0bc64bdfab8ed422f1!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:DOI {doi_id: '0ef3b1eb742dfb0bc64bdfab8ed422f1'})\\nWHERE NOT (n) --> (:DOI)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_id is 5049b80a2935f95cc95cf14dbfb8c610!"}, {"role": "assistant", "content": "MATCH (n:Report {report_id:'5049b80a2935f95cc95cf14dbfb8c610'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies were released in each year?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m.year AS releaseYear, count(m) AS movieCount\\nRETURN releaseYear, movieCount\\nORDER BY releaseYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Topic for which label is Geometry_7, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 orders that were placed in 1997 and required a freight charge over $25."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.orderDate STARTS WITH '1997' AND toFloat(o.freight) > 25\\nRETURN o.orderID, o.orderDate, o.freight\\nORDER BY o.orderDate\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 links contained in tweets that have been favorited more than 200 times."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE t.favorites > 200\\nRETURN l.url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 countries have produced the most adult films?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name, count(a) AS NumberOfAdultFilms\\nORDER BY NumberOfAdultFilms DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Categories with specifications equal to math.GT!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.GT'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Founder\": \"STRING\",\n \"Headquarter\": \"STRING\",\n \"Revenue\": \"FLOAT\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer\": \"INTEGER\",\n \"Price\": \"INTEGER\",\n \"Code\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ]\n}"}, {"role": "user", "content": "Who is the founders of companies whose first letter is S?"}, {"role": "assistant", "content": "MATCH (m:Manufacturer)\\nWHERE m.Name =~ 'S.*'\\nRETURN m.Founder"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Reviewer\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Rating\": {\n \"properties\": {\n \"mID\": \"INTEGER\",\n \"stars\": \"INTEGER\",\n \"ratingDate\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"mID\": \"INTEGER\",\n \"year\": \"INTEGER\",\n \"director\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie produced after 2000 and directed by James Cameron?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.director = 'James Cameron' AND m.year > 2000\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who was born in 1965 and has directed a movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born = 1965\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which first_name is Randall, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'Randall'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"installation_date\": \"STRING\",\n \"long\": \"FLOAT\",\n \"lat\": \"FLOAT\",\n \"city\": \"STRING\",\n \"dock_count\": \"INTEGER\"\n }\n },\n \"Status\": {\n \"properties\": {\n \"time\": \"STRING\",\n \"docks_available\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"bikes_available\": \"INTEGER\"\n }\n },\n \"Weather\": {\n \"properties\": {\n \"wind_dir_degrees\": \"INTEGER\",\n \"precipitation_inches\": \"INTEGER\",\n \"mean_sea_level_pressure_inches\": \"FLOAT\",\n \"zip_code\": \"INTEGER\",\n \"events\": \"STRING\",\n \"max_humidity\": \"INTEGER\",\n \"min_sea_level_pressure_inches\": \"FLOAT\",\n \"max_sea_level_pressure_inches\": \"INTEGER\",\n \"max_gust_speed_mph\": \"INTEGER\",\n \"date\": \"STRING\",\n \"max_visibility_miles\": \"INTEGER\",\n \"max_wind_Speed_mph\": \"INTEGER\",\n \"mean_wind_speed_mph\": \"INTEGER\",\n \"mean_humidity\": \"INTEGER\",\n \"mean_dew_point_f\": \"INTEGER\",\n \"mean_temperature_f\": \"INTEGER\",\n \"min_humidity\": \"INTEGER\",\n \"min_temperature_f\": \"INTEGER\",\n \"min_dew_point_f\": \"INTEGER\",\n \"mean_visibility_miles\": \"INTEGER\",\n \"min_visibility_miles\": \"INTEGER\",\n \"max_temperature_f\": \"INTEGER\",\n \"max_dew_point_f\": \"INTEGER\",\n \"cloud_cover\": \"INTEGER\"\n }\n },\n \"Trip\": {\n \"properties\": {\n \"start_station_name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"duration\": \"INTEGER\",\n \"end_date\": \"STRING\",\n \"bike_id\": \"INTEGER\",\n \"zip_code\": \"INTEGER\",\n \"end_station_id\": \"INTEGER\",\n \"subscription_type\": \"STRING\",\n \"end_station_name\": \"STRING\",\n \"start_station_id\": \"INTEGER\",\n \"start_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "How many different cities have these stations?"}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN COUNT(DISTINCT s.city)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 most followed streams that are linked to the language 'en'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'en'})\\nRETURN s.name AS stream, s.followers AS followers\\nORDER BY followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person acted in the movie written by the person born in 1949?"}, {"role": "assistant", "content": "MATCH (p:Person {born: 1949})-[:WROTE]->(m:Movie)<-[:ACTED_IN]-(actor:Person)\\nRETURN actor.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which top 5 movies have the most diverse range of spoken languages?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, size(m.languages) AS numLanguages\\nORDER BY numLanguages DESC\\nLIMIT 5\\nRETURN m.title AS title, m.languages AS languages, numLanguages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Journal for which journal_id is 79942321e19994e38ad2e372af21c893, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"addresses\": {\n \"properties\": {\n \"address_id\": \"STRING\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"line_3\": \"STRING\",\n \"city\": \"STRING\",\n \"zip_postcode\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"other_address_details\": \"STRING\"\n }\n },\n \"courses\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"course_name\": \"STRING\",\n \"course_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"departments\": {\n \"properties\": {\n \"department_id\": \"STRING\",\n \"department_name\": \"STRING\",\n \"department_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"degree_programs\": {\n \"properties\": {\n \"degree_program_id\": \"STRING\",\n \"department_id\": \"STRING\",\n \"degree_summary_name\": \"STRING\",\n \"degree_summary_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"sections\": {\n \"properties\": {\n \"section_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"section_name\": \"STRING\",\n \"section_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"semesters\": {\n \"properties\": {\n \"semester_id\": \"STRING\",\n \"semester_name\": \"STRING\",\n \"semester_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"students\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"current_address_id\": \"STRING\",\n \"permanent_address_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"email_address\": \"STRING\",\n \"ssn\": \"STRING\",\n \"date_first_registered\": \"STRING\",\n \"date_left\": \"STRING\",\n \"other_student_details\": \"STRING\"\n }\n },\n \"student_enrolment\": {\n \"properties\": {\n \"student_enrolment_id\": \"STRING\",\n \"degree_program_id\": \"STRING\",\n \"semester_id\": \"STRING\",\n \"student_id\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"student_enrolment_courses\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"student_enrolment_id\": \"STRING\"\n }\n },\n \"transcripts\": {\n \"properties\": {\n \"transcript_id\": \"STRING\",\n \"transcript_date\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"transcript_contents\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"transcript_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all the student details in reversed lexicographical order."}, {"role": "assistant", "content": "MATCH (students:Students)\\nRETURN students.other_student_details\\nORDER BY students.other_student_details DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Artwork\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Artwork_ID\": \"INTEGER\",\n \"Type\": \"STRING\"\n }\n },\n \"FestivalDetail\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Festival_Name\": \"STRING\",\n \"Chair_Name\": \"STRING\",\n \"Num_of_Audience\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Festival_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n },\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n }\n ],\n \"relationshipProperties\": {\n \"DISPLAYS\": {\n \"Result\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the number of audience in year 2008 or 2010."}, {"role": "assistant", "content": "MATCH (fd:FestivalDetail)\\nWHERE fd.Year = 2008 OR fd.Year = 2010\\nRETURN fd.Num_of_Audience"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Report where report_id ends with 45!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id =~'45.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have created the most chatter relationships."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name AS stream, count{(s)-[:CHATTER]->(:User)} AS chatter_count\\nORDER BY chatter_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 directors who have a biography listed in their profile."}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.bio IS NOT NULL\\nRETURN d\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the `supplierID` and the number of different categories they supply products for."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, count(DISTINCT c) AS categoryCount\\nRETURN s.supplierID, categoryCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Keyword that is not related to the DOI with the name 10.1007/PL00005532!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:DOI {name: '10.1007/PL00005532'})\\nWHERE NOT (n) --> (:DOI)\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 1013 and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1013'})-[r:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average key_id for Keyword that are linked to Article via HAS_KEY and have article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.key_id) AS avg_key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have the most chatters? List the top 5."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, count{(s)-[:CHATTER]->()} AS chatterCount\\nORDER BY chatterCount DESC\\nLIMIT 5\\nRETURN s.id AS StreamID, s.name AS StreamName, chatterCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the labels of users who have an INTERACTED relationship with a weight of 1. Limit to the first 3."}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User)\\nWHERE r.weight = 1\\nRETURN u2.label\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the highest ratio of followers to total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers IS NOT NULL AND s.total_view_count IS NOT NULL AND s.total_view_count > 0\\nRETURN s.id, s.name, s.followers, s.total_view_count, s.followers * 1.0 / s.total_view_count AS ratio\\nORDER BY ratio DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where label is Mathematics_6 and Author, for which author_id is 1184638302ce384c7549eeead253af2d?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematics_6'}), (b:Author{author_id:'1184638302ce384c7549eeead253af2d'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to DOI for which name is 10.1007/s00220-004-1078-7, and what are their relationships to DOI?"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r]-(n)\\nWHERE c.name = '10.1007/s00220-004-1078-7'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the lowest average vote and more than 100 vote counts?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 100\\nRETURN m\\nORDER BY m.average_vote ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Market\": {\n \"properties\": {\n \"Number_cities\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Country\": \"STRING\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"Gross_in_dollar\": \"INTEGER\",\n \"Studio\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"FilmMarketEstimation\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Low_Estimate\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"High_Estimate\": \"FLOAT\",\n \"Estimation_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n }\n ]\n}"}, {"role": "user", "content": "Give the average number of cities within markets that had a low market estimation larger than 10000?"}, {"role": "assistant", "content": "MATCH (T1:Film_Market_estimation)-[:ESTIMATES]->(f:Film), (T1)-[:ESTIMATES]->(m:Market)\\nWHERE T1.Low_Estimate > 10000\\nRETURN avg(m.Number_cities)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'book1PageRank' of characters with a 'degree' greater than 100?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 100\\nWITH avg(c.book1PageRank) AS average_pagerank\\nRETURN average_pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with article_id equal to 604531, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'604531'})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where author_id contains fd6fcf9374c7e5fd0377800da5e8f846, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.author_id CONTAINS 'fd6fcf9374c7e5fd0377800da5e8f846'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies to have a poster URL containing 'face'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster CONTAINS 'face'\\nRETURN m.title, m.poster\\nORDER BY m.released\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the streams where 'itsbigchase' is both a moderator and VIP."}, {"role": "assistant", "content": "MATCH (u:User {name: 'itsbigchase'})\\nMATCH (s:Stream)-[:MODERATOR]->(u)\\nWHERE exists{ (s)-[:VIP]->(u) }\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ClubRank\": {\n \"properties\": {\n \"Bronze\": \"FLOAT\",\n \"Rank\": \"FLOAT\",\n \"Gold\": \"FLOAT\",\n \"Club_ID\": \"INTEGER\",\n \"Silver\": \"FLOAT\",\n \"Total\": \"FLOAT\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Goals\": \"STRING\",\n \"name\": \"STRING\",\n \"Tries\": \"FLOAT\",\n \"Apps\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Points\": \"FLOAT\",\n \"Player_ID\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"CompetitionResult\": {\n \"properties\": {\n \"Competition_ID\": \"INTEGER\",\n \"Club_ID_2\": \"INTEGER\",\n \"Club_ID_1\": \"INTEGER\",\n \"Score\": \"STRING\"\n }\n },\n \"Competition\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Competition_ID\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Competition_type\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different years for all competitions that are not of type equal to tournament?"}, {"role": "assistant", "content": "MATCH (c:Competition)\\nWHERE c.Competition_type <> \"Tournament\"\\nRETURN DISTINCT c.Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have written reviews for businesses with 'Brew' in the name?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name CONTAINS 'Brew'\\nWITH b\\nMATCH (b)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Article with article_id equal to 1048!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.article_id = '1048'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 genres of movies that have been rated by the most users."}, {"role": "assistant", "content": "MATCH (u:User)-[:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(DISTINCT u) AS userCount\\nORDER BY userCount DESC\\nRETURN g.name AS Genre, userCount\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of Entities registered in Hong Kong?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.countries CONTAINS 'Hong Kong'\\nRETURN count(*) AS numberOfEntities"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have a size less than 1.82 and an area greater than 2?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size < 1.82 AND u.area > 2\\nWITH u\\nRETURN count(u) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n }\n ]\n}"}, {"role": "user", "content": "\"are the routers connected to servers\""}, {"role": "assistant", "content": "MATCH (r:Router)-[:ROUTES]->(:Interface)-[:CONNECTS]->(:Interface)<-[:ROUTES]-(m:Machine)\\nRETURN DISTINCT r.name AS RouterName, m.name AS MachineName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have a unitsOnOrder of zero and are discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder = 0 AND p.discontinued = true\\nRETURN p.productName, p.productID"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Can you find a sci-fi movie from 1975?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Sci-Fi' AND m.year = 1975\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where category_id is f294e61ea01b3678d7cd02b973bb71da and Author, for which affiliation is unspecified?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'f294e61ea01b3678d7cd02b973bb71da'}), (b:Author{affiliation:'unspecified'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount of filings concerning entities located in the same country as the entity with ID 'cimb-bank-berhad'?"}, {"role": "assistant", "content": "MATCH (e1:Entity {id: 'cimb-bank-berhad'})-[:COUNTRY]->(c:Country)\\nMATCH (e1)-[:CONCERNS]->(f:Filing)-[:CONCERNS]->(e2:Entity)-[:COUNTRY]->(c)\\nRETURN avg(f.amount) AS average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to DOI for which name is 10.1007/s00220-004-1078-7, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00220-004-1078-7'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a revenue to budget ratio greater than 2? Limit to 5 movies."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NOT NULL AND m.budget IS NOT NULL AND m.revenue / m.budget > 2\\nRETURN m.title, m.revenue, m.budget, m.revenue / m.budget AS ratio\\nORDER BY ratio DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tags are associated with questions that have a negative score?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score < 0\\nRETURN DISTINCT t.name AS tag"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 filings by the shortest duration from begin to end date?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f, duration.inSeconds(f.begin, f.end) AS duration\\nORDER BY duration ASC\\nLIMIT 5\\nRETURN f.sar_id AS SAR_ID, f.begin AS BeginDate, f.end AS EndDate, duration"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 originator banks with the most filings involving transactions above $1 million."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.amount > 1000000\\nRETURN e.name AS originator_bank, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a name which begins with d, and is linked to Article via HAS_DOI relationship, where Article has abstract The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.name STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which label is Mathematics_6, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematics_6'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the teams that have streams with a creation date before 2015."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE s.createdAt < datetime('2015-01-01T00:00:00.000000Z')\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the highest IMDb rating."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the first_name from Author where first_name is not Amnon!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name <> 'Amnon'\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the key_id of the Keyword and the report_no for Report!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nMATCH (m:Report)\\nRETURN n.key_id, m.report_no\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters in community 759 with a degree above 30."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 759 AND c.degree > 30\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of businesses in 'Burlingame' that have received a review from 'Angie' and the review dates."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {city: 'Burlingame'})\\nRETURN b.name AS BusinessName, r.date AS ReviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a poster URL containing 'face'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster CONTAINS 'face'\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which officers have addresses registered in 'Bahamas'?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[:registered_address]->(a:Address)\\nWHERE a.countries = 'Bahamas'\\nRETURN o.name AS officer_name, a.address AS registered_address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the business with the highest average star rating from its reviews."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(review:Review)\\nWITH b, avg(review.stars) AS average_rating\\nORDER BY average_rating DESC\\nRETURN b.name, average_rating\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Host\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"STRING\",\n \"Host_ID\": \"INTEGER\",\n \"Nationality\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Number_of_hosts\": \"INTEGER\",\n \"First_year\": \"STRING\",\n \"Location\": \"STRING\",\n \"Last_year\": \"STRING\",\n \"Party_ID\": \"INTEGER\",\n \"Party_Theme\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Party\",\n \"type\": \"HOSTED_BY\",\n \"to\": \"Host\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HOSTED_BY\",\n \"to\": \"Host\"\n }\n ],\n \"relationshipProperties\": {\n \"HOSTED_BY\": {\n \"Is_Main_in_Charge\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Compute the average number of hosts for parties."}, {"role": "assistant", "content": "MATCH (p:Party)\\nRETURN avg(p.Number_of_Hosts)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the URLs of the first 3 streams that have no chatters?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE NOT exists{ (s)<-[:CHATTER]-() }\\nRETURN s.url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many Officers have the country_codes \"KOR\"?"}, {"role": "assistant", "content": "MATCH (o:Officer {country_codes: 'KOR'})\\nRETURN count(o)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 previous versions of the version '7.1' in the schema?"}, {"role": "assistant", "content": "MATCH path=(v:Version {name: '7.1'})-[:PREVIOUS*1..3]->(prev:Version)\\nRETURN prev.name AS PreviousVersion\\nORDER BY length(path) ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"poker_player\": {\n \"properties\": {\n \"poker_player_id\": \"STRING\",\n \"people_id\": \"STRING\",\n \"final_table_made\": \"STRING\",\n \"best_finish\": \"STRING\",\n \"money_rank\": \"STRING\",\n \"earnings\": \"STRING\"\n }\n },\n \"people\": {\n \"properties\": {\n \"people_id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_date\": \"STRING\",\n \"height\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of people who do not play poker?"}, {"role": "assistant", "content": "MATCH (people:people)\\nWHERE NOT (people)-[]-(:poker_player) \\nRETURN people.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Song\": {\n \"properties\": {\n \"languages\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"song_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"releasedate\": \"STRING\",\n \"rating\": \"INTEGER\",\n \"resolution\": \"INTEGER\",\n \"genre_is\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"File\": {\n \"properties\": {\n \"duration\": \"STRING\",\n \"file_size\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"formats\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"g_name\": \"STRING\",\n \"most_popular_in\": \"STRING\",\n \"rating\": \"STRING\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"preferred_genre\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the artist who produced the shortest song?"}, {"role": "assistant", "content": "MATCH (s:Song)-[:ASSOCIATED_WITH]->(g:Genre), (s)-[:STORED_IN]->(f:File)\\nRETURN s.Artist_name\\nORDER BY f.duration\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1013 or article_id is less than 1008!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1013 OR n.article_id < 1008\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 3 users who are moderators for more than one stream."}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, count(s) AS streams_count\\nWHERE streams_count > 1\\nRETURN u.name, streams_count\\nORDER BY streams_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between UpdateDate where update_date is 2014-01-15 and Author, for which author_id equals d83c43e5b1cf398c4e549843f497694b?"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2014-01-15'})-[*]->(d:Author{author_id:'d83c43e5b1cf398c4e549843f497694b'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the jurisdiction of the entity with ibcRUC '25249'?"}, {"role": "assistant", "content": "MATCH (n:Entity)\\nWHERE n.ibcRUC = '25249'\\nRETURN n.jurisdiction"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where comments is 43 pages, 1 figure. Revised August 2001 to cut page length (eg\n deleted appendix) for publication in CMP. Also fleshed out ex. of q-Killing\n metric for q-SU_2 previously mentioned (no significant additions), through Journal via PUBLISHED_IN with meta 225?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'43 pages, 1 figure. Revised August 2001 to cut page length (eg deleted appendix) for publication in CMP. Also fleshed out ex. of q-Killing metric for q-SU_2 previously mentioned (no significant additions)'})-[:PUBLISHED_IN {meta: '225'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 actors who have played roles in both comedy and action movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: \"Comedy\"}), (a)-[:ACTED_IN]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: \"Action\"})\\nRETURN DISTINCT a.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which author_id is f6bcab8e721fbec0f293fee49d73c9c4, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find 3 users who have interacted with users having an area greater than 5."}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.area > 5\\nRETURN DISTINCT u1.label\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Keyword where name is layer-by-layer growth and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{name:'layer-by-layer growth'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Display movies that have a revenue of zero."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue = 0\\nRETURN m.title, m.revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the products that have a quantity on order greater than the total quantity ordered for those products in the past."}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product)\\nWITH p.productID AS productID, sum(rel.quantity) AS totalQuantityOrdered\\nMATCH (p:Product)\\nWHERE p.unitsOnOrder > totalQuantityOrdered\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Categories and Article, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*]-(n)-[*]-(b:Article)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Author where first_name is Marco and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Marco'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Categories where specifications is math.GT and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'math.GT'\\nRETURN properties(b) AS Categories_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n },\n \"Author\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both DOI and Author!"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r1]-(n)-[r2]->(d:Author)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 `beneficiary_bank` values with the lowest average filing `number` where the `originator_bank_country` is \"Germany\" and the `amount` is greater than 10000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = \"Germany\" AND f.amount > 10000\\nWITH f.beneficiary_bank AS beneficiary_bank, avg(f.number) AS average_number\\nORDER BY average_number ASC\\nLIMIT 3\\nRETURN beneficiary_bank, average_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with UpdateDate where update_date is 2008-01-29 and share a common property with Keyword, for which key_id equals 5d6533e2a77e3daabc184ee8f2441597?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2008-01-29'})-[r]->(n), (d:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_id for Report combined with the key_id for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_id AS Records\\nUNION\\nMATCH (m:Keyword)\\nRETURN m.key_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 3 most common summaries in the REVIEWED relationship?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(:Movie)\\nWITH r.summary AS summary, COUNT(r) AS count\\nRETURN summary, count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Keyword for which name is exponentially growing, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'exponentially growing'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Topic with description equal to Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 persons who have both directed and produced the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:PRODUCED]-(p)\\nWITH p, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 3\\nRETURN p.name AS person, num_movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find all games played by streams that have at least one VIP who is also a chatter in another stream."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nMATCH (s)-[:VIP]->(v:User)-[:CHATTER]->(other:Stream)\\nWHERE s <> other\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all Officers but also their associated entities with registered addresses if any"}, {"role": "assistant", "content": "MATCH (o:Officer)\\nOPTIONAL MATCH (o)-[r1:officer_of]->(e:Entity)-[r2:registered_address]->(a:Address)\\nRETURN o, r1, e, r2, a"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 oldest streams by the 'createdAt' property that are still active?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt IS NOT NULL\\nRETURN s\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which Entities have filed more than 3 Filings?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, COUNT(f) AS num_filings\\nWHERE num_filings > 3\\nRETURN e.name AS entity_name, num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where article_id is not 1063!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1063'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Report where report_id is 45009bf7f2e3f4f275de6d92deab7b27?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Author where author_id ends with 11!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id =~'11.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the countries associated with the top 5 entities with the earliest incorporation dates?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date IS NOT NULL\\nRETURN e.name, e.countries, e.incorporation_date\\nORDER BY e.incorporation_date ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Journal where name is Geom. Topol and share a common property with Author, for which first_name equals Randall?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'})-[r]->(n), (d:Author{first_name:'Randall'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the people who have the role of both actor and director in the most movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nWITH p, count(m) AS num_actor_director_movies\\nORDER BY num_actor_director_movies DESC\\nLIMIT 1\\nRETURN p.name AS person, num_actor_director_movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory and Author, with first_name equal Alexander, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'})-[*]-(e:Author{first_name:'Alexander'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated exactly 5 stars by at least one user?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE r.rating = 5.0\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the supplierIDs for suppliers who have provided products to more than three different cities?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:ORDERS]->(o:Order)\\nWITH s.supplierID AS supplierID, COUNT(DISTINCT o.shipCity) AS cityCount\\nWHERE cityCount > 3\\nRETURN supplierID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Climber\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Time\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Points\": \"FLOAT\",\n \"Country\": \"STRING\",\n \"Climber_ID\": \"INTEGER\"\n }\n },\n \"Mountain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Prominence\": \"FLOAT\",\n \"Range\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Height\": \"FLOAT\",\n \"Country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n },\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n }\n ]\n}"}, {"role": "user", "content": "Give the names of mountains in alphabetical order."}, {"role": "assistant", "content": "MATCH (m:Mountain)\\nRETURN m.Name\\nORDER BY m.Name ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Keyword with name equal to exponentially growing!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'exponentially growing'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which user wrote a review for a business in 'Burlingame'?"}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Burlingame'})\\nMATCH (b)<-[:REVIEWS]-(r)-[:WROTE]-(u:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Show 3 users who have interacted with users located at y-coordinate values greater than 10000."}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.y > 10000\\nRETURN u1\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the applications running on machine named DC1-RCK-1-1-M-1."}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-1-1-M-1'})-[:RUNS]->(a:Application)\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three directors have the most movies with a runtime under 80 minutes?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.runtime < 80\\nWITH d, count(m) AS moviesCount\\nORDER BY moviesCount DESC\\nLIMIT 3\\nRETURN d.name, moviesCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the specifications for Categories that is linked through a HAS_CATEGORY relationship with the Article where abstract is Local asymptotic minimax risk bounds in a locally asymptotically mixture of\nnormal family of distributions have been investigated under asymmetric loss\nfunctions and the asymptotic distribution of the optimal estimator that attains\nthe bound has been obtained.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.abstract=' Local asymptotic minimax risk bounds in a locally asymptotically mixture of normal family of distributions have been investigated under asymmetric loss functions and the asymptotic distribution of the optimal estimator that attains the bound has been obtained. '\\nRETURN m.specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is We describe a simple way of constructing exponentially growing solutions of\nthe second order systems with the Laplacian as the principal term.\n and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' We describe a simple way of constructing exponentially growing solutions of the second order systems with the Laplacian as the principal term. '})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Journal where name or name contains Geom. Topol!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name CONTAINS 'Geom. Topol'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Journal)\\nWHERE m.name CONTAINS 'Geom. Topol'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 countries with the most movies featuring an average vote over 7.5?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE m.average_vote > 7.5\\nRETURN c.name, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a `pagerank` greater than 0.4 and a `degree` less than 10?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.pagerank > 0.4 AND c.degree < 10\\nRETURN count(c) AS characterCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the entity with id \"barclays-bank-plc-london-england-gbr\"?"}, {"role": "assistant", "content": "MATCH (e:Entity {id: 'barclays-bank-plc-london-england-gbr'})\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 tweets that include a link and were posted by users following 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nRETURN t\\nORDER BY t.created_at DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters with the lowest 'pagerank' values who interacted with \"Aemon-Targaryen-(Maester-Aemon)\" in any book."}, {"role": "assistant", "content": "MATCH (target:Character {name: \"Aemon-Targaryen-(Maester-Aemon)\"})\\nMATCH (target)<-[r:INTERACTS1|INTERACTS2|INTERACTS3|INTERACTS45|INTERACTS]-(c:Character)\\nWITH c, r\\nORDER BY c.pagerank ASC\\nRETURN c.name, c.pagerank\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers supply more than five different products?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, count(DISTINCT p) AS numProducts\\nWHERE numProducts > 5\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for description and cluster from Topic where description is not null and cluster exceeds 6 and sort the results by cluster, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description IS NOT NULL AND n.cluster > 6\\nRETURN n.description AS description, n.cluster AS cluster\\nORDER BY cluster DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that have moderators who are also chatters of the same stream."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(m)\\nWHERE EXISTS((s)<-[:CHATTER]-(m))\\nRETURN DISTINCT s.name AS stream_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Song\": {\n \"properties\": {\n \"languages\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"song_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"releasedate\": \"STRING\",\n \"rating\": \"INTEGER\",\n \"resolution\": \"INTEGER\",\n \"genre_is\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"File\": {\n \"properties\": {\n \"duration\": \"STRING\",\n \"file_size\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"formats\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"g_name\": \"STRING\",\n \"most_popular_in\": \"STRING\",\n \"rating\": \"STRING\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"preferred_genre\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n }\n ]\n}"}, {"role": "user", "content": "What are the id of songs whose format is mp3."}, {"role": "assistant", "content": "MATCH (f:File {formats:\"mp3\"})\\nRETURN f.f_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'book1PageRank' of characters in community 712?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 712})\\nRETURN avg(c.book1PageRank) AS average_book1PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Article with comments equal to 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'21 pages, AMS-LaTeX'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Author where author_id ends with d8!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id =~'d8.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business has the most reviews written in 2017?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2017-01-01') AND r.date < date('2018-01-01')\\nWITH b, count(r) AS reviewCount\\nRETURN b.name AS businessName, reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 interfaces that connect to routers in zone 1."}, {"role": "assistant", "content": "MATCH (r:Router {zone: 1})-[:ROUTES]->(i:Interface)\\nRETURN i\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Journal for which name is Constructive Approximation, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Constructive Approximation'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all officers named 'KIM SOO IN'."}, {"role": "assistant", "content": "MATCH (o:Officer {name: 'KIM SOO IN'})\\nRETURN o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where specifications or specifications contains nlin.SI!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'nlin.SI'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.specifications CONTAINS 'nlin.SI'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to DOI for which name is 10.1016/S0393-0440(00)00003-6!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0393-0440(00)00003-6'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Display 5 users who have a y-coordinate greater than 5000 and have interacted with users with a y-coordinate less than -5000."}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u1.y > 5000 AND u2.y < -5000\\nRETURN u1.label AS User, u1.y AS Y_Coordinate\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a poster URL that contains 'face' and an IMDb rating above 8?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster CONTAINS 'face' AND m.imdbRating > 8\\nRETURN m.title, m.poster, m.imdbRating"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "\"What's the shortest path between Eddard-Stark and Daenerys-Targaryen using the INTERACT relationship only?\""}, {"role": "assistant", "content": "MATCH p=shortestPath((es:Character {name: \"Eddard-Stark\"})-[:INTERACTS*]-(dt:Character {name: \"Daenerys-Targaryen\"}))\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and share a common property with Journal, for which journal_id equals f663b7749e96288af8628ca3cdb4f021?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[r]->(n), (d:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n },\n \"Author\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both DOI and Author?"}, {"role": "assistant", "content": "MATCH (a:DOI)-[r]->(n), (d:Author)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'pagerank' less than 0.3 and have interacted with 'Aemon-Targaryen-(Maester-Aemon)' in any book?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.pagerank < 0.3\\nMATCH (a:Character {name: 'Aemon-Targaryen-(Maester-Aemon)'})\\nWITH c, a\\nWHERE EXISTS((c)-[:INTERACTS|:INTERACTS1|:INTERACTS2|:INTERACTS3|:INTERACTS45]-(a))\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets from 'neo4j' that contain links to external websites."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nRETURN t, l.url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Report where report_id is 3fa3ec8100d88908b00d139dacdedb6a and share a common property with Author, for which author_id equals 700c655b31f9b9275ba10a9875c15332?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'3fa3ec8100d88908b00d139dacdedb6a'})-[r]->(n), (d:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams that were created after 2015 and have a follower count above 1000?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt > datetime('2015-01-01') AND s.followers > 1000\\nRETURN s\\nORDER BY s.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List entities that have filed more than 30 filings."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, COUNT(f) AS num_filings\\nWHERE num_filings > 30\\nRETURN e.name AS entity_name, num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "Show the customer id and number of accounts with most accounts."}, {"role": "assistant", "content": "MATCH (a:Account)\\nRETURN a.customer_id, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find Journal that has a journal_id which begins with j, and is linked to Article via PUBLISHED_IN relationship, where Article has title Notes for a Quantum Index Theorem!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Notes for a Quantum Index Theorem'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'j'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where first_name is Maciej and traversing through Journal with name Commun.Math.Phys!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Maciej'})-[*]->(d:Journal{name:'Commun.Math.Phys'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 highest imdbRating movies that were released before the year 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year < 2000\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 directors have the highest average movie rating for movies they directed?"}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)<-[r:REVIEWED]-(:Person)\\nWITH d, avg(r.rating) AS avg_rating\\nRETURN d.name AS director, avg_rating\\nORDER BY avg_rating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the last_name from Author where last_name is not Polishchuk!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name <> 'Polishchuk'\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions with a link that includes 'apollo' and their corresponding tags."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.link CONTAINS 'apollo'\\nRETURN q, collect(t.name) AS Tags"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 users that 'Neo4j' retweeted and who have a following of more than 10000."}, {"role": "assistant", "content": "MATCH (neo:User {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweet:Tweet)-[:POSTS]-(retweetedUser:User)\\nWHERE retweetedUser.following > 10000\\nRETURN retweetedUser\\nORDER BY retweetedUser.following DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 genres in which movies with an imdbRating above 8.0 fall?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.imdbRating > 8.0\\nRETURN g.name, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies released after 2000 and their respective ratings."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released > 2000\\nWITH m\\nOPTIONAL MATCH (p:Person)-[r:REVIEWED]->(m)\\nRETURN m.title, r.rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the text of the review with the lowest stars for the business named 'Market on Front'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Market on Front'})<-[:REVIEWS]-(r:Review)\\nRETURN r.text AS review_text\\nORDER BY r.stars ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 questions with a title containing the word 'error'."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.title CONTAINS 'error'\\nRETURN q\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common word used in reviews for businesses in Montana?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'MT'})<-[:REVIEWS]-(r:Review)\\nWITH collect(r.text) AS reviews\\nWITH apoc.text.join(reviews, ' ') AS combined_text\\nWITH split(combined_text, ' ') AS words\\nUNWIND words AS word\\nWITH trim(replace(replace(word, ',', ''), '.' , '')) AS sanitizedWord, count(*) AS count\\nRETURN sanitizedWord, count\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 genres are provided access to by the 'Gold' package?"}, {"role": "assistant", "content": "MATCH (p:Package {name: 'Gold'})-[:PROVIDES_ACCESS_TO]->(g:Genre)\\nRETURN g.name AS GenreName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the most expensive poster paths registered?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path IS NOT NULL\\nRETURN m.title, m.poster_path\\nORDER BY m.poster_path DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most ordered products in terms of quantity?"}, {"role": "assistant", "content": "MATCH (:Order)-[o:ORDERS]->(p:Product)\\nRETURN p.productName AS productName, SUM(o.quantity) AS totalQuantity\\nORDER BY totalQuantity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of entities that have a note stating they were closed due to liquidation?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.note = 'Closed date stands for Liquidation date.'\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 reviews written by 'Jenny'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r, b\\nORDER BY r.date ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Author with last_name equal to Christensen!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Christensen'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 questions with the shortest titles?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.link\\nORDER BY size(q.title) ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 movies with a title ending in 'End'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title ENDS WITH 'End'\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 oldest directors and the movies they have directed?"}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)\\nWITH d, collect(m.title) AS movies\\nORDER BY d.born\\nLIMIT 3\\nRETURN d.name AS director, d.born AS birthYear, movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the Versions dependent on the Software 'RHEL'?"}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:DEPENDS_ON]->(v:Version)\\nRETURN v.name AS VersionName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where first_name is Lionel J. and traversing through Categories with category_id 994d468c3f0dd780baf58c6d7f205afd!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Lionel J.'})-[*]->(d:Categories{category_id:'994d468c3f0dd780baf58c6d7f205afd'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify 3 characters with a book45PageRank greater than 5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank > 5\\nRETURN c.name, c.book45PageRank\\nORDER BY c.book45PageRank DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a category_id which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has abstract Local asymptotic minimax risk bounds in a locally asymptotically mixture of\nnormal family of distributions have been investigated under asymmetric loss\nfunctions and the asymptotic distribution of the optimal estimator that attains\nthe bound has been obtained.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Local asymptotic minimax risk bounds in a locally asymptotically mixture of normal family of distributions have been investigated under asymmetric loss functions and the asymptotic distribution of the optimal estimator that attains the bound has been obtained. '}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions have a link containing 'stackoverflow' and more than 1 favorite?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.link CONTAINS 'stackoverflow' AND q.favorites > 1\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where title is The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra and DOI, for which doi_id is f2f5ea4787de1e16c51c306e07bb740c?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'}), (b:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the label from Topic where either label is Mathematics_6 or label is not null!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Mathematics_6' OR n.label IS NOT NULL\\nRETURN DISTINCT n.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between DOI where doi_id is 6ecd77a291d325cb3e01160880d88c69 and Report, for which report_id equals 29dd136962e1058fc290913daf242fec?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'})-[*]->(d:Report{report_id:'29dd136962e1058fc290913daf242fec'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is latex, 38 pages, typos corrected and PUBLISHED_IN has pages on 521-554!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '521-554'}]->(m)\\nWHERE n.comments='latex, 38 pages, typos corrected'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 countries with the highest number of filings where the beneficiary entity is located in 'GBR'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(be:Entity)-[:COUNTRY]->(c:Country {code: 'GBR'})\\nWITH f.originator_iso AS country_code, count(*) AS filing_count\\nORDER BY filing_count DESC\\nLIMIT 3\\nRETURN country_code, filing_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for label and cluster from Topic where label is not null and cluster exceeds 7 and sort the results by cluster, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label IS NOT NULL AND n.cluster > 7\\nRETURN n.label AS label, n.cluster AS cluster\\nORDER BY cluster DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch all the Article and return the title and the number of nodes connected to them via PUBLISHED_IN with meta = 248."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '248'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.title AS title, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Categories for which specifications is math.AT!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.AT'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the services running on machines in rack 'DC1-RCK-1-10'."}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-10'})-[:HOLDS]->(machine:Machine)-[:RUNS]->(service:Service)\\nRETURN service.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has acted in the most movies released in the 1990s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released < 2000\\nWITH p, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN p.name AS actor, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its comments and the count of Journal linked via PUBLISHED_IN where pages is not '641-672', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '641-672'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the lowest votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m\\nORDER BY m.votes ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"User\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which language has the most streams and users associated with it?\""}, {"role": "assistant", "content": "MATCH (l:Language)<-[:HAS_LANGUAGE]-(entity)\\nWITH l.name AS Language, COUNT(entity) AS Associations\\nRETURN Language\\nORDER BY Associations DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total amount of filings where the originator bank name contains the word \"Bank\" and the beneficiary bank name contains the word \"Limited\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank CONTAINS 'Bank' AND f.beneficiary_bank CONTAINS 'Limited'\\nWITH sum(f.amount) AS totalAmount\\nRETURN totalAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List all types of machines in rack 'DC1-RCK-1-1' and their disk sizes."}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(machine:Machine)-[:TYPE]->(type:Type)\\nRETURN machine.name AS machine_name, type.disk AS disk_size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all characters who have a degree greater than 200."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 200\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the shortest runtime?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime IS NOT NULL\\nRETURN m\\nORDER BY m.runtime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the first 3 countries connected to entities that are beneficiaries in filings with amounts over 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.amount > 1000000\\nRETURN DISTINCT c.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the top 5 businesses that have been reviewed by users named 'Jenny'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 31 pages, LaTex and PUBLISHED_IN has pages on 89-106!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '89-106'}]->(m)\\nWHERE n.comments='31 pages, LaTex'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has abstract We present a new, more elementary proof of the Freedman-Teichner result that\nthe geometric classification techniques (surgery, s-cobordism, and\npseudoisotopy) hold for topological 4-manifolds with groups of subexponential\ngrowth. In an appendix Freedman and Teichner give a correction to their\noriginal proof, and reformulate the growth estimates in terms of coarse\ngeometry.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' We present a new, more elementary proof of the Freedman-Teichner result that the geometric classification techniques (surgery, s-cobordism, and pseudoisotopy) hold for topological 4-manifolds with groups of subexponential growth. In an appendix Freedman and Teichner give a correction to their original proof, and reformulate the growth estimates in terms of coarse geometry. '}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters belong to the community with the highest number of relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c.community AS community, count(c) AS num_characters, count{(c)-[:INTERACTS|INTERACTS1|INTERACTS2|INTERACTS3|INTERACTS45]->()} AS num_relationships\\nORDER BY num_relationships DESC\\nLIMIT 1\\nWITH community\\nMATCH (c:Character {community: community})\\nRETURN c.name AS character"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have a reorderLevel of 25 or higher?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel >= 25\\nRETURN p.productName, p.productID, p.reorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 entities that benefited from the highest number of filings."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWITH e, count(f) AS numberOfFilings\\nORDER BY numberOfFilings DESC\\nRETURN e.name, numberOfFilings\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Report for which report_id is 29dd136962e1058fc290913daf242fec, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'29dd136962e1058fc290913daf242fec'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 customers have orders with the required date in the year 1997?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE o.requiredDate STARTS WITH '1997'\\nRETURN c.companyName AS customerName, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Topic where cluster contains 11, along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.cluster CONTAINS '11'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Journal for which journal_id=79942321e19994e38ad2e372af21c893!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the highest average vote and more than 1000 votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 1000\\nRETURN m.title, m.average_vote, m.vote_count\\nORDER BY m.average_vote DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 countries producing the most movies with an average vote below 5?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE m.average_vote < 5\\nWITH c, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3\\nRETURN c.name AS country, movie_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the country_codes of the address with node_id 14048584?"}, {"role": "assistant", "content": "MATCH (a:Address {node_id: 14048584})\\nRETURN a.country_codes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies directed by a person with gender 2."}, {"role": "assistant", "content": "MATCH (p:Person {gender: 2})-[:CREW_FOR {job: 'Director'}]->(m:Movie)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the author_id of the Author that is not related to the Topic with the description Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Topic {description: 'Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character has the lowest 'book1PageRank' among those who interacted with 'Aemon-Targaryen-(Maester-Aemon)' in book 2?"}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Aemon-Targaryen-(Maester-Aemon)'})<-[:INTERACTS2]-(other:Character)\\nWITH other\\nORDER BY other.book1PageRank \\nRETURN head(collect(other.name))"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the journal_id from Journal where either name is J.Diff.Eq or journal_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'J.Diff.Eq' OR n.journal_id IS NOT NULL\\nRETURN DISTINCT n.journal_id AS journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget of movies that feature both Tom Hanks and Tim Allen in the cast?"}, {"role": "assistant", "content": "MATCH (tom:Person {name: 'Tom Hanks'})\\nMATCH (tim:Person {name: 'Tim Allen'})\\nMATCH (tom)-[:CAST_FOR]->(movie:Movie)<-[:CAST_FOR]-(tim)\\nWITH avg(movie.budget) AS average_budget\\nRETURN average_budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 tweets containing the hashtag 'education'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN t\\nORDER BY t.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that were part of more than one collection."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection)\\nWITH m, count(c) AS num_collections\\nWHERE num_collections > 1\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies released after 2010 have a budget over 100 million? Limit to 5 movies."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released > '2010' AND m.budget > 100000000\\nRETURN m.title, m.released, m.budget\\nORDER BY m.budget DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to The classical level set method, which represents the boundary of the unknown\ngeometry as the zero-level set of a function, has been shown to be very\neffective in solving shape optimization problems. The present work addresses\nthe issue of using a level set representation when there are simple geometrical\nand topological constraints. We propose a logarithmic barrier penalty which\nacts to enforce the constraints, leading to an approximate solution to shape\ndesign problems.\n, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The classical level set method, which represents the boundary of the unknown geometry as the zero-level set of a function, has been shown to be very effective in solving shape optimization problems. The present work addresses the issue of using a level set representation when there are simple geometrical and topological constraints. We propose a logarithmic barrier penalty which acts to enforce the constraints, leading to an approximate solution to shape design problems. '})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Report for which report_id=d4a4409b7e8a77f4894c998a04162257!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where affiliation is unspecified and Keyword, with name equal layer-by-layer growth, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{affiliation:'unspecified'})-[*]-(e:Keyword{name:'layer-by-layer growth'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten UpdateDate that have update_date and return their records!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date IS NOT NULL\\nRETURN n.update_date\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a tagline containing the word 'limits'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'limits'\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 suppliers that have provided products to more than three different customers."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)<-[:ORDERS]-(o:Order)<-[:PURCHASED]-(c:Customer)\\nWITH s, count(DISTINCT c) AS distinctCustomers\\nWHERE distinctCustomers > 3\\nRETURN s\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 users who have retweeted tweets posted by 'neo4j'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)<-[:RETWEETS]-(rt:Tweet)<-[:POSTS]-(ru:User)\\nRETURN ru\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where cluster is 4 and Author, with affiliation equal Ohio State University, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{cluster:'4'})-[*]-(e:Author{affiliation:'Ohio State University'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article where comments is Latex, 9 pages, no figures!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = 'Latex, 9 pages, no figures'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 0ef3b1eb742dfb0bc64bdfab8ed422f1 and UpdateDate, for which update_date is 2016-11-23?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'}), (b:UpdateDate{update_date:'2016-11-23'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the highest follower count but the lowest total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s\\nORDER BY s.followers DESC, s.total_view_count ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the filings where the 'originator_bank' starts with the letter \"D\" and the 'beneficiary_bank' starts with the letter \"B\"."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank STARTS WITH \"D\" AND f.beneficiary_bank STARTS WITH \"B\"\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 most recently released movies with a revenue under 10 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue < 10000000\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has abstract A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH path=(:Article {abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies where the homepage URL includes 'disney'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.homepage CONTAINS 'disney'\\nRETURN m.title, m.homepage, m.popularity\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Service_Type_Code\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Event_Details\": \"STRING\",\n \"Event_ID\": \"INTEGER\",\n \"Service_ID\": \"INTEGER\"\n }\n },\n \"Participant\": {\n \"properties\": {\n \"Participant_Details\": \"STRING\",\n \"Participant_Type_Code\": \"STRING\",\n \"Participant_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Participant\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Participant\"\n }\n ]\n}"}, {"role": "user", "content": "what are the event details of the services that have the type code 'Marriage'?"}, {"role": "assistant", "content": "MATCH (e:Event)-[:PROVIDES]->(s:Service)\\nWHERE s.Service_Type_Code = \"Marriage\"\\nRETURN e.Event_Details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Enzyme\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Product\": \"STRING\",\n \"name\": \"STRING\",\n \"Chromosome\": \"STRING\",\n \"Location\": \"STRING\",\n \"Porphyria\": \"STRING\",\n \"OMIM\": \"INTEGER\"\n }\n },\n \"Medicine\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Trade_Name\": \"STRING\",\n \"FDA_approved\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n },\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n }\n ],\n \"relationshipProperties\": {\n \"INTERACTS_WITH\": {\n \"interaction_type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "For every medicine id, what are the names of the medicines that can interact with more than one enzyme?"}, {"role": "assistant", "content": "MATCH (m:Medicine)-[r:INTERACTS_WITH]->(e:Enzyme)\\nWITH m.id AS id, m.name AS name, count(*) as count\\nWHERE count >= 2\\nRETURN id, name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the minimum `weight` of the `INTERACTS` relationship between characters with a `book1BetweennessCentrality` less than 75?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE c1.book1BetweennessCentrality < 75 AND c2.book1BetweennessCentrality < 75\\nRETURN min(r.weight)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from Keyword where key_id is not c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id <> 'c807a6943bac079cc85fda45518ea7f4'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters with a book45PageRank in the top 10 highest values."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c\\nORDER BY c.book45PageRank DESC\\nLIMIT 10\\nRETURN c.name AS character, c.book45PageRank AS book45PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams were created between 2015 and 2020 and have more than 100,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt >= datetime('2015-01-01T00:00:00Z') AND s.createdAt <= datetime('2020-12-31T23:59:59Z') AND s.followers > 100000\\nRETURN s.id, s.name, s.createdAt, s.followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which last_name is Mason!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Mason'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many streams are moderated by users who have \"Chase\" in their name?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE u.name CONTAINS 'Chase'\\nRETURN count(DISTINCT s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which user has written the most reviews?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS user, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Keyword that has name uncountably many different asymptotic growth rates!"}, {"role": "assistant", "content": "MATCH path=(:Keyword {name:'uncountably many different asymptotic growth rates'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies where the spoken language is 'Gaeilge'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language {name: 'Gaeilge'})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the users who have written reviews for businesses in both 'Coffee' and 'Restaurant' categories."}, {"role": "assistant", "content": "MATCH (u1:User)-[:WROTE]->(r1:Review)-[:REVIEWS]->(b1:Business)-[:IN_CATEGORY]->(c1:Category {name: 'Coffee'})\\nWITH collect(distinct u1.userId) AS coffeeUsers\\nMATCH (u2:User)-[:WROTE]->(r2:Review)-[:REVIEWS]->(b2:Business)-[:IN_CATEGORY]->(c2:Category {name: 'Restaurant'})\\nWITH coffeeUsers, collect(distinct u2.userId) AS restaurantUsers\\nWITH apoc.coll.intersection(coffeeUsers, restaurantUsers) AS commonUsers\\nUNWIND commonUsers AS userId\\nMATCH (u:User {userId: userId})\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where year is 2000 and has comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2000'}]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Article for which article_id is 1048, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1048'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "How many musicals has each nominee been nominated for?"}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWITH musical.nominee AS nominee, count(musical.nominee) AS count\\nRETURN nominee,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which article_id is 1056!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1056'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Keyword for which name is population dynamics, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'population dynamics'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"response_received_date\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"sent_date\": \"STRING\"\n }\n },\n \"ProjectStaff\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"role_code\": \"STRING\",\n \"date_to\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"staff_id\": \"FLOAT\"\n }\n },\n \"OrganisationType\": {\n \"properties\": {\n \"organisation_type_description\": \"STRING\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"Organisation\": {\n \"properties\": {\n \"organisation_details\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"ResearchOutcome\": {\n \"properties\": {\n \"outcome_description\": \"STRING\",\n \"outcome_code\": \"STRING\"\n }\n },\n \"ResearchStaff\": {\n \"properties\": {\n \"employer_organisation_id\": \"INTEGER\",\n \"staff_details\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Grant\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"grant_amount\": \"FLOAT\",\n \"grant_start_date\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"grant_end_date\": \"STRING\"\n }\n },\n \"Task\": {\n \"properties\": {\n \"task_details\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"task_id\": \"INTEGER\"\n }\n },\n \"ProjectOutcome\": {\n \"properties\": {\n \"outcome_code\": \"STRING\",\n \"project_id\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"project_id\": \"INTEGER\",\n \"organisation_id\": \"INTEGER\",\n \"project_details\": \"STRING\"\n }\n },\n \"DocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_description\": \"STRING\"\n }\n },\n \"StaffRole\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Task\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Task\"\n }\n ]\n}"}, {"role": "user", "content": "What details are there on the research staff? List the result in ascending alphabetical order."}, {"role": "assistant", "content": "MATCH (n:ResearchStaff)\\nRETURN n.staff_details\\nORDER BY n.staff_details ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where affiliation is Ohio State University and share a common property with Article, for which article_id equals 1015?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Ohio State University'})-[r]->(n), (d:Article{article_id:'1015'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where article_id is 6150, through Journal via PUBLISHED_IN with pages 131-170?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'6150'})-[:PUBLISHED_IN {pages: '131-170'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average y-coordinate of users with a color of '#FF7F50'?"}, {"role": "assistant", "content": "MATCH (u:User {color: '#FF7F50'})\\nWITH avg(u.y) AS average_y\\nRETURN average_y"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of streams that play the game 'Rust' and have more than 100,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nWHERE s.followers > 100000\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the DOI where name or name contains 10.1142/S0219061301000077!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name CONTAINS '10.1142/S0219061301000077'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.name CONTAINS '10.1142/S0219061301000077'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the weekdays in which the least reviews were written."}, {"role": "assistant", "content": "MATCH (r:Review)\\nWITH apoc.temporal.format(r.date, 'EEEE') AS weekday, count(*) AS reviewCount\\nORDER BY reviewCount ASC\\nRETURN weekday, reviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 sources used in tweets that have been retweeted more than 50 times?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:USING]->(s:Source)\\nWHERE t.favorites > 50\\nRETURN s.name, COUNT(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 directors who also reviewed the movies they directed."}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)<-[:REVIEWED]-(d)\\nRETURN d.name AS Director, count(m) AS MoviesReviewedAndDirected\\nORDER BY MoviesReviewedAndDirected DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is abce5ed79c520bdb8fd79a61a852648d and Keyword, for which name is super-exponential growth?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'}), (b:Keyword{name:'super-exponential growth'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find Journal that has a name which begins with j, and is linked to Article via PUBLISHED_IN relationship, where Article has title Hyper-K{\\\"a}hler Hierarchies and their twistor theory!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'j'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 `beneficiary_bank_country` values with the highest total number of filings where the `originator_bank_country` is \"Andorra\"."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = \"Andorra\"\\nWITH f.beneficiary_bank_country AS beneficiary_bank_country, count(f) AS filing_count\\nORDER BY filing_count DESC\\nRETURN beneficiary_bank_country, filing_count\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 directors based on the number of different countries their movies have been released in."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, count(DISTINCT m.countries) AS countriesCount\\nORDER BY countriesCount DESC\\nLIMIT 3\\nRETURN d.name, countriesCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal where journal_id is d41d8cd98f00b204e9800998ecf8427e!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id = 'd41d8cd98f00b204e9800998ecf8427e'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to DOI where doi_id is ee4af8f04acefe1036a78a4436691f55 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Categories for which specifications is math.DS, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.DS'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie genre has the highest number of movies with a supernatural theme?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE toLower(m.plot) CONTAINS 'supernatural'\\nWITH m, [(m)-[:IN_GENRE]->(g) | g] AS genres\\nUNWIND genres AS genre\\nWITH genre, count(DISTINCT m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN genre.name AS genreName, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the titles of the movies directed by the person born in 1949?"}, {"role": "assistant", "content": "MATCH (p:Person {born: 1949})-[:DIRECTED]->(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the last_name from Author where either affiliation is Ohio State University or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation = 'Ohio State University' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams to play 'Rust' with more than 100,000 total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nWHERE s.total_view_count > 100000\\nRETURN s.name AS stream_name, s.total_view_count AS total_views\\nORDER BY s.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the description of the Topic and the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Topic)\\nRETURN n.description, m.description\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 5145 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '5145'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the key_id of the Keyword and the last_name for Author!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nMATCH (m:Author)\\nRETURN n.key_id, m.last_name\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Climber\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Time\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Points\": \"FLOAT\",\n \"Country\": \"STRING\",\n \"Climber_ID\": \"INTEGER\"\n }\n },\n \"Mountain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Prominence\": \"FLOAT\",\n \"Range\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Height\": \"FLOAT\",\n \"Country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n },\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n }\n ]\n}"}, {"role": "user", "content": "What are the times used by climbers who climbed mountains in the country of Uganda?"}, {"role": "assistant", "content": "MATCH (c:Climber)-[:CLIMBS]->(m:Mountain)\\nWHERE m.Country = \"Uganda\"\\nRETURN c.Time"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the labels of users who have an INTERACTED relationship with a weight of 1. Limit to the first 3."}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User)\\nWHERE r.weight = 1\\nRETURN u1.label\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"HasAllergy\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Allergy\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"AllergyType\": {\n \"properties\": {\n \"Allergy\": \"STRING\",\n \"AllergyType\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all advisors and corresponding number of students."}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN s.Advisor, count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have the shortest runtime and are in the 'Released' status?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released' AND m.runtime IS NOT NULL\\nRETURN m.title, m.runtime\\nORDER BY m.runtime\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Keyword where key_id is 6ded85146e3dbfb1bb866831b8948f5b and share a common property with Author, for which last_name equals Keller?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[r]->(n), (d:Author{last_name:'Keller'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where name is super-exponential growth and Topic, for which cluster is 2?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'super-exponential growth'}), (b:Topic{cluster:'2'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with a title starting with \"The\"."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title STARTS WITH \"The\"\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 beneficiary banks have been involved in filings with the highest total amounts?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWITH e.name AS beneficiary_bank, SUM(f.amount) AS total_amount\\nORDER BY total_amount DESC\\nLIMIT 3\\nRETURN beneficiary_bank, total_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: 23 pages, 1 figure and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '23 pages, 1 figure'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a key_id which begins with k, and is linked to Article via HAS_KEY relationship, where Article has title Rational points on compactifications of semi-simple algebraic groups!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Rational points on compactifications of semi-simple algebraic groups'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the name of the Journal and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:Author)\\nRETURN n.name, m.author_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where abstract is We describe a simple way of constructing exponentially growing solutions of\nthe second order systems with the Laplacian as the principal term.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.abstract=' We describe a simple way of constructing exponentially growing solutions of the second order systems with the Laplacian as the principal term. '\\nRETURN m.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the products with a unitsInStock less than 15."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock < 15\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 characters in terms of 'pagerank' who also have a 'louvain' value of 6?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 6\\nRETURN c.name, c.pagerank\\nORDER BY c.pagerank DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of entities that have changed their names, and what are their former names?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.former_name IS NOT NULL\\nRETURN e.name AS CurrentName, e.former_name AS FormerName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies released in the 2010s with an IMDB rating below 5.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2010 AND m.year <= 2019 AND m.imdbRating < 5.0\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Topic that have the description recorded!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description IS NOT NULL\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for abstract and article_id from Article where abstract is not null and article_id exceeds 1071 and sort the results by article_id, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract IS NOT NULL AND n.article_id > 1071\\nRETURN n.abstract AS abstract, n.article_id AS article_id\\nORDER BY article_id DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681]\nintroduced a model of the diversification of protein folds in a genome that we\nmay formulate as follows. Consider a multitype Yule process starting with one\nindividual in which there are no deaths and each individual gives birth to a\nnew individual at rate 1. When a new individual is born, it has the same type\nas its parent with probability $1-r$ and is a new type, different from all\npreviously observed types, with probability $r$. We refer to individuals with\nthe same type as families and provide an approximation to the joint\ndistribution of family sizes when the population size reaches $N$. We also show\nthat if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$\nis approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution\ndecays more rapidly than any power.\n, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681] introduced a model of the diversification of protein folds in a genome that we may formulate as follows. Consider a multitype Yule process starting with one individual in which there are no deaths and each individual gives birth to a new individual at rate 1. When a new individual is born, it has the same type as its parent with probability $1-r$ and is a new type, different from all previously observed types, with probability $r$. We refer to individuals with the same type as families and provide an approximation to the joint distribution of family sizes when the population size reaches $N$. We also show that if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$ is approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution decays more rapidly than any power. '})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products are associated with categories that have a description including 'sauces'?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.description CONTAINS 'sauces'\\nRETURN p.productName AS ProductName, p.productID AS ProductID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with more than one role listed in the 'ACTED_IN' relationship."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(p:Person)\\nWHERE size(r.roles) > 1\\nRETURN m.title, r.roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "How many users does 'Neo4j' follow?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN count(user) AS following_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all beneficiary banks that received filings from both \"Deutsche Bank AG\" and \"CIMB Bank Berhad\"."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE e.name IN [\"Deutsche Bank AG\", \"CIMB Bank Berhad\"]\\nWITH f.beneficiary_bank AS beneficiary_bank, count(DISTINCT e.name) AS distinct_originator_banks\\nWHERE distinct_originator_banks = 2\\nRETURN DISTINCT beneficiary_bank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Keyword for which key_id is 72e4f3fc2930bd3a0a7730a664d069d6!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Journal where journal_id is fce69ad0112a3426c57a0582a2b8620f and traversing through Categories with specifications nlin.SI!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[*]->(d:Categories{specifications:'nlin.SI'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the affiliation of the Author and the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Author)\\nRETURN n.affiliation, m.author_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"tv_channel\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"series_name\": \"STRING\",\n \"country\": \"STRING\",\n \"language\": \"STRING\",\n \"content\": \"STRING\",\n \"pixel_aspect_ratio_par\": \"STRING\",\n \"hight_definition_tv\": \"STRING\",\n \"pay_per_view_ppv\": \"STRING\",\n \"package_option\": \"STRING\"\n }\n },\n \"tv_series\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"episode\": \"STRING\",\n \"air_date\": \"STRING\",\n \"rating\": \"STRING\",\n \"share\": \"STRING\",\n \"18_49_rating_share\": \"STRING\",\n \"viewers_m\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"channel\": \"STRING\"\n }\n },\n \"cartoon\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"title\": \"STRING\",\n \"directed_by\": \"STRING\",\n \"written_by\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many TV Channels use the English language?"}, {"role": "assistant", "content": "MATCH (tv_channel:TV_Channel)\\nWHERE tv_channel.Language = 'English'\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams that have a language set to 'en' and a VIP who is a user?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(:Language {name: 'en'})\\nWHERE EXISTS { (s)-[:VIP]->(:User) }\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which title is The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the most production companies involved."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH m, COUNT(pc) AS productionCompanyCount\\nORDER BY productionCompanyCount DESC\\nLIMIT 5\\nRETURN m.title AS MovieTitle, productionCompanyCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Topic where cluster is 10?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'10'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a affiliation which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has comments 44 pages!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '44 pages'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.affiliation STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which routers are located in zone 4?"}, {"role": "assistant", "content": "MATCH (r:Router)\\nWHERE r.zone = 4\\nRETURN r.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most detailed biographies of their directors?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:DIRECTED]->(d:Director)\\nWHERE d.bio IS NOT NULL\\nRETURN m.title, d.name, d.bio\\nORDER BY size(d.bio) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 users by betweenness and name starting with 'N'."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.betweenness IS NOT NULL AND u.name STARTS WITH 'N'\\nRETURN u\\nORDER BY u.betweenness DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where pages is 293-299 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '293-299'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the products that have a 'discontinued' value of 'TRUE'."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = TRUE\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What DataCenters are located in Iceland, Reykjavik?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)\\nWHERE dc.location = 'Iceland, Rekjavik'\\nRETURN dc"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the IP address of the Interface that exposes the Port with the lowest port number?"}, {"role": "assistant", "content": "MATCH (p:Port)\\nWITH p\\nORDER BY p.port ASC\\nLIMIT 1\\nMATCH (i:Interface)-[:EXPOSES]->(p)\\nRETURN i.ip AS ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Contact\": {\n \"properties\": {\n \"email\": \"STRING\",\n \"name\": \"STRING\",\n \"created_at\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"created_at\": \"INTEGER\",\n \"industry\": \"STRING\"\n }\n },\n \"Lead\": {\n \"properties\": {\n \"source\": \"STRING\",\n \"name\": \"STRING\",\n \"created_at\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lead\",\n \"type\": \"CONVERTED_TO\",\n \"to\": \"Contact\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"INTERACTED_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Contact\",\n \"type\": \"INTERACTED_WITH\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Lead\",\n \"type\": \"CONVERTED_TO\",\n \"to\": \"Contact\"\n }\n ],\n \"relationshipProperties\": {\n \"CONVERTED_TO\": {\n \"date\": \"INTEGER\"\n },\n \"INTERACTED_WITH\": {\n \"interaction_type\": \"STRING\",\n \"date\": \"INTEGER\"\n },\n \"ASSOCIATED_WITH\": {\n \"date\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many leads were converted to contacts in the last month?"}, {"role": "assistant", "content": "MATCH (l:Lead)-[conversion:CONVERTED_TO]->(c:Contact)\\nWHERE date(datetime({epochmillis: conversion.date})) > date(datetime({epochmillis: timestamp()})) - duration({months: 1})\\nRETURN count(distinct l) AS convertedLeadsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Report where report_no contains Swansea preprint 99-14, along with the type of their relationship with Report!"}, {"role": "assistant", "content": "MATCH (d:Report)-[r]->(n)\\nWHERE d.report_no CONTAINS 'Swansea preprint 99-14'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the titles of the top 5 movies with the highest number of votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m.title\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the first_name and the last_name for those Author where first_name starts with M!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name STARTS WITH 'M'\\nRETURN n.first_name AS first_name, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify intermediaries that have registered addresses outside of their country of operation."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:registered_address]->(a:Address)\\nWHERE i.countries IS NOT NULL AND a.countries IS NOT NULL AND NOT i.countries CONTAINS a.countries\\nRETURN i.name AS IntermediaryName, i.countries AS CountryOfOperation, a.address AS RegisteredAddress, a.countries AS AddressCountry"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies directed by the director of the movie \"Toy Story\"."}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})<-[:DIRECTED]-(d:Director)\\nWITH d\\nMATCH (d)-[:DIRECTED]->(otherMovies:Movie)\\nRETURN DISTINCT otherMovies.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 directors who have worked with the most number of actors."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH d, COUNT(DISTINCT a) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 3\\nRETURN d.name AS directorName, actorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions asked by the user with id 10251021."}, {"role": "assistant", "content": "MATCH (u:User {id: 10251021})-[:ASKED]->(q:Question)\\nRETURN q.title AS title, q.text AS text, q.link AS link, q.createdAt AS createdAt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Flag\": \"STRING\",\n \"Type\": \"STRING\",\n \"Built_Year\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"Ship_ID\": \"INTEGER\"\n }\n },\n \"Captain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Class\": \"STRING\",\n \"age\": \"STRING\",\n \"Captain_ID\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the name, type, and flag of the ship that was built in the most recent year?"}, {"role": "assistant", "content": "MATCH (s:Ship)\\nRETURN s.Name, s.Type, s.Flag\\nORDER BY s.Built_Year DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers provide products with a reorder level above 25?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.reorderLevel > 25\\nRETURN s.companyName AS SupplierName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names of 3 businesses that have been reviewed in September 2018."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2018-09-01') AND r.date <= date('2018-09-30')\\nRETURN b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both UpdateDate and Article?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate)-[r]->(n), (d:Article)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to UpdateDate for which update_date is 2021-02-09, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2021-02-09'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"employee\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"shop\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"name\": \"STRING\",\n \"location\": \"STRING\",\n \"district\": \"STRING\",\n \"number_products\": \"STRING\",\n \"manager_name\": \"STRING\"\n }\n },\n \"hiring\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"employee_id\": \"STRING\",\n \"start_from\": \"STRING\",\n \"is_full_time\": \"STRING\"\n }\n },\n \"evaluation\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"year_awarded\": \"STRING\",\n \"bonus\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the name of the employee who got the highest one time bonus."}, {"role": "assistant", "content": "MATCH (t1:employee)-[]-(t2:evaluation)\\nRETURN t1.Name\\nORDER BY t2.Bonus DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the last names of individuals who have been contact individuals for an organization?"}, {"role": "assistant", "content": "MATCH (t1:Individual)-[:WORKS_FOR]->(t2:Organization)\\nRETURN DISTINCT t1.individual_last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all actors who have acted in more than one movie with an IMDb rating over 7."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.imdbRating > 7\\nWITH a, count(m) AS movies_count\\nWHERE movies_count > 1\\nRETURN a.name, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"HasAllergy\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Allergy\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"AllergyType\": {\n \"properties\": {\n \"Allergy\": \"STRING\",\n \"AllergyType\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Who is the advisor of student with ID 1004?"}, {"role": "assistant", "content": "MATCH (s:Student {StuID: 1004})\\nRETURN s.Advisor"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "How many products are supplied by each supplier?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nRETURN s.companyName AS Supplier, COUNT(p) AS NumberOfProducts\\nORDER BY NumberOfProducts DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where comments is 20 pages and Keyword, for which name is discrete log problem?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'20 pages'}), (b:Keyword{name:'discrete log problem'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 oldest teams based on creation date linked to streams."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nRETURN t\\nORDER BY t.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDB rating of movies released in the same country as \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (ts:Movie {title: \"Toy Story\"})\\nWITH ts.countries AS toyStoryCountries\\nMATCH (m:Movie)\\nWHERE any(country IN toyStoryCountries\\nWHERE country IN m.countries)\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 5 movies that have a release date before 1990."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date < date('1990-01-01')\\nRETURN m.title\\nORDER BY m.release_date\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of words in the summaries of movies released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released > 2000\\nWITH m\\nMATCH (m)<-[r:REVIEWED]-()\\nWITH size(split(r.summary, \" \")) AS words\\nRETURN avg(words) AS average_word_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of downvotes for questions tagged with \"graphql\"?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: \"graphql\"})\\nWITH avg(q.downVotes) AS averageDownvotes\\nRETURN averageDownvotes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the production company that produced 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:PRODUCED_BY]->(p:ProductionCompany)\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where description is The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics. and Keyword, for which name is gain?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.'}), (b:Keyword{name:'gain'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"highschooler\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"grade\": \"STRING\"\n }\n },\n \"friend\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"friend_id\": \"STRING\"\n }\n },\n \"likes\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"liked_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the grade of each high schooler?"}, {"role": "assistant", "content": "MATCH (highschooler:Highschooler)\\nRETURN highschooler.grade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wrestler\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Wrestler_ID\": \"INTEGER\",\n \"Reign\": \"STRING\",\n \"Event\": \"STRING\",\n \"Location\": \"STRING\",\n \"Days_held\": \"STRING\"\n }\n },\n \"Elimination\": {\n \"properties\": {\n \"Elimination_ID\": \"STRING\",\n \"Wrestler_ID\": \"STRING\",\n \"Time\": \"STRING\",\n \"Eliminated_By\": \"STRING\",\n \"Team\": \"STRING\",\n \"Elimination_Move\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the reigns and days held of all wrestlers?"}, {"role": "assistant", "content": "MATCH (w: Wrestler)\\nRETURN w.Reign, w.Days_held"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have acted in movies that grossed over 1 billion dollars?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.revenue > 1000000000\\nRETURN a.name, collect(m.title) AS movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that play 'Rust' and have more than 5000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE s.followers > 5000\\nRETURN s\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the comments for Article combined with the label for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.comments AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.label AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of the top 5 directors by the number of movies they have directed."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nRETURN d.name, count(m) AS movies_directed\\nORDER BY movies_directed DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Author where first_name is Lionel J. and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Lionel J.'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journalist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"STRING\",\n \"journalist_ID\": \"INTEGER\",\n \"Years_working\": \"INTEGER\",\n \"Nationality\": \"STRING\"\n }\n },\n \"Event\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Event_ID\": \"INTEGER\",\n \"Venue\": \"STRING\",\n \"Date\": \"STRING\",\n \"Event_Attendance\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Event\",\n \"type\": \"REPORTED_ON\",\n \"to\": \"Journalist\"\n },\n {\n \"from\": \"Event\",\n \"type\": \"REPORTED_ON\",\n \"to\": \"Journalist\"\n }\n ],\n \"relationshipProperties\": {\n \"REPORTED_ON\": {\n \"Work_Type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the names of journalists in ascending order of years working."}, {"role": "assistant", "content": "MATCH (j:Journalist)\\nRETURN j.Name\\nORDER BY j.Years_working ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Provide the names of entities with a jurisdiction of 'SAM' and an inactivation date on '15-FEB-2012'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction = 'SAM' AND e.inactivation_date = '15-FEB-2012'\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all orders that include a product with a unit price less than 10 and were placed in the year 1996."}, {"role": "assistant", "content": "MATCH (o:Order) \\nWHERE o.orderDate STARTS WITH '1996'\\nWITH o\\nMATCH (o)-[oi:ORDERS]->(p:Product) \\nWHERE toFloat(oi.unitPrice) < 10\\nRETURN DISTINCT o.orderID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 movies with the most distinct taglines?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline IS NOT NULL\\nRETURN m.title, m.tagline, COUNT(m.tagline) AS tagline_count\\nORDER BY tagline_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average score of questions asked in June 2020?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE datetime(q.createdAt).month = 6 AND datetime(q.createdAt).year = 2020\\nRETURN avg(q.score) AS average_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Song\": {\n \"properties\": {\n \"languages\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"song_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"releasedate\": \"STRING\",\n \"rating\": \"INTEGER\",\n \"resolution\": \"INTEGER\",\n \"genre_is\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"File\": {\n \"properties\": {\n \"duration\": \"STRING\",\n \"file_size\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"formats\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"g_name\": \"STRING\",\n \"most_popular_in\": \"STRING\",\n \"rating\": \"STRING\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"preferred_genre\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating and resolution of all bangla songs?"}, {"role": "assistant", "content": "MATCH (s:Song)-[:ASSOCIATED_WITH]->(g:Genre)\\nWHERE s.languages = \"bangla\"\\nRETURN avg(s.rating), avg(s.resolution)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Journal where journal_id is f762cb2c3b5bd7f0b3941598cfce8f15 and traversing through Author with affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f762cb2c3b5bd7f0b3941598cfce8f15'})-[*]->(d:Author{affiliation:'unspecified'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 tags most frequently associated with unanswered questions."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.answered = false\\nRETURN t.name, count(q) AS UnansweredCount\\nORDER BY UnansweredCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the countries associated with the address with node_id 14048584?"}, {"role": "assistant", "content": "MATCH (a:Address {node_id: 14048584})\\nRETURN a.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products from suppliers in 'UK'."}, {"role": "assistant", "content": "MATCH (s:Supplier {country: 'UK'})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName AS productName, s.companyName AS supplierName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Topic for which description is Focusing on techniques and concepts related to transformations, solutions, and properties of linear equations and matrices, including Jordan normal form, eigenvalues, eigenvectors, diagonalization, and eigenformulations.!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Focusing on techniques and concepts related to transformations, solutions, and properties of linear equations and matrices, including Jordan normal form, eigenvalues, eigenvectors, diagonalization, and eigenformulations.'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters who have 'INTERACTS2' relationships with a 'book' value of 2."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS2 {book: 2}]->(c2:Character)\\nRETURN c1.name, c2.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which ports are listened to by all processes running on OS 'RHEL'?"}, {"role": "assistant", "content": "MATCH (os:OS {name: 'RHEL'})-[:RUNS]->(proc:Process)-[:LISTENS]->(port:Port)\\nRETURN DISTINCT port.port"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"battle\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"date\": \"STRING\",\n \"bulgarian_commander\": \"STRING\",\n \"latin_commander\": \"STRING\",\n \"result\": \"STRING\"\n }\n },\n \"ship\": {\n \"properties\": {\n \"lost_in_battle\": \"STRING\",\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"tonnage\": \"STRING\",\n \"ship_type\": \"STRING\",\n \"location\": \"STRING\",\n \"disposition_of_ship ( Captured )\": \"STRING\"\n }\n },\n \"death\": {\n \"properties\": {\n \"caused_by_ship_id\": \"STRING\",\n \"id\": \"STRING\",\n \"note\": \"STRING\",\n \"killed\": \"STRING\",\n \"injured\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many ships ended up being 'Captured'?"}, {"role": "assistant", "content": "MATCH (ship:ship)\\nWHERE ship.disposition_of_ship = 'Captured'\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Journal for which name=Math. Ann!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Ann'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets posted by 'Neo4j' using the source 'Buffer'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:USING]->(source:Source {name: 'Buffer'})\\nRETURN tweet.text\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Geom. Topol and Topic, for which description is Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'}), (b:Topic{description:'Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the names of people who have a Master's degree in Mathematics and have worked in Boston"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_POSITION]->(pos:Position), (p)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(pos.location) CONTAINS 'boston' AND toLower(e.degree) CONTAINS 'master' AND toLower(e.university) CONTAINS 'mathematics'\\nRETURN p.id, p.role, p.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies released in the 1990s by revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 1990 AND m.year < 2000\\nRETURN m.title AS title, m.revenue AS revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have been reordered (reorder level not 0) and are supplied by suppliers in 'Germany'?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:SUPPLIES]-(s:Supplier)\\nWHERE p.reorderLevel <> 0 AND s.country = 'Germany'\\nRETURN p.productName AS ProductName, s.companyName AS SupplierName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 questions with the least favorites that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q.title, q.favorites, q.link\\nORDER BY q.favorites ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to DOI for which doi_id is 01c710839626aa78f11824682bccef1b!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'01c710839626aa78f11824682bccef1b'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 most frequent directors in the movies dataset?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:CREW_FOR]->(m:Movie)\\nWHERE r.job = 'Director'\\nRETURN p.name AS director, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Categories for which category_id is 088fbf884bd7c6533956a45531b362b7, and what are their relationships to Categories?"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r]-(n)\\nWHERE c.category_id = '088fbf884bd7c6533956a45531b362b7'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a runtime less than 85 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime < 85\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Topic and Report!"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r1]-(n)-[r2]->(d:Report)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 tweets replied to by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {name: 'Neo4j'})-[:POSTS]->(tweet:Tweet)-[:REPLY_TO]->(originalTweet:Tweet)\\nRETURN originalTweet\\nORDER BY originalTweet.created_at DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the article_id from Article where title is not Hyper-K{\\\"a}hler Hierarchies and their twistor theory!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'\\nRETURN DISTINCT n.article_id AS article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 5 businesses located on 'Pine St' in any city."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.address CONTAINS 'Pine St'\\nRETURN b.name, b.address, b.city, b.state\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "Return the phone and email of the customer with the first name Aniyah and last name Feest."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.customer_first_name = \"Aniyah\" AND c.customer_last_name = \"Feest\"\\nRETURN c.customer_phone, c.customer_email"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which games have been played by streams with more than 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 1000000\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a category_id which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has comments 26 pages; final version; to appear in Numerische Mathematik!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '26 pages; final version; to appear in Numerische Mathematik'}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from DOI where name is not 10.1016/S0040-9383(00)00015-X!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name <> '10.1016/S0040-9383(00)00015-X'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the journal_id of the Journal that is not related to the Article with the comments 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Article {comments: '21 pages, AMS-LaTeX'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Keyword that has key_id c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH path=(:Keyword {key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"customer_code\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"staff_gender\": \"STRING\",\n \"staff_name\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"DepartmentStore\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"store_phone\": \"STRING\",\n \"store_name\": \"STRING\",\n \"store_email\": \"STRING\",\n \"store_address\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"supplier_id\": \"INTEGER\",\n \"supplier_name\": \"STRING\",\n \"supplier_phone\": \"STRING\"\n }\n },\n \"DepartmentStoreChain\": {\n \"properties\": {\n \"dept_store_chain_name\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"department_id\": \"INTEGER\",\n \"department_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_AT\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"SUPPLIES\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"MANAGES\": {\n \"date_assigned_to\": \"STRING\",\n \"job_title_code\": \"STRING\",\n \"date_assigned_from\": \"STRING\"\n },\n \"SUPPLIED_BY\": {\n \"total_value_purchased\": \"FLOAT\",\n \"date_supplied_from\": \"STRING\",\n \"total_amount_purchased\": \"STRING\",\n \"date_supplied_to\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the average price of clothes?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.product_type_code = \"Clothes\"\\nRETURN AVG(p.product_price)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_no is SISSA: 39/99/FM/GEO!"}, {"role": "assistant", "content": "39/99/FM/GEO!\nA: MATCH (n:Report {report_no:'SISSA: 39/99/FM/GEO'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the contact names for suppliers in the 'UK'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.country = 'UK'\\nRETURN s.contactName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 packages that offer access to the 'Animation' genre."}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Animation'})<-[:PROVIDES_ACCESS_TO]-(p:Package)\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 suppliers whose products have never been out of stock."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.unitsInStock > 0\\nWITH s, COUNT(p) AS totalProducts, SUM(CASE WHEN p.unitsInStock > 0 THEN 1 ELSE 0 END) AS inStockProducts\\nWHERE totalProducts = inStockProducts\\nRETURN s.companyName\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of users who are chatters of the stream \"maximilian_dood\"?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: 'maximilian_dood'})-[:CHATTER]->(u:User)\\nRETURN count(DISTINCT u) AS total_chatters"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top five actors with the most diverse range of roles, having acted in at least five different movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.title IS NOT NULL\\nWITH p, size(collect(distinct r.roles)) AS num_roles, count(distinct m) AS num_movies\\nWHERE num_movies >= 5\\nRETURN p.name AS actor, num_roles AS number_of_distinct_roles\\nORDER BY num_roles DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where journal_id is f6582df4742923aacfc6e67638bd4bf6 and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 5 beneficiaries of filings with an amount greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(b:Entity)\\nWHERE f.amount > 1000000\\nWITH b, count(f) AS filing_count\\nORDER BY filing_count DESC\\nRETURN b.name, filing_count\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_id of the Report and the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:Article)\\nRETURN n.report_id, m.comments\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 questions with the most complex text content?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH q, size(split(q.text, ' ')) AS wordCount\\nORDER BY wordCount DESC\\nLIMIT 5\\nRETURN q.title AS title, q.text AS text, wordCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the specifications from Categories where category_id is not 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id <> '4b7053a7def1fb0250a0e83ebd2f9a7b'\\nRETURN DISTINCT n.specifications AS specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"MemberOfClub\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"ClubID\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"ClubLocation\": \"STRING\",\n \"ClubName\": \"STRING\",\n \"ClubDesc\": \"STRING\",\n \"ClubID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the average age of members of the club \"Tennis Club\"."}, {"role": "assistant", "content": "MATCH (c:Club)<-[:MEMBER_OF]-(m:MemberOfClub)-[:ATTENDS]->(s:Student)\\nWHERE c.ClubName = \"Tennis Club\"\\nRETURN avg(s.Age)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the 3 users who have asked the most questions without any upVotes."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.upVotes = 0\\nWITH u, count(q) AS questionsCount\\nORDER BY questionsCount DESC\\nLIMIT 3\\nRETURN u.display_name, questionsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Keyword with key_id equal to a87e17d3c9befeb236f46bf77da29d6d!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'a87e17d3c9befeb236f46bf77da29d6d'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Math. Nachr and Topic, for which description is The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Math. Nachr'}), (b:Topic{description:'The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the users who are VIPs of streams that are moderated by users who also chat in those streams and are part of a team."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(vip:User)\\nMATCH (s)-[:MODERATOR]->(mod:User)\\nWHERE (mod)-[:CHATTER]->(s) AND (s)-[:HAS_TEAM]->(:Team)\\nRETURN DISTINCT vip.name AS vip_user_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the people who have produced more than three movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWITH p, count(m) AS moviesProduced\\nWHERE moviesProduced > 3\\nRETURN p.name, moviesProduced"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 3 movies reviewed with a summary 'Fun, but a little far fetched'."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED {summary: 'Fun, but a little far fetched'}]->(m:Movie)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 countries based on the number of languages spoken in their produced movies."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country), (m)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH c.name AS country, COUNT(DISTINCT l.id) AS language_count\\nORDER BY language_count DESC\\nLIMIT 5\\nRETURN country, language_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 8 or cluster is less than 3!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 8 OR n.cluster < 3\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movie with the biggest age difference between the oldest and youngest actor in the cast."}, {"role": "assistant", "content": "MATCH (m:Movie)<--(:Person {name: \"Tom Hanks\"})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the distinct \"sourceID\" values of Entities that are connected to Intermediaries who also have a \"same_name_as\" relationship with another Intermediary."}, {"role": "assistant", "content": "MATCH (i1:Intermediary)-[:same_name_as]->(i2:Intermediary)\\nWITH DISTINCT i1\\nMATCH (i1)-[:intermediary_of]->(e:Entity)\\nRETURN DISTINCT e.sourceID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Topic where label contains Mathematical Analysis_8, along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.label CONTAINS 'Mathematical Analysis_8'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List top 3 movies released before 1980."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released < 1980\\nRETURN m.title, m.released\\nORDER BY m.votes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ParkingFine\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"ElectoralRegister\": {\n \"properties\": {\n \"electoral_register_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"RentArrear\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CouncilTax\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BusinessRate\": {\n \"properties\": {\n \"business_rates_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BenefitsOverpayment\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CmiCrossReference\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"source_system_code\": \"STRING\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CustomerMasterIndex\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"cmi_details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ParkingFine\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"ElectoralRegister\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"RentArrear\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CouncilTax\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BusinessRate\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BenefitsOverpayment\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BenefitsOverpayment\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"RentArrear\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ElectoralRegister\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ParkingFine\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BusinessRate\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CouncilTax\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n }\n ]\n}"}, {"role": "user", "content": "How many council taxes are collected for renting arrears ?"}, {"role": "assistant", "content": "MATCH (r:RentArrear)\\nRETURN count(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 3 and Article, for which abstract is The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'3'}), (b:Article{abstract:' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average reorderLevel of products in the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Seafood'})<-[:PART_OF]-(p:Product)\\nRETURN avg(p.reorderLevel) AS averageReorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with a tagline that includes the word 'Real'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Real'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the intermediaries that have an active status."}, {"role": "assistant", "content": "MATCH (i:Intermediary {status: 'ACTIVE'})\\nRETURN i"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many different people have reviewed movies released before 1990?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:REVIEWED]->(m:Movie)\\nWHERE m.released < 1990\\nRETURN count(DISTINCT p) AS reviewers_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where specifications is cs.CC and Article, with comments equal 16 pages To be published in Journal of Geometry and Physics, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{specifications:'cs.CC'})-[*]-(e:Article{comments:'16 pages To be published in Journal of Geometry and Physics'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Founder\": \"STRING\",\n \"Headquarter\": \"STRING\",\n \"Revenue\": \"FLOAT\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer\": \"INTEGER\",\n \"Price\": \"INTEGER\",\n \"Code\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ]\n}"}, {"role": "user", "content": "Select the names and the prices of all the products in the store."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.Name, p.Price"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title for Article combined with the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.article_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to DOI where name is 10.1007/s00220-004-1078-7, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00220-004-1078-7'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have at least one user as a chatter and are associated with the game 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE exists { (s)-[:CHATTER]->(:User) }\\nRETURN s\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which genres are associated with movies that have a budget greater than 100 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.budget > 100000000\\nRETURN DISTINCT g.name AS genre"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies that are part of a collection and have a budget greater than 10000000?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(:Collection)\\nWHERE m.budget > 10000000\\nRETURN m.title, m.budget, m.release_date\\nORDER BY m.release_date\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities are served by the intermediary with node_id 11000001?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {node_id: 11000001})-[:intermediary_of]->(e:Entity)\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a `louvain` value of 0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 0\\nRETURN count(c) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which software depends on the application 'webserver'?"}, {"role": "assistant", "content": "MATCH (app:Application { name: 'webserver' })\\nMATCH (software:Software)-[:DEPENDS_ON]->(app)\\nRETURN DISTINCT software.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List all tweets tagged with the hashtag 'education'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Phone\": {\n \"properties\": {\n \"Accreditation_level\": \"STRING\",\n \"Company_name\": \"STRING\",\n \"Date\": \"STRING\",\n \"Accreditation_type\": \"STRING\",\n \"chip_model\": \"STRING\",\n \"Hardware_Model_name\": \"STRING\",\n \"screen_mode\": \"STRING\"\n }\n },\n \"ChipModel\": {\n \"properties\": {\n \"WiFi\": \"STRING\",\n \"Bluetooth\": \"STRING\",\n \"Model_name\": \"STRING\",\n \"Launch_year\": \"FLOAT\",\n \"Slots\": \"STRING\",\n \"RAM_MiB\": \"FLOAT\",\n \"ROM_MiB\": \"FLOAT\"\n }\n },\n \"ScreenMode\": {\n \"properties\": {\n \"Hardware_colours\": \"FLOAT\",\n \"Graphics_mode\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Pixels\": \"STRING\",\n \"map\": \"STRING\",\n \"Char_cells\": \"STRING\",\n \"used_kb\": \"FLOAT\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which model has the least amount of RAM? List the model name and the amount of RAM."}, {"role": "assistant", "content": "MATCH (ChipModel)\\nRETURN ChipModel.Model_name, ChipModel.RAM_MiB\\nORDER BY ChipModel.RAM_MiB ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the specifications for Categories combined with the category_id for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.category_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch all the Article and return the comments and the number of nodes connected to them via PUBLISHED_IN with pages = 89-106."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '89-106'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.comments AS comments, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Journal that has name J.Diff.Eq!"}, {"role": "assistant", "content": "MATCH path=(:Journal {name:'J.Diff.Eq'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which description is Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications., by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Keyword for which name is tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water-, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where comments is latex, 38 pages, typos corrected, through Journal via PUBLISHED_IN with year 2001?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'latex, 38 pages, typos corrected'})-[:PUBLISHED_IN {year: '2001'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 89-106 and retrieve the title of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '89-106'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all users who are VIPs in at least two different streams."}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWITH u, count(distinct s) as num_vip_streams\\nWHERE num_vip_streams >= 2\\nRETURN u.name as user, num_vip_streams"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 20 pages and DOI, with doi_id equal f2f5ea4787de1e16c51c306e07bb740c, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'20 pages'})-[*]-(e:DOI{doi_id:'f2f5ea4787de1e16c51c306e07bb740c'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the businesses that have been reviewed by both Will and Jenny."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nWHERE u.name IN ['Will', 'Jenny']\\nWITH b, count(DISTINCT u) AS userCount\\nWHERE userCount = 2\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the Version that precedes the Version named '7.1'?"}, {"role": "assistant", "content": "MATCH (v:Version {name: '7.1'})<-[:PREVIOUS]-(prev:Version)\\nRETURN prev.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Device\": {\n \"properties\": {\n \"Device\": \"STRING\",\n \"Carrier\": \"STRING\",\n \"Software_Platform\": \"STRING\",\n \"Applications\": \"STRING\",\n \"Device_ID\": \"INTEGER\",\n \"Package_Version\": \"STRING\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Open_Date\": \"STRING\",\n \"Shop_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Shop_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Device\",\n \"type\": \"SELLS\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"Device\",\n \"type\": \"SELLS\",\n \"to\": \"Shop\"\n }\n ],\n \"relationshipProperties\": {\n \"SELLS\": {\n \"Quantity\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of shops in ascending order of open year?"}, {"role": "assistant", "content": "MATCH (s:Shop)\\nRETURN s.Shop_Name\\nORDER BY s.Open_Year ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of businesses that have 'Market' in their name."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name CONTAINS 'Market'\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Trial\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"disease\": \"STRING\",\n \"phase\": \"STRING\"\n }\n },\n \"Publication\": {\n \"properties\": {\n \"journal\": \"STRING\",\n \"title\": \"STRING\",\n \"year\": \"INTEGER\"\n }\n },\n \"Patient\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Patient\",\n \"type\": \"PARTICIPATED_IN\",\n \"to\": \"Trial\"\n },\n {\n \"from\": \"Trial\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Publication\"\n },\n {\n \"from\": \"Trial\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Publication\"\n },\n {\n \"from\": \"Patient\",\n \"type\": \"PARTICIPATED_IN\",\n \"to\": \"Trial\"\n }\n ],\n \"relationshipProperties\": {\n \"PARTICIPATED_IN\": {\n \"end_date\": \"STRING\",\n \"role\": \"STRING\",\n \"start_date\": \"STRING\"\n },\n \"PUBLISHED_IN\": {\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many male patients participated in the trials?"}, {"role": "assistant", "content": "MATCH (p:Patient)-[:PARTICIPATED_IN]->(t:Trial)\\nWITH DISTINCT p\\nWHERE p.gender = 'Male'\\nRETURN COUNT(p) as count"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"List top 5 comedy movies released in 2000 based on imdb ratings\""}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_GENRE]->(:Genre {name: \"Comedy\"})\\nWHERE m.released = 2000\\nRETURN m.title, m.votes\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 categories for businesses in 'San Mateo'."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})-[:IN_CATEGORY]->(c:Category)\\nRETURN DISTINCT c.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which category_id starts with 994!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id STARTS WITH '994'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a poster path containing '/rhIRbceoE9lR4veEXuwCC2wARtG.jpg'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path = '/rhIRbceoE9lR4veEXuwCC2wARtG.jpg'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget of movies released in the year 2013?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year = 2013\\nWITH avg(m.budget) AS average_budget\\nRETURN average_budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where affiliation is Nice - Sophia Antipolis and Journal, for which journal_id is fce69ad0112a3426c57a0582a2b8620f?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'}), (b:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are moderators of streams that are chatters of streams that are VIPs of streams that play the game \"Resident Evil Village\"?"}, {"role": "assistant", "content": "MATCH (g:Game {name: \"Resident Evil Village\"})<-[:PLAYS]-(s1:Stream)<-[:VIP]-(s2:Stream)<-[:CHATTER]-(s3:Stream)<-[:MODERATOR]-(u:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Categories for which category_id is cb7bf6a30b0381c15264305ad7677b30!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 users followed by 'Neo4j' based on betweenness score?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed.screen_name AS user, followed.betweenness AS betweenness\\nORDER BY followed.betweenness DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "Show the price ranges of hotels with 5 star ratings."}, {"role": "assistant", "content": "MATCH (h:Hotel)\\nWHERE h.star_rating_code = \"5\"\\nRETURN h.price_range"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Category theory_3 and Keyword, with name equal logarithms, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Category theory_3'})-[*]-(e:Keyword{name:'logarithms'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have directed movies with a plot mentioning 'evil'?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.plot CONTAINS 'evil'\\nRETURN d.name, m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies where the main actor has also directed the film?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the actors who have acted in movies with a rating above 95."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.rating > 95\\nWITH m\\nMATCH (m)<-[:ACTED_IN]-(a:Person)\\nRETURN DISTINCT a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Report where report_id is 42a4c65c8ac88e75fed4b8e25a71dc9a and share a common property with Journal, for which journal_id equals 904b65f98bb6823aaf3f72721984560a?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'42a4c65c8ac88e75fed4b8e25a71dc9a'})-[r]->(n), (d:Journal{journal_id:'904b65f98bb6823aaf3f72721984560a'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or last_name contains S. O.!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'S. O.'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'S. O.'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 zones have a size of 16 and are connected via interface IP '10.3.10.254'?"}, {"role": "assistant", "content": "MATCH (z:Zone {size: 16})-[:ROUTES]->(i:Interface {ip: '10.3.10.254'})\\nRETURN z.ip AS zone_ip\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 actors by the number of IMDb votes they've received for their movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, sum(m.imdbVotes) AS totalVotes\\nRETURN a.name AS actorName, totalVotes\\nORDER BY totalVotes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code\": \"STRING\",\n \"date_effective_from\": \"STRING\",\n \"date_effective_to\": \"STRING\",\n \"template_details\": \"STRING\"\n }\n },\n \"documents\": {\n \"properties\": {\n \"document_id\": \"STRING\",\n \"template_id\": \"STRING\",\n \"document_name\": \"STRING\",\n \"document_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"paragraphs\": {\n \"properties\": {\n \"paragraph_id\": \"STRING\",\n \"document_id\": \"STRING\",\n \"paragraph_text\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all paragraph ids and texts for the document with name 'Welcome to NY'."}, {"role": "assistant", "content": "MATCH (T1:Paragraphs)-[]-(T2:Documents)\\nWHERE T2.Document_Name = 'Welcome to NY'\\nRETURN T1.Paragraph_ID,T1.Paragraph_Text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 users by the number of movies they have rated."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, COUNT(r) AS numRatings\\nORDER BY numRatings DESC\\nLIMIT 5\\nRETURN u.name AS userName, numRatings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2007-05-23 and the year of the update_date is 2014!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2007-05-23' AND date(n.update_date).year = 2014\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Report for which report_id is 9301481d98615f874763a17d18e2dc92, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Report{report_id:'9301481d98615f874763a17d18e2dc92'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Room\": {\n \"properties\": {\n \"decor\": \"STRING\",\n \"beds\": \"INTEGER\",\n \"RoomId\": \"STRING\",\n \"roomName\": \"STRING\",\n \"bedType\": \"STRING\",\n \"maxOccupancy\": \"INTEGER\",\n \"basePrice\": \"INTEGER\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"CheckIn\": \"STRING\",\n \"Room\": \"STRING\",\n \"Kids\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"CheckOut\": \"STRING\",\n \"Adults\": \"INTEGER\",\n \"LastName\": \"STRING\",\n \"Code\": \"INTEGER\",\n \"Rate\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the room that can accommodate the most people?"}, {"role": "assistant", "content": "MATCH (r:Room)\\nRETURN r.roomName\\nORDER BY r.maxOccupancy DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where first_name contains Bernhard, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.first_name CONTAINS 'Bernhard'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all products that have more than 50 units on order."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 50\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which author_id is 976d319b0a2961b44db9ef9e43ea5039!"}, {"role": "assistant", "content": "MATCH (n:Author {author_id:'976d319b0a2961b44db9ef9e43ea5039'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which tweets by 'neo4j' have been retweeted and also contain a link?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nWHERE exists{ (tweet)-[:RETWEETS]->(:Tweet) } AND exists{ (tweet)-[:CONTAINS]->(:Link) }\\nRETURN tweet.text, tweet.created_at"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Keyword with key_id equal to c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies that have been produced by persons born after 1960 limited to top 5."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE p.born > 1960\\nRETURN m.title AS movie_title, m.released AS release_year\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have the most entities linked as originators in the filings?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)<-[:ORIGINATOR]-(f:Filing)\\nWITH c.name AS country, COUNT(e) AS entity_count\\nRETURN country, entity_count\\nORDER BY entity_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic where cluster is 6, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{cluster:'6'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have the closest x-coordinate to 0?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.x IS NOT NULL\\nRETURN u\\nORDER BY abs(u.x)\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 suppliers have the least discontinued products?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.discontinued = false\\nWITH s, count(p) AS activeProducts\\nORDER BY activeProducts ASC\\nRETURN s.companyName, activeProducts\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where title is Chow groups of weighted hypersurfaces and share a common property with Report, for which report_no equals ITF-99-42?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Chow groups of weighted hypersurfaces'})-[r]->(n), (d:Report{report_no:'ITF-99-42'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the UpdateDate for which update_date is 2014-01-15!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate {update_date:'2014-01-15'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Report for which report_id is 5049b80a2935f95cc95cf14dbfb8c610!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 links contained in the tweets posted by users with fewer than 100 followers?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE u.followers < 100\\nRETURN l.url, count(*) as count\\nORDER BY count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 users by number of statuses posted."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nWITH u, COUNT(t) AS tweet_count\\nRETURN u.screen_name, tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 customers who have ordered products in the 'Meat/Poultry' category."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)-[:PART_OF]->(cat:Category {categoryName: 'Meat/Poultry'})\\nWITH c, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 3\\nRETURN c.companyName AS customerName, orderCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Journal where journal_id is e7b0a9b48142710ab6e87f136f6b7606, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a poster path containing '/eoWvKD60lT95Ss1MYNgVExpo5iU.jpg'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path = '/eoWvKD60lT95Ss1MYNgVExpo5iU.jpg'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all entities that were valid until 2015."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.valid_until = \"The Panama Papers data is current through 2015\"\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been spoken in 'Kiswahili'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language {name: 'Kiswahili'})\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where abstract is The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n and share a common property with Journal, for which name equals J. Number Theory?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '})-[r]->(n), (d:Journal{name:'J. Number Theory'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "What are the codes of card types that have 5 or more cards?"}, {"role": "assistant", "content": "MATCH (cc:Customer_Cards)\\nWITH cc.card_type_code AS card_type_code, COUNT(*) AS count\\nWHERE count >= 5\\nRETURN card_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 streams that play the game 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nRETURN s.name, s.url, s.createdAt\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the most VIP users who also have more than 5000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE u.followers > 5000\\nWITH s, count(u) AS vipCount\\nRETURN s.name AS streamName, vipCount\\nORDER BY vipCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the `orderID` and `shipName` of orders that contain only products with a `unitPrice` higher than 50."}, {"role": "assistant", "content": "MATCH (o:Order)-[rel:ORDERS]->(p:Product) \\nWHERE toFloat(rel.unitPrice) > 50 AND NOT EXISTS { \\nMATCH (o)-[rel2:ORDERS]->(p2:Product) \\nWHERE toFloat(rel2.unitPrice) <= 50 }\\nRETURN o.orderID, o.shipName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have starred in movies with a revenue greater than 500 million?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWHERE m.revenue > 500000000\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the taglines of movies with a released year after 1995 and have the word \"rom\" in the summary."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE m.released > 1995 AND toLower(r.summary) CONTAINS \"rom\"\\nRETURN DISTINCT m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?"}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWHERE musical.award = 'Tony Award' OR musical.award = 'Cleavant Derricks'\\nRETURN musical.nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 languages spoken in movies released after 2010."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.release_date > date('2010-01-01')\\nRETURN l.name AS language\\nORDER BY language\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Keyword for which key_id is c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies directed by a person born in France."}, {"role": "assistant", "content": "MATCH (d:Director {bornIn: 'France'})-[:DIRECTED]->(m:Movie)\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Author for which last_name=Christensen!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Christensen'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which name is 10.1142/S0219061301000077!"}, {"role": "assistant", "content": "MATCH (n:DOI {name:'10.1142/S0219061301000077'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the journal_id from Journal where either name is Math. Nachr or journal_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'Math. Nachr' OR n.journal_id IS NOT NULL\\nRETURN DISTINCT n.journal_id AS journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where meta is 218 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '218'}]->(m:Journal)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the tweets that replied to a tweet by 'neo4j' and list the first 3."}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: 'neo4j'})-[:POSTS]->(originalTweet:Tweet)<-[:REPLY_TO]-(replyTweet:Tweet)\\nRETURN replyTweet\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where affiliation is unspecified and traversing through Report with report_no G&T migration 2000-1!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[*]->(d:Report{report_no:'G&T migration 2000-1'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Keyword for which key_id is d2d74b47b149d8090871a2f33e80809b, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 countries where the most filings have ended."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS|:CONCERNS|:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.end IS NOT NULL\\nWITH c.name AS country, COUNT(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3\\nRETURN country, filings_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 dependencies of the application 'webserver'."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})-[:DEPENDS_ON]->(dep)\\nRETURN dep.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies produced by someone born before 1950?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)<-[r:REVIEWED]-()\\nWHERE p.born < 1950\\nWITH avg(r.rating) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Perpetrator\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Killed\": \"INTEGER\",\n \"Date\": \"STRING\",\n \"Perpetrator_ID\": \"INTEGER\",\n \"Injured\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Country\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Weight\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Home Town\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the location of the perpetrator with the largest kills."}, {"role": "assistant", "content": "MATCH (p:Perpetrator)\\nRETURN p.Location\\nORDER BY p.Killed DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"cust_name\": \"STRING\",\n \"acc_bal\": \"INTEGER\",\n \"no_of_loans\": \"INTEGER\",\n \"acc_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"credit_score\": \"INTEGER\"\n }\n },\n \"Loan\": {\n \"properties\": {\n \"amount\": \"INTEGER\",\n \"loan_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"STRING\",\n \"loan_ID\": \"STRING\"\n }\n },\n \"Bank\": {\n \"properties\": {\n \"bname\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"no_of_customers\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n }\n ]\n}"}, {"role": "user", "content": "In how many different cities are banks located?"}, {"role": "assistant", "content": "MATCH (b:Bank)\\nRETURN COUNT(DISTINCT b.city)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' follows?"}, {"role": "assistant", "content": "MATCH (me:Me {name: 'Neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed.name AS user, followed.followers AS followers\\nORDER BY followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the name from Journal where either journal_id is ebe5bed51965553359ee9f13db0293e1 or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id = 'ebe5bed51965553359ee9f13db0293e1' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the reviews for businesses that have been reviewed exactly twice."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, COUNT(r) AS reviewCount\\nWHERE reviewCount = 2\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nRETURN b.name AS businessName, r.text AS reviewText, r.stars AS reviewStars, r.date AS reviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all categories associated with businesses in 'San Mateo'."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})-[:IN_CATEGORY]->(c:Category)\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 movies released most recently."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names, addresses, and categories of businesses that have been reviewed by 'Bob'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Bob'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nMATCH (b)-[:IN_CATEGORY]->(c:Category)\\nRETURN b.name AS businessName, b.address AS address, c.name AS category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 actors who acted in a movie without having a born date listed."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.born IS NULL\\nRETURN a.name AS actorName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is math.CA and DOI, for which doi_id is abce5ed79c520bdb8fd79a61a852648d?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.CA'}), (b:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which doi_id is abce5ed79c520bdb8fd79a61a852648d!"}, {"role": "assistant", "content": "MATCH (n:DOI {doi_id:'abce5ed79c520bdb8fd79a61a852648d'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the Application that has the most outgoing connections to other Applications?"}, {"role": "assistant", "content": "MATCH (app:Application)-[:DEPENDS_ON]->(:Application)\\nWITH app, count(*) AS connection_count\\nORDER BY connection_count DESC\\nLIMIT 1\\nRETURN app.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 products with the most orders during the last quarter of 1997."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWHERE o.orderDate >= '1997-10-01' AND o.orderDate <= '1997-12-31'\\nRETURN p.productName, COUNT(r) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the keywords associated with the movie \"Grumpier Old Men\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Grumpier Old Men\"})-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN k.name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which producer produced the most movies?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nRETURN p.name, COUNT(m) AS movies_produced\\nORDER BY movies_produced DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find all products with a 'unitsOnOrder' of 0 and a 'reorderLevel' above 10."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder = 0 AND p.reorderLevel > 10\\nRETURN p.productName, p.unitsOnOrder, p.reorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies that have a revenue greater than 100 million USD and are in the genre 'Action'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.revenue > 100000000 AND g.name = 'Action'\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of author_id and last_name from Author where author_id does not start with a!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.author_id STARTS WITH 'a'\\nRETURN DISTINCT n.author_id AS author_id, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which tweets by 'neo4j' use the source named 'Buffer'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:USING]->(s:Source {name: 'Buffer'})\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which machines are running both the 'crm' and the 'logstash' applications?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(a:Application)\\nWHERE a.name = 'crm'\\nWITH collect(m) AS crmMachines\\nMATCH (m:Machine)-[:RUNS]->(a:Application)\\nWHERE a.name = 'logstash'\\nWITH crmMachines, collect(m) AS logstashMachines\\nRETURN [m IN crmMachines\\nWHERE m IN logstashMachines] AS machinesRunningBothApplications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Author that are missing the first_name!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name IS NULL\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Find the switches that route to interface with IP '10.1.1.1'."}, {"role": "assistant", "content": "MATCH (s:Switch)-[:ROUTES]->(i:Interface {ip: '10.1.1.1'})\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 sources used in tweets that mention 'neo4j'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nMATCH (t)-[:USING]->(s:Source)\\nRETURN s.name, count(t) AS mentions\\nORDER BY mentions DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies that have a runtime longer than 120 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 120\\nRETURN m.title, m.runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have entities that have been beneficiaries in the most filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(f) AS FilingsCount\\nORDER BY FilingsCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which article_id is 1006!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1006'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Room\": {\n \"properties\": {\n \"decor\": \"STRING\",\n \"beds\": \"INTEGER\",\n \"RoomId\": \"STRING\",\n \"roomName\": \"STRING\",\n \"bedType\": \"STRING\",\n \"maxOccupancy\": \"INTEGER\",\n \"basePrice\": \"INTEGER\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"CheckIn\": \"STRING\",\n \"Room\": \"STRING\",\n \"Kids\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"CheckOut\": \"STRING\",\n \"Adults\": \"INTEGER\",\n \"LastName\": \"STRING\",\n \"Code\": \"INTEGER\",\n \"Rate\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of distinct bed types available in this inn."}, {"role": "assistant", "content": "MATCH (r:Room)\\nRETURN COUNT(DISTINCT r.bedType) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the comments from Article where either comments is no comments or comments is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = 'no comments' OR n.comments IS NOT NULL\\nRETURN DISTINCT n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person has reviewed the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, count(r) AS num_reviews\\nORDER BY num_reviews DESC\\nLIMIT 1\\nRETURN p.name AS person, num_reviews"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n and Topic, for which label equals Mathematical Analysis_8?"}, {"role": "assistant", "content": "MATCH p=(a:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[*]->(d:Topic{label:'Mathematical Analysis_8'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies that share the same genre as \"Toy Story\" but were not produced by \"Pixar Animation Studios\"."}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Toy Story\"})-[:IN_GENRE]->(g:Genre)\\nWITH g\\nMATCH (otherMovie:Movie)-[:IN_GENRE]->(g)\\nWHERE NOT (otherMovie)-[:PRODUCED_BY]->(:ProductionCompany {name: \"Pixar Animation Studios\"})\\nRETURN DISTINCT otherMovie.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a last_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has title Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Chow groups of weighted hypersurfaces'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have directed movies in more than 5 different languages?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, collect(DISTINCT m.languages) AS languages\\nWHERE size(apoc.coll.flatten(languages)) > 5\\nRETURN d.name AS Director, size(apoc.coll.flatten(languages)) AS NumberOfLanguages\\nORDER BY NumberOfLanguages DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the streams that have more than one moderator."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(u:User)\\nWITH s, COUNT(u) AS moderatorCount\\nWHERE moderatorCount > 1\\nRETURN s.name AS streamName, moderatorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 genres has 'Toy Story' been categorized under?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the roles played by Laurence Fishburne in 'The Matrix Revolutions'?"}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Laurence Fishburne'})-[r:ACTED_IN]->(m:Movie {title: 'The Matrix Revolutions'})\\nRETURN r.roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where title is not Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title <> 'Chow groups of weighted hypersurfaces'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Show top 3 intermediaries from South Africa."}, {"role": "assistant", "content": "MATCH (i:Intermediary {countries: \"South Africa\"})\\nRETURN i\\nORDER BY i.node_id\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report where report_no is G&T migration 2000-1, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Report{report_no:'G&T migration 2000-1'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have also acted in the movies they directed?"}, {"role": "assistant", "content": "MATCH (director:Person)-[:DIRECTED]->(movie:Movie)<-[:ACTED_IN]-(director)\\nRETURN director.name AS director, collect(movie.title) AS movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Keyword for which key_id is d8ed805e2dd529e548ead28198edd980!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d8ed805e2dd529e548ead28198edd980'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 10 Categories that have the specifications recorded and return these values!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications IS NOT NULL\\nRETURN n.specifications\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Author for which first_name=Jean-Francois!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Jean-Francois'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions have a score greater than 0?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score > 0\\nRETURN q.title, q.link, q.score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Article for which article_id is 1009, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1009'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Categories that has category_id 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH path=(:Categories {category_id:'978aee6db23fc939cec71ac05eb15b7a'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which doi_id is fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (n:DOI {doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies directed by a person born in France."}, {"role": "assistant", "content": "MATCH (p:Person {bornIn: 'France'})-[:DIRECTED]->(m:Movie)\\nRETURN m.title AS movie, p.name AS director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a last_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has abstract Using a contraction procedure, we construct a twist operator that satisfies a\nshifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2))\nalgebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a\nGervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a\nclass of representations, the dynamical Yang-Baxter equation may be expressed\nas a compatibility condition for the algebra of the Lax operators.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Using a contraction procedure, we construct a twist operator that satisfies a shifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a Gervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a class of representations, the dynamical Yang-Baxter equation may be expressed as a compatibility condition for the algebra of the Lax operators. '}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where title is Riemannian geometry of quantum groups and finite groups with\n nonuniversal differentials and PUBLISHED_IN has pages on 131-170!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '131-170'}]->(m)\\nWHERE n.title='Riemannian geometry of quantum groups and finite groups with nonuniversal differentials'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the businesses that have received reviews with more than 4 stars?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars > 4\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the budget of the movie with the highest revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH max(m.revenue) AS max_revenue\\nMATCH (m:Movie {revenue: max_revenue})\\nRETURN m.budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where category_id is b1d13c8b6874949821d038a8a71379d1 and share a common property with Topic, for which cluster equals 10?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[r]->(n), (d:Topic{cluster:'10'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Topic where label is Population Dynamics_0 and traversing through Author with last_name Chakrabarti!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Population Dynamics_0'})-[*]->(d:Author{last_name:'Chakrabarti'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most expensive products in the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Dairy Products'})<-[:PART_OF]-(p:Product)\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Report where report_no is ITF-99-42?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'ITF-99-42'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where last_name or affiliation contains Polishchuk!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name CONTAINS 'Polishchuk'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.affiliation CONTAINS 'Polishchuk'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the three most commonly used hashtags in tweets?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS hashtag, COUNT(*) AS usage_count\\nORDER BY usage_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the author_id of the Author that is not related to the Report with the report_no PUMA 566!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Report {report_no: 'PUMA 566'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Can you please tell me the genres of Underneath?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Underneath\"})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?"}, {"role": "assistant", "content": "MATCH (c:College)\\nWHERE c.enr < 13000 AND c.state = \"AZ\"\\nRETURN c.cName\\nUNION\\nMATCH (c:College)\\nWHERE c.enr > 15060 AND c.state = \"LA\"\\nRETURN c.cName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors were born in the USA and have directed at least 3 movies?"}, {"role": "assistant", "content": "MATCH (d:Director {bornIn: 'USA'})\\nWITH d, count{(d)-[:DIRECTED]->(:Movie)} AS directedMovies\\nWHERE directedMovies >= 3\\nRETURN d\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average star rating of reviews written for businesses that have not received any reviews in the last year?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, r\\nWHERE date(r.date) < date() - duration({days: 365})\\nWITH b\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWITH b, avg(r.stars) AS average_rating\\nRETURN b.name AS business_name, average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StudentTestsTaken\": {\n \"properties\": {\n \"registration_id\": \"INTEGER\",\n \"test_result\": \"STRING\",\n \"date_test_taken\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"personal_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_of_registration\": \"STRING\",\n \"family_name\": \"STRING\",\n \"password\": \"STRING\",\n \"date_of_latest_logon\": \"STRING\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"subject_id\": \"INTEGER\",\n \"course_name\": \"STRING\",\n \"author_id\": \"INTEGER\",\n \"course_id\": \"INTEGER\",\n \"course_description\": \"STRING\"\n }\n },\n \"CourseAuthorsAndTutor\": {\n \"properties\": {\n \"address_line_1\": \"STRING\",\n \"personal_name\": \"STRING\",\n \"gender_mf\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"family_name\": \"STRING\",\n \"author_id\": \"INTEGER\",\n \"author_tutor_ATB\": \"STRING\",\n \"password\": \"STRING\"\n }\n },\n \"Subject\": {\n \"properties\": {\n \"subject_name\": \"STRING\",\n \"subject_id\": \"INTEGER\"\n }\n },\n \"StudentCourseEnrolment\": {\n \"properties\": {\n \"registration_id\": \"INTEGER\",\n \"date_of_enrolment\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"course_id\": \"INTEGER\",\n \"date_of_completion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StudentTestsTaken\",\n \"type\": \"RELATES_TO\",\n \"to\": \"StudentCourseEnrolment\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_AUTHORS_AND_TUTOR\",\n \"to\": \"CourseAuthorsAndTutor\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TEACHES\",\n \"to\": \"Subject\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_AUTHORS_AND_TUTOR\",\n \"to\": \"CourseAuthorsAndTutor\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TEACHES\",\n \"to\": \"Subject\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentTestsTaken\",\n \"type\": \"RELATES_TO\",\n \"to\": \"StudentCourseEnrolment\"\n }\n ]\n}"}, {"role": "user", "content": "What is the address of each course author or tutor?"}, {"role": "assistant", "content": "MATCH (a:CourseAuthorsAndTutor)\\nRETURN a.address_line_1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"MemberOfClub\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"ClubID\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"ClubLocation\": \"STRING\",\n \"ClubName\": \"STRING\",\n \"ClubDesc\": \"STRING\",\n \"ClubID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of all the clubs at \"AKW\"."}, {"role": "assistant", "content": "MATCH (c:Club)\\nWHERE c.ClubLocation = \"AKW\"\\nRETURN c.ClubName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the id of the question with the shortest title?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.id, size(q.title) AS titleLength\\nORDER BY titleLength ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which title is Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `degree` of characters who interact with \"Catelyn-Stark\" in book 3?"}, {"role": "assistant", "content": "MATCH (catelyn:Character {name: \"Catelyn-Stark\"})-[:INTERACTS3]->(other)\\nWITH avg(other.degree) AS average_degree\\nRETURN average_degree"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the report_no from Report where either report_no is Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17;\n MPI-PhT/99-45 or report_no is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no = 'Dip. Matematica e Applicazioni, Napoli 99-52; LMU-TPW 99-17; MPI-PhT/99-45' OR n.report_no IS NOT NULL\\nRETURN DISTINCT n.report_no AS report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"poker_player\": {\n \"properties\": {\n \"poker_player_id\": \"STRING\",\n \"people_id\": \"STRING\",\n \"final_table_made\": \"STRING\",\n \"best_finish\": \"STRING\",\n \"money_rank\": \"STRING\",\n \"earnings\": \"STRING\"\n }\n },\n \"people\": {\n \"properties\": {\n \"people_id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_date\": \"STRING\",\n \"height\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the average earnings across all poker players."}, {"role": "assistant", "content": "MATCH (poker_player:poker_player)\\nRETURN avg(poker_player.Earnings)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of users who are VIPs of the stream \"dota2mc_ru\"?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: \"dota2mc_ru\"})-[:VIP]->(u:User)\\nRETURN count(DISTINCT u) AS vip_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of name and journal_id from Journal where name does not start with T!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE NOT n.name STARTS WITH 'T'\\nRETURN DISTINCT n.name AS name, n.journal_id AS journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have the highest average rating given to movies? (minimum 3 ratings)"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, avg(r.rating) AS avgRating, count(r) AS numRatings\\nWHERE numRatings >= 3\\nRETURN u, avgRating\\nORDER BY avgRating DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Ship_ID\": \"INTEGER\",\n \"Nationality\": \"STRING\",\n \"Tonnage\": \"INTEGER\"\n }\n },\n \"Mission\": {\n \"properties\": {\n \"Mission_ID\": \"INTEGER\",\n \"Speed_knots\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Launched_Year\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\",\n \"Code\": \"STRING\",\n \"Fate\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the name of ships whose nationality is not \"United States\"."}, {"role": "assistant", "content": "MATCH (s:Ship)\\nWHERE s.Nationality <> \"United States\"\\nRETURN s.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most number of genres associated?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH m, count(g) AS genreCount\\nORDER BY genreCount DESC\\nLIMIT 5\\nRETURN m.title AS movie, genreCount AS numberOfGenres"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Dependent\": {\n \"properties\": {\n \"Essn\": \"INTEGER\",\n \"Dependent_name\": \"STRING\",\n \"Relationship\": \"STRING\",\n \"Bdate\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"WorksOn\": {\n \"properties\": {\n \"Essn\": \"INTEGER\",\n \"Pno\": \"INTEGER\",\n \"Hours\": \"FLOAT\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Plocation\": \"STRING\",\n \"Dnum\": \"INTEGER\",\n \"Pname\": \"STRING\",\n \"Pnumber\": \"INTEGER\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"Dnumber\": \"INTEGER\",\n \"Mgr_start_date\": \"STRING\",\n \"Dname\": \"STRING\",\n \"Mgr_ssn\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"Super_ssn\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"Address\": \"STRING\",\n \"Lname\": \"STRING\",\n \"Bdate\": \"STRING\",\n \"Salary\": \"INTEGER\",\n \"Minit\": \"STRING\",\n \"Dno\": \"INTEGER\",\n \"Ssn\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"DeptLocation\": {\n \"properties\": {\n \"Dnumber\": \"INTEGER\",\n \"Dlocation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "how many female dependents are there?"}, {"role": "assistant", "content": "MATCH (d:Dependent)\\nWHERE d.Sex = 'F'\\nRETURN count(d)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Article where comments contains no comments, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.comments CONTAINS 'no comments'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the abstract of the Article that is not related to the Article with the comments 18 pages, latex2e with amsfonts. Final version, accepted for\n publication!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Article {comments: '18 pages, latex2e with amsfonts. Final version, accepted for publication'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 movies that have been produced in a specific genre, e.g., 'Animation'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nRETURN m.title AS MovieTitle, m.average_vote AS AverageVote\\nORDER BY m.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from Journal where journal_id is not d41d8cd98f00b204e9800998ecf8427e!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id <> 'd41d8cd98f00b204e9800998ecf8427e'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the users who have interacted with users located at y-coordinate less than -5000."}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.y < -5000\\nRETURN DISTINCT u1.label AS InteractingUsers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Article for which abstract is Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{abstract:' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with the highest budget to revenue ratio?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget IS NOT NULL AND m.revenue IS NOT NULL AND m.revenue > 0\\nRETURN m.title, m.budget, m.revenue, (toFloat(m.budget) / m.revenue) AS budgetToRevenueRatio\\nORDER BY budgetToRevenueRatio DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a total view count below 50,000 and are associated with the language 'ru'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'ru'})\\nWHERE s.total_view_count < 50000\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'degree' of characters who interacted with \"Addam-Marbrand\"?"}, {"role": "assistant", "content": "MATCH (c:Character { name: \"Addam-Marbrand\" })-[r]->(other)\\nWITH DISTINCT other\\nRETURN avg(other.degree)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where name is 10.1007/PL00005532 and Article, for which comments is 21 pages, AMS-LaTeX?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/PL00005532'}), (b:Article{comments:'21 pages, AMS-LaTeX'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of users who rated a movie from the 'Animation' genre?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ExhibitionRecord\": {\n \"properties\": {\n \"Date\": \"STRING\",\n \"Exhibition_ID\": \"INTEGER\",\n \"Attendance\": \"INTEGER\"\n }\n },\n \"Exhibition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Exhibition_ID\": \"INTEGER\",\n \"Artist_ID\": \"INTEGER\",\n \"Ticket_Price\": \"FLOAT\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Artist_ID\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Year_Join\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ExhibitionRecord\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"Exhibition\"\n },\n {\n \"from\": \"ExhibitionRecord\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"Exhibition\"\n },\n {\n \"from\": \"Exhibition\",\n \"type\": \"FEATURES\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Exhibition\",\n \"type\": \"FEATURES\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "What are the themes and years for exhibitions, sorted by ticket price descending?"}, {"role": "assistant", "content": "MATCH (e:Exhibition)\\nRETURN e.Theme, e.Year\\nORDER BY e.Ticket_Price DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies that have been released in the same year as \"Toy Story\"."}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: \"Toy Story\"})\\nWITH toyStory.year AS year\\nMATCH (m:Movie)\\nWHERE m.year = year\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "\"give me a top ten of customers who have ordered from the most distinct number of suppliers\""}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)<-[:SUPPLIES]-(s:Supplier)\\nWITH c, COUNT(DISTINCT s) AS distinctSuppliers\\nORDER BY distinctSuppliers DESC\\nLIMIT 10\\nRETURN c.companyName, distinctSuppliers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies with a plot containing the word 'adventure'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'adventure'\\nRETURN m.title, m.plot\\nORDER BY m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has abstract We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n!"}, {"role": "assistant", "content": "MATCH path=(:Article {abstract:' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of followers for users who follow \"Neo4j\"?"}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: 'neo4j'})<-[:FOLLOWS]-(follower:User)\\nRETURN avg(follower.followers)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of title and abstract from Article where title does not start with F!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.title STARTS WITH 'F'\\nRETURN DISTINCT n.title AS title, n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Author for which author_id is 700c655b31f9b9275ba10a9875c15332, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have the highest betweenness centrality among the followers of \"Neo4j\"?"}, {"role": "assistant", "content": "MATCH (n:User {screen_name: \"neo4j\"})<-[:FOLLOWS]-(follower:User)\\nRETURN follower.screen_name, follower.betweenness\\nORDER BY follower.betweenness DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 adult films by average vote."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.average_vote IS NOT NULL\\nRETURN a.title, a.average_vote\\nORDER BY a.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the doi_id for DOI combined with the abstract for Article!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.doi_id AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.abstract AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the description for Topic combined with the specifications for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.description AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is Let $\\mathcal L_1$ be the set of all mappings $f\\colon\\Z_p\\Z_p$ of the space\nof all $p$-adic integers $\\Z_p$ into itself that satisfy Lipschitz condition\nwith a constant 1. We prove that the mapping $f\\in\\mathcal L_1$ is ergodic with\nrespect to the normalized Haar measure on $\\Z_p$ if and only if $f$ induces a\nsingle cycle permutation on each residue ring $\\Z/p^k\\Z$ modulo $p^k$, for all\n$k=1,2,3,...$. The multivariate case, as well as measure-preserving mappings,\nare considered also.\n Results of the paper in a combination with earlier results of the author give\nexplicit description of ergodic mappings from $\\mathcal L_1$. This\ncharacterization is complete for $p=2$.\n As an application we obtain a characterization of polynomials (and certain\nlocally analytic functions) that induce ergodic transformations of $p$-adic\nspheres. The latter result implies a solution of a problem (posed by\nA.~Khrennikov) about the ergodicity of a perturbed monomial mapping on a\nsphere.\n and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' Let $\\mathcal L_1$ be the set of all mappings $f\\colon\\Z_p\\Z_p$ of the space of all $p$-adic integers $\\Z_p$ into itself that satisfy Lipschitz condition with a constant 1. We prove that the mapping $f\\in\\mathcal L_1$ is ergodic with respect to the normalized Haar measure on $\\Z_p$ if and only if $f$ induces a single cycle permutation on each residue ring $\\Z/p^k\\Z$ modulo $p^k$, for all $k=1,2,3,...$. The multivariate case, as well as measure-preserving mappings, are considered also. Results of the paper in a combination with earlier results of the author give explicit description of ergodic mappings from $\\mathcal L_1$. This characterization is complete for $p=2$. As an application we obtain a characterization of polynomials (and certain locally analytic functions) that induce ergodic transformations of $p$-adic spheres. The latter result implies a solution of a problem (posed by A.~Khrennikov) about the ergodicity of a perturbed monomial mapping on a sphere. '})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 countries have entities that are beneficiaries in filings where the amount is over 2500000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.amount > 2500000\\nRETURN c.name AS country, COUNT(e) AS entity_count\\nORDER BY entity_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which comments is 20 pages!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'20 pages'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where author_id is 13c7b3c4f69c510e94c671c881522bac and traversing through DOI with name 10.1023/A:1004807104626!"}, {"role": "assistant", "content": "1004807104626!\nA: MATCH (a:Author{author_id:'13c7b3c4f69c510e94c671c881522bac'})-[*]->(d:DOI{name:'10.1023/A:1004807104626'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the phone, room, and building for the faculty named Jerry Prince."}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Fname = \"Jerry\" AND f.Lname = \"Prince\"\\nRETURN f.Phone, f.Room, f.Building"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Categories where category_id is 33657234da1dc070ea09e7c31bb86abb?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Keyword for which key_id is 468e440686a5984c9dbaefb5ac25d127, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.key_id = '468e440686a5984c9dbaefb5ac25d127'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Scientist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Hours\": \"INTEGER\",\n \"Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n }\n ]\n}"}, {"role": "user", "content": "Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to."}, {"role": "assistant", "content": "MATCH (p:Project)-[:LED_BY]->(s:Scientist)\\nWHERE s.Name =~ \"(?i).*Smith.*\"\\nRETURN p.Name as name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the description and the cluster for those Topic where description starts with S!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description STARTS WITH 'S'\\nRETURN n.description AS description, n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is Using a contraction procedure, we construct a twist operator that satisfies a\nshifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2))\nalgebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a\nGervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a\nclass of representations, the dynamical Yang-Baxter equation may be expressed\nas a compatibility condition for the algebra of the Lax operators.\n and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' Using a contraction procedure, we construct a twist operator that satisfies a shifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a Gervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a class of representations, the dynamical Yang-Baxter equation may be expressed as a compatibility condition for the algebra of the Lax operators. '})-[r:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the `jurisdiction_description` of entities with service provider \"Mossack Fonseca\"."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.service_provider = 'Mossack Fonseca'\\nRETURN DISTINCT e.jurisdiction_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most spoken languages and released after 2015?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.release_date > date('2015-01-01')\\nWITH m, count(l) AS language_count\\nORDER BY language_count DESC\\nLIMIT 5\\nRETURN m.title AS movie_title, language_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 6150 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '6150'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the highest reputation of a user who has asked a question tagged with 'node.js'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'node.js'})\\nRETURN MAX(u.reputation) AS highestReputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the author_id for Author that is linked through a WRITTEN_BY relationship with the Article where comments is 20 pages!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.comments='20 pages'\\nRETURN m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 languages spoken in movies that have a status of 'Released'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWHERE m.status = 'Released'\\nRETURN l.name, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the entities that benefited from filings where the originator bank is \"CIMB Bank Berhad\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.originator_bank = \"CIMB Bank Berhad\"\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where abstract is Generalizing the construction of the Maslov class for a Lagrangian embedding\nin a symplectic vector space, we prove that it is possible to give a consistent\ndefinition of this class for any Lagrangian submanifold of a Calabi-Yau\nmanifold. Moreover, we prove that this class can be represented by the\ncontraction of the Kaehler form associated to the Calabi-Yau metric, with the\nmean curvature vector field of the Lagrangian embedding. Finally, we suggest a\npossible generalization of the Maslov class for Lagrangian submanifolds of any\nsymplectic manifold, via the mean curvature representation.\n and traversing through Author with last_name Dougherty!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' Generalizing the construction of the Maslov class for a Lagrangian embedding in a symplectic vector space, we prove that it is possible to give a consistent definition of this class for any Lagrangian submanifold of a Calabi-Yau manifold. Moreover, we prove that this class can be represented by the contraction of the Kaehler form associated to the Calabi-Yau metric, with the mean curvature vector field of the Lagrangian embedding. Finally, we suggest a possible generalization of the Maslov class for Lagrangian submanifolds of any symplectic manifold, via the mean curvature representation. '})-[*]->(d:Author{last_name:'Dougherty'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Categories where category_id is b1d13c8b6874949821d038a8a71379d1, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which racks in zone 1 contain switches with IP starting with '10.1'?"}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 1})-[:HOLDS]->(s:Switch)\\nWHERE s.ip STARTS WITH '10.1'\\nRETURN r.name AS RackName, s.ip AS SwitchIP"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the affiliation for Author that is linked through a WRITTEN_BY relationship with the Article where comments is 23 pages, 1 figure!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.comments='23 pages, 1 figure'\\nRETURN m.affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "\"give me all name of Stark family\""}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.name CONTAINS \"Stark\"\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is For any $\\ell > 0$, we present an algorithm which takes as input a\nsemi-algebraic set, $S$, defined by $P_1 \\leq 0,...,P_s \\leq 0$, where each\n$P_i \\in \\R[X_1,...,X_k]$ has degree $\\leq 2,$ and computes the top $\\ell$\nBetti numbers of $S$, $b_{k-1}(S), ..., b_{k-\\ell}(S),$ in polynomial time. The\ncomplexity of the algorithm, stated more precisely, is $ \\sum_{i=0}^{\\ell+2} {s\n\\choose i} k^{2^{O(\\min(\\ell,s))}}. $ For fixed $\\ell$, the complexity of the\nalgorithm can be expressed as $s^{\\ell+2} k^{2^{O(\\ell)}},$ which is polynomial\nin the input parameters $s$ and $k$. To our knowledge this is the first\npolynomial time algorithm for computing non-trivial topological invariants of\nsemi-algebraic sets in $\\R^k$ defined by polynomial inequalities, where the\nnumber of inequalities is not fixed and the polynomials are allowed to have\ndegree greater than one. For fixed $s$, we obtain by letting $\\ell = k$, an\nalgorithm for computing all the Betti numbers of $S$ whose complexity is\n$k^{2^{O(s)}}$.\n and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' For any $\\ell > 0$, we present an algorithm which takes as input a semi-algebraic set, $S$, defined by $P_1 \\leq 0,...,P_s \\leq 0$, where each $P_i \\in \\R[X_1,...,X_k]$ has degree $\\leq 2,$ and computes the top $\\ell$ Betti numbers of $S$, $b_{k-1}(S), ..., b_{k-\\ell}(S),$ in polynomial time. The complexity of the algorithm, stated more precisely, is $ \\sum_{i=0}^{\\ell+2} {s \\choose i} k^{2^{O(\\min(\\ell,s))}}. $ For fixed $\\ell$, the complexity of the algorithm can be expressed as $s^{\\ell+2} k^{2^{O(\\ell)}},$ which is polynomial in the input parameters $s$ and $k$. To our knowledge this is the first polynomial time algorithm for computing non-trivial topological invariants of semi-algebraic sets in $\\R^k$ defined by polynomial inequalities, where the number of inequalities is not fixed and the polynomials are allowed to have degree greater than one. For fixed $s$, we obtain by letting $\\ell = k$, an algorithm for computing all the Betti numbers of $S$ whose complexity is $k^{2^{O(s)}}$. '})-[r:HAS_CATEGORY]->(b:Categories)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Report for which report_id is 9301481d98615f874763a17d18e2dc92!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'9301481d98615f874763a17d18e2dc92'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 products with the highest units on order and are part of the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nWHERE p.unitsOnOrder IS NOT NULL\\nRETURN p.productName, p.unitsOnOrder\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all people who have a Master's degree in Data Science and have held a position as a Machine Learning Engineer"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_EDUCATION]->(e:Education), (p)-[:HAS_POSITION]->(pos:Position)\\nWHERE toLower(e.degree) CONTAINS 'master' AND toLower(e.degree) CONTAINS 'data science' AND toLower(pos.title) CONTAINS 'machine learning engineer'\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "What are the characters of actors in descending order of age?"}, {"role": "assistant", "content": "MATCH (actor:actor)\\nRETURN actor.Character\\nORDER BY actor.age DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of the top 5 movies with the lowest imdbRating."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nRETURN m.title AS MovieTitle, m.imdbRating AS Rating\\nORDER BY m.imdbRating ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2008-01-29 and Author, for which affiliation is unspecified?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2008-01-29'}), (b:Author{affiliation:'unspecified'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the abstract of the Article that is not related to the Journal with the journal_id fce69ad0112a3426c57a0582a2b8620f!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Journal {journal_id: 'fce69ad0112a3426c57a0582a2b8620f'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 genres contain the most movies?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS genre, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where author_id is ee24bab93b9531431f442226dd453745 and Article, with title equal Failure of Brown representability in derived categories, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{author_id:'ee24bab93b9531431f442226dd453745'})-[*]-(e:Article{title:'Failure of Brown representability in derived categories'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Identify suppliers that have a contact title of 'Purchasing Manager'."}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.contactTitle = 'Purchasing Manager'\\nRETURN s.companyName AS SupplierName, s.contactName AS ContactName, s.phone AS Phone, s.address AS Address, s.city AS City, s.country AS Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 sources used in tweets that 'Neo4j' retweets?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(retweet:Tweet)-[:RETWEETS]->(original:Tweet)-[:USING]->(source:Source)\\nRETURN source.name\\nORDER BY original.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Journal for which journal_id is d3b321ed42589ea798c241aa7de23d2d!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the journal_id from Journal where name is not J. Number Theory!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name <> 'J. Number Theory'\\nRETURN DISTINCT n.journal_id AS journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1009 or article_id is less than 1056!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1009 OR n.article_id < 1056\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its abstract and the count of Journal linked via PUBLISHED_IN where pages is not '479-502', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '479-502'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Topic with description equal to Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Studies eigenvalues and eigenvectors of operators, analyzing how structures behave under various conditions in mathematics and physics.'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where meta is 247 and retrieve the title of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '247'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 youngest directors in the graph?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(:Movie)\\nRETURN p.name AS director, p.born AS birthYear\\nORDER BY p.born DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 actors who have the highest average IMDb rating across their movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nWITH a, avg(m.imdbRating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN a.name, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with a rating above 90."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.rating > 90\\nRETURN m.title, r.rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average y-coordinate of users with a size other than 1.82?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size <> 1.82\\nRETURN avg(u.y)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 production companies by the number of comedy films produced?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)-[:IN_GENRE]->(g:Genre {name: \"Comedy\"})\\nRETURN pc.name, count(m) AS NumberOfComedyFilms\\nORDER BY NumberOfComedyFilms DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have chatted in the most streams and what are their names?"}, {"role": "assistant", "content": "MATCH (u:User)-[:CHATTER]->(s:Stream)\\nWITH u, count(s) AS streams_chatted_in\\nORDER BY streams_chatted_in DESC\\nLIMIT 3\\nRETURN u.name AS user_name, streams_chatted_in"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 countries with the lowest number of filings."}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)-[:FILED]->(f:Filing)\\nWITH c.name AS country, COUNT(f) AS filings_count\\nORDER BY filings_count ASC\\nLIMIT 3\\nRETURN country, filings_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 products ordered during the month of July 1996."}, {"role": "assistant", "content": "MATCH (p:Product)<-[:ORDERS]-(o:Order)\\nWHERE o.orderDate >= '1996-07-01 00:00:00.000' AND o.orderDate <= '1996-07-31 23:59:59.999'\\nWITH p, count(o) AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 5\\nRETURN p.productName, ordersCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the highest imdbRating?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nRETURN m\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 keywords are most commonly associated with movies that have an original language of 'en'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language {id: 'en'}), (m)-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN k.name AS keyword, COUNT(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the affiliation for Author, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the 'name' of all 'Application' nodes that have a 'dependency' on the 'Service' named \"java\"."}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})<-[:DEPENDS_ON*]-(a:Application)\\nRETURN DISTINCT a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with an IMDb rating lower than 5?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating < 5\\nRETURN m.title, m.imdbRating\\nORDER BY m.imdbRating\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2021-02-09 and Topic, for which cluster is 4?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2021-02-09'}), (b:Topic{cluster:'4'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 businesses with reviews that have a star rating of 5 and mention 'awesome'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE r.stars = 5 AND r.text CONTAINS 'awesome'\\nRETURN b.name, b.address, b.city, b.state, count(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies released after 2010 with a budget over 100 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year > 2010 AND m.budget > 100000000\\nRETURN m.title, m.released, m.budget\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that have been directed by a person who died before 2000."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.died < date('2000-01-01')\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where abstract is I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n and DOI, for which name equals 10.1142/S0219061301000077?"}, {"role": "assistant", "content": "MATCH p=(a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[*]->(d:DOI{name:'10.1142/S0219061301000077'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 actors who have a tmdbId but no imdbId."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.tmdbId IS NOT NULL AND a.imdbId IS NULL\\nRETURN a.name, a.tmdbId\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 3 most common languages for streams that have been created after 2015?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.createdAt > datetime('2015-01-01T00:00:00Z')\\nRETURN l.name, count(s) AS stream_count\\nORDER BY stream_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 entities ordered by their internal ID."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nRETURN e\\nORDER BY e.internal_id\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a louvain value less than 5?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain < 5\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Journal where journal_id is 6dc95119d8a737d9ffc7fe367159849b and DOI, for which name equals 10.1007/s00220-004-1078-7?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{journal_id:'6dc95119d8a737d9ffc7fe367159849b'})-[*]->(d:DOI{name:'10.1007/s00220-004-1078-7'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 languages spoken by streams with over 1 million total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.total_view_count > 1000000\\nRETURN DISTINCT l.name\\nORDER BY l.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most frequently ordered products in the 'Grains/Cereals' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Grains/Cereals'})<-[:PART_OF]-(p:Product)<-[:ORDERS]-(o:Order)\\nWITH p, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5\\nRETURN p.productName AS productName, orderCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the author_id of the Author and the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:DOI)\\nRETURN n.author_id, m.name\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a last_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has abstract The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has abstract We consider a finite sequence of random points in a finite domain of a\nfinite-dimensional Euclidean space. The points are sequentially allocated in\nthe domain according to a model of cooperative sequential adsorption. The main\npeculiarity of the model is that the probability distribution of a point\ndepends on previously allocated points. We assume that the dependence vanishes\nas the concentration of points tends to infinity. Under this assumption the law\nof large numbers, the central limit theorem and Poisson approximation are\nproved for the generated sequence of random point measures.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' We consider a finite sequence of random points in a finite domain of a finite-dimensional Euclidean space. The points are sequentially allocated in the domain according to a model of cooperative sequential adsorption. The main peculiarity of the model is that the probability distribution of a point depends on previously allocated points. We assume that the dependence vanishes as the concentration of points tends to infinity. Under this assumption the law of large numbers, the central limit theorem and Poisson approximation are proved for the generated sequence of random point measures. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the key_id and the name for those Keyword where key_id starts with c!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id STARTS WITH 'c'\\nRETURN n.key_id AS key_id, n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the title of the question with the highest number of favorites and tagged with 'apollo'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nWITH max(q.favorites) AS max_favorites\\nMATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nWHERE q.favorites = max_favorites\\nRETURN q.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1008 or article_id is less than 1048!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1008 OR n.article_id < 1048\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Keyword with the name logarithmic barrier penalty!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Keyword {name: 'logarithmic barrier penalty'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users who rated the adult film titled 'Standoff'."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(a:Adult {title: 'Standoff'})\\nRETURN u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code\": \"STRING\",\n \"date_effective_from\": \"STRING\",\n \"date_effective_to\": \"STRING\",\n \"template_details\": \"STRING\"\n }\n },\n \"documents\": {\n \"properties\": {\n \"document_id\": \"STRING\",\n \"template_id\": \"STRING\",\n \"document_name\": \"STRING\",\n \"document_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"paragraphs\": {\n \"properties\": {\n \"paragraph_id\": \"STRING\",\n \"document_id\": \"STRING\",\n \"paragraph_text\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the template type code of the template that is used by a document named Data base."}, {"role": "assistant", "content": "MATCH (T1:Templates)-[]-(T2:Documents)\\nWHERE T2.Document_Name = \"Data base\"\\nRETURN T1.Template_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 streams with the highest follower counts?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name, s.followers\\nORDER BY s.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2017-07-11 and the year of the update_date is 2016!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2017-07-11' AND date(n.update_date).year = 2016\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to UpdateDate for which update_date is 2018-11-28, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2018-11-28'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all Officers whose name contains 'Dupu'."}, {"role": "assistant", "content": "MATCH (o:Officer)\\nWHERE toLower(o.name) CONTAINS toLower('dupu')\\nRETURN o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to Paul Erdos asked how frequently the ternary expansion of 2^n omits the digit\n2. He conjectured this happens only for finitely many values of n. We\ngeneralize this question to consider iterates of two discrete dynamical\nsystems. The first is over the real numbers, and considers the integer part of\nlambda 2^n for a real input lambda. The second is over the 3-adic integers, and\nconsiders the sequence lambda 2^n for a 3-adic integer input lambda.\n We show that the number of input values that have infinitely many iterates\nomitting the digit 2 in their ternary expansion is small in a suitable sense.\nFor each nonzero input we give an asymptotic upper bound on the number of the\nfirst k iterates that omit the digit 2, as k goes to infinity. We also study\nauxiliary problems concerning the Hausdorff dimension of intersections of\nmultiplicative translates of 3-adic Cantor sets.\n, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' Paul Erdos asked how frequently the ternary expansion of 2^n omits the digit 2. He conjectured this happens only for finitely many values of n. We generalize this question to consider iterates of two discrete dynamical systems. The first is over the real numbers, and considers the integer part of lambda 2^n for a real input lambda. The second is over the 3-adic integers, and considers the sequence lambda 2^n for a 3-adic integer input lambda. We show that the number of input values that have infinitely many iterates omitting the digit 2 in their ternary expansion is small in a suitable sense. For each nonzero input we give an asymptotic upper bound on the number of the first k iterates that omit the digit 2, as k goes to infinity. We also study auxiliary problems concerning the Hausdorff dimension of intersections of multiplicative translates of 3-adic Cantor sets. '})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all the companies that have an intermediary in common"}, {"role": "assistant", "content": "MATCH (o1:Officer)-[r1:intermediary_of]->(e:Entity)<-[r2:intermediary_of]-(o2:Officer)\\nRETURN o1, r1, e, r2, o2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 streams with the most followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name AS stream_name, s.followers AS follower_count\\nORDER BY follower_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all intermediaries who are also officers and have associated entities, with their associated relationships."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[r:officer_of]->(e:Entity)-[r2:intermediary_of]->(i2:Intermediary)\\nRETURN i, r, e, r2, i2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a `degree` equal to 0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree = 0\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters with the lowest centrality?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c\\nORDER BY c.centrality ASC\\nLIMIT 5\\nRETURN c.name, c.centrality"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 9 or cluster is less than 2!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 9 OR n.cluster < 2\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 movies with the lowest ratings in REVIEWS."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nRETURN m.title AS movie, avg(r.rating) AS averageRating\\nORDER BY averageRating\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Flag\": \"STRING\",\n \"Type\": \"STRING\",\n \"Built_Year\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"Ship_ID\": \"INTEGER\"\n }\n },\n \"Captain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Class\": \"STRING\",\n \"age\": \"STRING\",\n \"Captain_ID\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the name of the ship that is commanded by the youngest captain?"}, {"role": "assistant", "content": "MATCH (t1:Ship), (t2:Captain)\\nWHERE t1.Ship_ID = t2.Ship_ID\\nRETURN t1.Name\\nORDER BY t2.age\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie was released on the same day as \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: \"Toy Story\"})\\nWITH toyStory.released AS toyStoryReleaseDate\\nMATCH (m:Movie)\\nWHERE m.released = toyStoryReleaseDate AND m.title <> \"Toy Story\"\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Author that has last_name Warnaar!"}, {"role": "assistant", "content": "MATCH path=(:Author {last_name:'Warnaar'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the officers who are officers of entities that have the same name as another entity."}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Entity)\\nMATCH (e)-[:same_name_as]->(e2:Entity)\\nRETURN DISTINCT o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic where label is Dynamical Systems_10, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{label:'Dynamical Systems_10'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated by users named 'Omar Huffman'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Omar Huffman'})-[r:RATED]->(m:Movie)\\nRETURN m.title AS movie, r.rating AS rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article for which article_id is 1009, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.article_id = '1009'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 products with a quantity per unit of '10 boxes x 20 bags'?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.quantityPerUnit = '10 boxes x 20 bags'\\nRETURN p.productName, p.productID, p.quantityPerUnit\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report for which report_no is PAM-780, and what are their relationships to Report?"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r]-(n)\\nWHERE c.report_no = 'PAM-780'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have more than 5000 vote counts?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 5000\\nRETURN m\\nORDER BY m.vote_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for Journal that is linked through a PUBLISHED_IN relationship with the Article where abstract is Motivated by orbifold string theory, we introduce orbifold cohomology group\nfor any almost complex orbifold and orbifold Dolbeault cohomology for any\ncomplex orbifold. Then, we show that our new cohomology group satisfies\nPoincare duality and has a natural ring structure. Some examples of orbifold\ncohomology ring are computed.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.abstract=' Motivated by orbifold string theory, we introduce orbifold cohomology group for any almost complex orbifold and orbifold Dolbeault cohomology for any complex orbifold. Then, we show that our new cohomology group satisfies Poincare duality and has a natural ring structure. Some examples of orbifold cohomology ring are computed. '\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the name of the Keyword that are linked via HAS_TOPIC to more than three Topic, and list Topic label and Topic counts, ordering by Topic count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[:HAS_TOPIC]->(m:Topic)\\nWITH DISTINCT n, m\\nWITH n.name AS name, count(m) AS count, COLLECT(m.label) as label\\nWHERE count > 3\\nRETURN name, count, label\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of animated movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.name = 'Animation'\\nRETURN avg(m.runtime)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 keywords associated with the video titled 'Jonah: A VeggieTales Movie'."}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})-[:HAS_KEYWORD]->(k:Keyword)\\nRETURN k.name\\nORDER BY k.id ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users with the lowest number of followers."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.followers IS NOT NULL\\nRETURN u.screen_name, u.followers\\nORDER BY u.followers\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_address_id\": \"INTEGER\",\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_phone_number\": \"STRING\",\n \"amount_outstanding\": \"FLOAT\",\n \"date_became_customer\": \"STRING\",\n \"customer_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"date_joined_staff\": \"STRING\",\n \"date_left_staff\": \"STRING\",\n \"nickname\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"staff_address_id\": \"INTEGER\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Lesson\": {\n \"properties\": {\n \"lesson_time\": \"STRING\",\n \"price\": \"FLOAT\",\n \"lesson_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"lesson_id\": \"INTEGER\",\n \"vehicle_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"lesson_status_code\": \"STRING\"\n }\n },\n \"CustomerPayment\": {\n \"properties\": {\n \"datetime_payment\": \"STRING\",\n \"payment_method_code\": \"STRING\",\n \"amount_payment\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Vehicle\": {\n \"properties\": {\n \"vehicle_details\": \"STRING\",\n \"vehicle_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n }\n ]\n}"}, {"role": "user", "content": "How many customers in total?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nRETURN count(c) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all egress routers in the data center."}, {"role": "assistant", "content": "MATCH (dc:DataCenter)-[:CONTAINS]->(egress:Egress) \\nRETURN egress.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all nodes"}, {"role": "assistant", "content": "MATCH (n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the most common jurisdictions for entities?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWITH e.jurisdiction AS jurisdiction, COUNT(e) AS count\\nRETURN jurisdiction, count\\nORDER BY count DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Topic for which cluster is 2, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'2'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the report_no of the Report that is not related to the Journal with the journal_id 99571eecaa5c5d622bb0d1f855752d5f!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Journal {journal_id: '99571eecaa5c5d622bb0d1f855752d5f'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify entities with a jurisdiction description of 'Samoa'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = 'Samoa'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the entity with the most intermediaries in the country France"}, {"role": "assistant", "content": "MATCH (e:Entity)<-[:intermediary_of]-(:Intermediary)\\nWHERE toLower(e.countries) CONTAINS toLower('France')\\nWITH e, count(*) as count\\nORDER BY count DESC\\nRETURN e\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 Officers who are officers of Entities registered in Samoa."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = \"Samoa\"\\nMATCH (o:Officer)-[:officer_of]->(e)\\nRETURN DISTINCT o.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Journal that has journal_id f663b7749e96288af8628ca3cdb4f021!"}, {"role": "assistant", "content": "MATCH path=(:Journal {journal_id:'f663b7749e96288af8628ca3cdb4f021'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where cluster is 6 and Keyword, for which key_id equals c95a6da6fb331984f198feec0b0bb1a5?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'6'})-[*]->(d:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' follows?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed\\nORDER BY followed.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where article_id is 1071 and Keyword, with name equal gain, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1071'})-[*]-(e:Keyword{name:'gain'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which product (`productID`) has been ordered the most in terms of quantity?"}, {"role": "assistant", "content": "MATCH (o:Order)-[oi:ORDERS]->(p:Product)\\nWITH p.productID AS productID, sum(oi.quantity) AS totalQuantityOrdered\\nORDER BY totalQuantityOrdered DESC\\nLIMIT 1\\nRETURN productID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 categories have the least discontinued products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.discontinued = false\\nWITH c, count(p) AS ActiveProducts\\nORDER BY ActiveProducts ASC\\nRETURN c.categoryName, ActiveProducts\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 products with the highest units in stock?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.productName, p.unitsInStock\\nORDER BY p.unitsInStock DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'fastrf_embedding' value less than 0.0 in the 1st position and a 'degree' greater than 10?"}, {"role": "assistant", "content": "MATCH (node:Character)\\nWHERE node.fastrf_embedding[0] < 0.0 AND node.degree > 10\\nRETURN node.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Keyword for which name is logarithmic barrier penalty!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'logarithmic barrier penalty'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where label is Riemannian geometry_4 and share a common property with Categories, for which category_id equals f294e61ea01b3678d7cd02b973bb71da?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'})-[r]->(n), (d:Categories{category_id:'f294e61ea01b3678d7cd02b973bb71da'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the beneficiaries in Filings that involved an amount over $2,000,000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.amount > 2000000\\nRETURN e.name AS Beneficiary"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers are located in cities starting with 'L'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)\\nWHERE s.city STARTS WITH 'L'\\nRETURN s.companyName AS supplierName, s.city AS city"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Keyword where key_id contains 5d6533e2a77e3daabc184ee8f2441597, along with the type of their relationship with Keyword!"}, {"role": "assistant", "content": "MATCH (d:Keyword)-[r]->(n)\\nWHERE d.key_id CONTAINS '5d6533e2a77e3daabc184ee8f2441597'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "How many questions were created on '2020-06-05'?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE date(q.createdAt) = date('2020-06-05')\\nRETURN count(q) AS numberOfQuestions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the most number of votes cast by users?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(:User)\\nRETURN m.title, count(*) AS votes\\nORDER BY votes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"local_authority\": \"STRING\",\n \"services\": \"STRING\",\n \"network_name\": \"STRING\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"time\": \"STRING\",\n \"interval\": \"STRING\",\n \"name\": \"STRING\",\n \"train_number\": \"INTEGER\",\n \"origin\": \"STRING\",\n \"destination\": \"STRING\"\n }\n },\n \"WeeklyWeather\": {\n \"properties\": {\n \"day_of_week\": \"STRING\",\n \"precipitation\": \"FLOAT\",\n \"high_temperature\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"low_temperature\": \"INTEGER\",\n \"wind_speed_mph\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"WeeklyWeather\",\n \"type\": \"PROVIDES_DATA_FOR\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"WeeklyWeather\",\n \"type\": \"PROVIDES_DATA_FOR\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "Find the origins from which more than 1 train starts."}, {"role": "assistant", "content": "MATCH (t:Train)\\nWITH t.origin AS origin, count(t) AS cnt\\nWHERE cnt > 1\\nRETURN DISTINCT origin"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find abstract of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 131-170!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '131-170'\\nRETURN n.abstract AS abstract, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 subscriptions will expire the soonest?"}, {"role": "assistant", "content": "MATCH (s:Subscription)\\nRETURN s\\nORDER BY s.expiresAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average start time of all the OS?"}, {"role": "assistant", "content": "MATCH (os:OS)\\nWITH avg(os.startTime) AS averageStartTime\\nRETURN averageStartTime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where cluster is 1 and share a common property with Article, for which title equals Free Field Construction for the ABF Models in Regime II?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'1'})-[r]->(n), (d:Article{title:'Free Field Construction for the ABF Models in Regime II'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 cities with the lowest average star rating for businesses."}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWITH r, b\\nMATCH (b)-[:IN_CATEGORY]->(c:Category)\\nWITH c.name AS category, b.city AS city, AVG(r.stars) AS average_rating\\nORDER BY average_rating ASC\\nRETURN category, city, average_rating\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_details\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"order_status\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_details\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\"\n }\n },\n \"Shipment\": {\n \"properties\": {\n \"shipment_date\": \"STRING\",\n \"shipment_tracking_number\": \"STRING\",\n \"shipment_id\": \"INTEGER\",\n \"invoice_number\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_status\": \"STRING\",\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ShipmentItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"shipment_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"FULFILLS\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Shipment\",\n \"type\": \"FULFILLS\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Shipment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Shipment\",\n \"type\": \"FULFILLS\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"ShipmentItem\",\n \"type\": \"PART_OF\",\n \"to\": \"Shipment\"\n },\n {\n \"from\": \"Shipment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"FULFILLS\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"ShipmentItem\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"ShipmentItem\",\n \"type\": \"PART_OF\",\n \"to\": \"Shipment\"\n },\n {\n \"from\": \"ShipmentItem\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"OrderItem\"\n }\n ]\n}"}, {"role": "user", "content": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25."}, {"role": "assistant", "content": "MATCH (n:Invoice)\\nWHERE n.invoice_date < \"1989-09-03\" OR n.invoice_date > \"2007-12-25\"\\nRETURN DISTINCT n.invoice_details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 questions with the most favorites and have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q.title, q.favorites, q.link\\nORDER BY q.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which author_id starts with d83!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'd83'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies are part of the Toy Story Collection?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection {name: \"Toy Story Collection\"})\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a director who was born after 1960 and have generated over 100 million in revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:DIRECTED]-(d:Director)\\nWHERE d.born > date('1960-01-01') AND m.revenue > 100000000\\nRETURN m.title AS MovieTitle, d.name AS DirectorName, m.revenue AS Revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the author_id from Author where either author_id is 788db042978edbbfc654927e23ac21d1 or author_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = '788db042978edbbfc654927e23ac21d1' OR n.author_id IS NOT NULL\\nRETURN DISTINCT n.author_id AS author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the label for Topic that is linked through a HAS_TOPIC relationship with the Keyword where key_id is a87e17d3c9befeb236f46bf77da29d6d!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.key_id='a87e17d3c9befeb236f46bf77da29d6d'\\nRETURN m.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where specifications or category_id contains nlin.SI!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'nlin.SI'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'nlin.SI'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are moderators for the stream with the name '9linda'?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: '9linda'})<-[:MODERATOR]-(u:User)\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have filed a filing with an amount over 500000?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.amount > 500000\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the percentage of positive reviews for each business?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(review:Review)\\nWITH b, count(review) AS totalReviews\\nMATCH (b)<-[:REVIEWS]-(positiveReview:Review)\\nWHERE positiveReview.stars >= 4\\nWITH b, totalReviews, count(positiveReview) AS positiveReviewCount\\nRETURN b.name AS businessName, (toFloat(positiveReviewCount) / toFloat(totalReviews) * 100) AS positivePercentage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams by total view count."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Market\": {\n \"properties\": {\n \"Number_cities\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Country\": \"STRING\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"Gross_in_dollar\": \"INTEGER\",\n \"Studio\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"FilmMarketEstimation\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Low_Estimate\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"High_Estimate\": \"FLOAT\",\n \"Estimation_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n }\n ]\n}"}, {"role": "user", "content": "Please list the years of film market estimations when the market is in country \"Japan\" in descending order."}, {"role": "assistant", "content": "MATCH (fm:Film_Market_estimation)-[:ESTIMATES]->(f:Film), (fm)-[:ESTIMATES]->(m:Market)\\nWHERE m.Country = \"Japan\"\\nRETURN fm.Year\\nORDER BY fm.Year DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the data center that contains the router 'DC1-R-3'?"}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-R-3'})<-[:CONTAINS]-(dc:DataCenter)\\nRETURN dc.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where specifications is math.IT and Categories, for which category_id equals f2012d79fe17f02edc7542435cc04510?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'math.IT'})-[*]->(d:Categories{category_id:'f2012d79fe17f02edc7542435cc04510'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch comments of the Article that are connected to Journal via PUBLISHED_IN where meta are at most 225!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[r:PUBLISHED_IN]->(:Journal)\\nWHERE r.meta < '225'}\\nRETURN n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average unit price of products in the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (c:Category {categoryName: 'Dairy Products'})<-[:PART_OF]-(p:Product)\\nRETURN avg(p.unitPrice) AS averageUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1063 and Article, for which abstract equals The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1063'})-[*]->(d:Article{abstract:' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the distinct 'beneficiary_bank_country' values for filings where the 'originator_bank_country' is Germany and the 'amount' is less than 10,000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = \"Germany\" AND f.amount < 10000\\nRETURN DISTINCT f.beneficiary_bank_country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 actors in terms of the diversity of roles played?"}, {"role": "assistant", "content": "MATCH (p:Person)-[a:ACTED_IN]->(m:Movie)\\nWITH p, count(DISTINCT a.roles) AS diversity\\nORDER BY diversity DESC\\nLIMIT 3\\nRETURN p.name AS Actor, diversity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the most cast members with a gender of \"2\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[cf:CAST_FOR]-(p:Person {gender: 2})\\nWITH m, count(p) AS cast_count\\nORDER BY cast_count DESC\\nRETURN m.title, cast_count\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "How many countries have at least one entity that has filed a filing?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)-[:FILED]->(:Filing)\\nRETURN count(DISTINCT c) AS numberOfCountries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Display the first 3 users followed by 'Neo4j' who have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nWHERE followed.followers > 10000\\nRETURN followed.screen_name, followed.followers\\nORDER BY followed.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Topic where label ends with Po!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label =~'Po.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Keyword with key_id equal to 0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have an 'INTERACTS45' relationship with a weight above 50?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS45]->(c2:Character)\\nWHERE r.weight > 50\\nRETURN c1.name AS Character1, c2.name AS Character2, r.weight AS Weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 teams by the number of streams they have."}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nRETURN t.name AS TeamName, count(s) AS NumberOfStreams\\nORDER BY NumberOfStreams DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies that have been rated over 8.0."}, {"role": "assistant", "content": "MATCH (m:Movie)-[r:RATED]->(u:User)\\nWHERE r.rating > 8.0\\nRETURN m.title, m.id, r.rating\\nORDER BY r.rating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 users with an area property greater than 4.0."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area > 4.0\\nRETURN u.label, u.area\\nORDER BY u.area DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where title is $A_{\\infty}$-structures on an elliptic curve and PUBLISHED_IN has meta on 247!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '247'}]->(m)\\nWHERE n.title='$A_{\\infty}$-structures on an elliptic curve'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Journal with name equal to J. Number Theory!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*3]->(n)\\nWHERE a.name = 'J. Number Theory'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 filings have the shortest duration from begin to end date?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin IS NOT NULL AND f.end IS NOT NULL\\nRETURN f\\nORDER BY duration.between(f.begin, f.end)\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have the most entities involved as beneficiaries in filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(e) AS NumberOfEntities\\nORDER BY NumberOfEntities DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many other nodes have a closed_date that is later than their incorporation_date?"}, {"role": "assistant", "content": "MATCH (o:Other)\\nWHERE o.closed_date > o.incorporation_date\\nRETURN count(o)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 countries by the average amount of filings?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)-[:FILED]->(f:Filing)\\nWITH c.name AS country, AVG(f.amount) AS avg_amount\\nRETURN country, avg_amount\\nORDER BY avg_amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 movies that Tom Hanks has a credit in as a crew member."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Tom Hanks'})-[:CREW_FOR]->(m:Movie)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 games with streams that have been active for over 10 years."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE datetime().epochMillis - s.createdAt.epochMillis > 10 * 365 * 24 * 60 * 60 * 1000\\nRETURN DISTINCT g.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"other_customer_details\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"payment_method\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomerAddress\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\",\n \"address_type\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_quantity\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"CustomerContactChannel\": {\n \"properties\": {\n \"contact_number\": \"STRING\",\n \"active_from_date\": \"STRING\",\n \"channel_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"active_to_date\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_details\": \"STRING\",\n \"product_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_content\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_details\": \"STRING\",\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n }\n ]\n}"}, {"role": "user", "content": "How many customers are there?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters with the highest weight in INTERACTS45 relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)-[i:INTERACTS45]->(other:Character)\\nRETURN c.name AS character, sum(i.weight) AS total_weight\\nORDER BY total_weight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the genres of the movie \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Toy Story\"})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 actors who have acted in movies with at least three different directors."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(d:Director)\\nWITH a, count(DISTINCT d) AS numDirectors\\nWHERE numDirectors >= 3\\nRETURN a.name AS actor\\nORDER BY numDirectors DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have produced the most movies?"}, {"role": "assistant", "content": "MATCH (pc:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)\\nRETURN pc.name, count(m) AS movies_produced\\nORDER BY movies_produced DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of streams that have the language 'en' and more than 50,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = 'en' AND s.followers > 50000\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 characters with the lowest `degree` who interact with characters having a `community` value of 759."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS]->(c2:Character)\\nWHERE c2.community = 759\\nRETURN c1.name, c1.degree\\nORDER BY c1.degree ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have directed movies in more than 3 different genres?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH d, count(DISTINCT g) AS num_genres\\nWHERE num_genres > 3\\nRETURN d.name AS director, num_genres\\nORDER BY num_genres DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Article with article_id equal to 1015!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.article_id = '1015'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the doi_id for DOI that is linked through a HAS_DOI relationship with the Article where article_id is 1006!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.article_id='1006'\\nRETURN m.doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a first_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has comments no comments!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'no comments'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.first_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products are supplied by a supplier in 'London'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE s.city = 'London'\\nRETURN p.productName AS productName, p.productID AS productID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 genres with the most movies having a poster path that starts with '/rh'?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nWHERE m.poster_path STARTS WITH '/rh'\\nRETURN g.name AS genre, count(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to DOI for which name is 10.1007/s00365-002-0501-6, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1007/s00365-002-0501-6'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with meta equal to 220, connected to Article that has title equal to Log mirror symmetry and local mirror symmetry?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '220'}]->(m:Journal)\\nWHERE n.title = 'Log mirror symmetry and local mirror symmetry'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the stream with the most chatters."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u)\\nWITH s, count(DISTINCT u) AS chatter_count\\nRETURN s.id, chatter_count\\nORDER BY chatter_count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Appellation\": {\n \"properties\": {\n \"County\": \"STRING\",\n \"isAVA\": \"STRING\",\n \"State\": \"STRING\",\n \"Appelation\": \"STRING\",\n \"Area\": \"STRING\",\n \"No\": \"INTEGER\"\n }\n },\n \"Grape\": {\n \"properties\": {\n \"ID\": \"INTEGER\",\n \"Grape\": \"STRING\",\n \"Color\": \"STRING\"\n }\n },\n \"Wine\": {\n \"properties\": {\n \"Cases\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"State\": \"STRING\",\n \"Drink\": \"STRING\",\n \"Appelation\": \"STRING\",\n \"Winery\": \"STRING\",\n \"Price\": \"INTEGER\",\n \"No\": \"INTEGER\",\n \"Score\": \"INTEGER\",\n \"Grape\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_IN\",\n \"to\": \"Appellation\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_FROM\",\n \"to\": \"Grape\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_FROM\",\n \"to\": \"Grape\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_IN\",\n \"to\": \"Appellation\"\n }\n ]\n}"}, {"role": "user", "content": "Find the county where produces the most number of wines with score higher than 90."}, {"role": "assistant", "content": "MATCH (a:Appellation)<-[:PRODUCED_IN]-(w:Wine)-[:PRODUCED_FROM]->(g:Grape)\\nWHERE w.Score > 90\\nWITH a.County as County, count(*) as cnt\\nRETURN County\\nORDER BY cnt DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where meta is 217 and has comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '217'}]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where pages is 537-560 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '537-560'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user has the lowest reputation but has asked a question with a high score?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score >= 10\\nRETURN u\\nORDER BY u.reputation ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"MemberOfClub\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"ClubID\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"ClubLocation\": \"STRING\",\n \"ClubName\": \"STRING\",\n \"ClubDesc\": \"STRING\",\n \"ClubID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average age of the members of the club \"Bootup Baltimore\"?"}, {"role": "assistant", "content": "MATCH (c:Club {ClubName: \"Bootup Baltimore\"})-[:MEMBER_OF]-(m:MemberOfClub)-[:ATTENDS]-(s:Student)\\nRETURN avg(s.Age)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with the word \"amazing\" in their review summary?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE toLower(r.summary) CONTAINS 'amazing'\\nRETURN avg(r.rating) AS average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have an area greater than 5?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area > 5\\nRETURN u.label AS user, u.area\\nORDER BY u.area DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 characters with the lowest `pagerank`."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.pagerank\\nORDER BY c.pagerank ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the streams with the most distinct teams associated."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH s, count(DISTINCT t) as teamCount\\nRETURN s.name AS streamName, teamCount\\nORDER BY teamCount DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Leaderboard\": {\n \"properties\": {\n \"game\": \"STRING\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"genre\": \"STRING\",\n \"title\": \"STRING\",\n \"release_date\": \"STRING\"\n }\n },\n \"Achievement\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"points\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Leaderboard\",\n \"type\": \"INCLUDES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PLAYED\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Leaderboard\",\n \"type\": \"INCLUDES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"EARNED\",\n \"to\": \"Achievement\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PLAYED\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"EARNED\",\n \"to\": \"Achievement\"\n }\n ],\n \"relationshipProperties\": {\n \"PLAYED\": {\n \"score\": \"INTEGER\",\n \"date\": \"STRING\"\n },\n \"EARNED\": {\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which player has the highest total score across all games?"}, {"role": "assistant", "content": "MATCH (player:Player)-[played:PLAYED]->(game:Game)\\nWITH player, SUM(played.score) AS total_score\\nORDER BY total_score DESC\\nRETURN player\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a total view count of between 1 million and 2 million and are moderated by at least three different users?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWHERE s.total_view_count >= 1000000 AND s.total_view_count <= 2000000\\nWITH s, count(DISTINCT u) AS moderatorCount\\nWHERE moderatorCount >= 3\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 actors have acted in movies with the highest average imdbRating?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, avg(m.imdbRating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 5\\nRETURN a.name, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 5 filings with the most entities involved as concerns from the same sector."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWITH f, count(e) AS entitiesCount\\nORDER BY entitiesCount DESC\\nLIMIT 5\\nRETURN f, entitiesCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which article_id is 1052!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1052'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 collections that include videos?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_COLLECTION]->(c:Collection)\\nRETURN DISTINCT c\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all entities with a dorm date listed."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.dorm_date IS NOT NULL\\nRETURN e.name AS entity_name, e.dorm_date AS dorm_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 users with the lowest following counts who follow 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {screen_name: 'neo4j'})\\nRETURN u\\nORDER BY u.following ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and PUBLISHED_IN has year on 2000!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2000'}]->(m)\\nWHERE n.abstract=' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 movies released most recently."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released IS NOT NULL\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "How many users does 'neo4j' amplify?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:AMPLIFIES]->(user:User)\\nRETURN count(user) AS AmplifiedUsersCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 beneficiary ISO codes in the filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nRETURN f.beneficiary_iso AS BeneficiaryISO, count(f) AS NumberOfFilings\\nORDER BY NumberOfFilings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have starred in movies with a budget greater than 200 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 200000000\\nMATCH (a:Actor)-[:ACTED_IN]->(m)\\nRETURN DISTINCT a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which hashtags were used in tweets that mention users followed by the user with screen name \"neo4j\"?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: \"neo4j\"})-[:FOLLOWS]->(followed:User)<-[:MENTIONS]-(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN DISTINCT h.name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Did Keanu Reeves play any movies?\""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Keanu Reeves\"})-[:ACTED_IN]->(m:Movie)\\nRETURN m.title AS MovieTitle, m.released AS ReleaseYear, m.votes AS Votes, m.tagline AS Tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have worked in both 'Animation' and 'Adventure' genres?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: 'Animation'}), (a)-[:ACTED_IN]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: 'Adventure'})\\nWHERE m1 <> m2\\nRETURN a.name AS actor"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the former and current names of entities with a 'same_name_as' relationship."}, {"role": "assistant", "content": "MATCH (e1:Entity)-[:same_name_as]->(e2:Entity)\\nWHERE e1.former_name IS NOT NULL OR e2.former_name IS NOT NULL\\nRETURN e1.name AS CurrentName1, e1.former_name AS FormerName1, e2.name AS CurrentName2, e2.former_name AS FormerName2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 5 and Article, for which comments is 44 pages?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'5'}), (b:Article{comments:'44 pages'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 actors who have acted in movies with a tagline including the word 'limits'."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.tagline CONTAINS 'limits'\\nWITH p, COUNT(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN p.name AS actor, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actor has acted in the most movies with a budget greater than 200 million dollars?"}, {"role": "assistant", "content": "MATCH (actor:Actor)-[:ACTED_IN]->(movie:Movie)\\nWHERE movie.budget > 200000000\\nWITH actor, count(movie) AS movieCount\\nORDER BY movieCount DESC\\nRETURN actor.name, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Journal for which name is Journal of Mathematical Logic!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies with a released date on a Friday."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released IS NOT NULL AND date(m.released).dayOfWeek = 5\\nRETURN m\\nORDER BY m.released DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with an IMDb ID starting with 'tt'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdb_id STARTS WITH 'tt'\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the disk size of the type 'l'?"}, {"role": "assistant", "content": "MATCH (t:Type {type: 'l'})\\nRETURN t.disk"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 tweets that contain a link starting with 'https://twitter.com'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE l.url STARTS WITH 'https://twitter.com'\\nRETURN t.text, l.url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which officers have a note mentioning a liquidation date?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Other)\\nWHERE e.note CONTAINS 'Liquidation date'\\nRETURN o.name AS officer_name, e.note AS note"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 categories with the most products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c, count(p) AS productCount\\nORDER BY productCount DESC\\nLIMIT 3\\nRETURN c.categoryName, productCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the link value for the relationship connecting two Addresses with the same address?"}, {"role": "assistant", "content": "MATCH (a1:Address)-[r:same_as]->(a2:Address)\\nRETURN DISTINCT r.link"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the services running on the machine with the application 'webapp'?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webapp'})<-[:RUNS]-(machine:Machine)\\nMATCH (machine)-[:RUNS]->(service:Service)\\nRETURN service.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the last_name from Author where either first_name is Jean-Francois or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Jean-Francois' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users mentioned in the tweets that 'Neo4j' mentions?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:MENTIONS]->(mentioned:User)\\nRETURN mentioned.name, count(*) AS mentions\\nORDER BY mentions DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which genre has the most movies that have been adapted into video games?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)<-[:HAS_KEYWORD]-(v:Video)\\nWITH m, count(DISTINCT v) AS videoGameCount\\nWITH m, videoGameCount \\nMATCH (m)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(m) AS movieCount, avg(videoGameCount) AS avgVideoGameCount \\nORDER BY movieCount DESC\\nRETURN g.name AS genreName, movieCount, avgVideoGameCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Journal where journal_id is f762cb2c3b5bd7f0b3941598cfce8f15 and Topic, for which cluster equals 2?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{journal_id:'f762cb2c3b5bd7f0b3941598cfce8f15'})-[*]->(d:Topic{cluster:'2'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the author_id for Author!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.author_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code\": \"STRING\",\n \"date_effective_from\": \"STRING\",\n \"date_effective_to\": \"STRING\",\n \"template_details\": \"STRING\"\n }\n },\n \"documents\": {\n \"properties\": {\n \"document_id\": \"STRING\",\n \"template_id\": \"STRING\",\n \"document_name\": \"STRING\",\n \"document_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"paragraphs\": {\n \"properties\": {\n \"paragraph_id\": \"STRING\",\n \"document_id\": \"STRING\",\n \"paragraph_text\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the different template type codes?"}, {"role": "assistant", "content": "MATCH (templates:Templates)\\nRETURN DISTINCT templates.Template_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters are in the same community as Daenerys Targaryen?"}, {"role": "assistant", "content": "MATCH (c1:Character {name: \"Daenerys Targaryen\"})\\nMATCH (c2:Character)\\nWHERE c1.community = c2.community AND c1 <> c2\\nRETURN c2.name AS CharacterName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the games played by streams with the lowest follower counts."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.followers IS NOT NULL\\nRETURN g.name AS Game, s.followers AS Followers\\nORDER BY s.followers ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the cluster for Topic that is linked through a HAS_TOPIC relationship with the Keyword where name is uncountably many different asymptotic growth rates!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='uncountably many different asymptotic growth rates'\\nRETURN m.cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which application listens on port 80?"}, {"role": "assistant", "content": "MATCH (p:Port {port: 80})<-[:LISTENS]-(a:Application)\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 8 or cluster is less than 5!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 8 OR n.cluster < 5\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List top 5 actors by number of movies acted in."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nRETURN p.name, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title for Article combined with the label for Topic!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title AS Records\\nUNION ALL\\nMATCH (m:Topic)\\nRETURN m.label AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies reviewed by people born before 1970?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE p.born < 1970\\nRETURN avg(r.rating) AS average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which people have directed movies that won an Academy Award for Best Picture?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which title is Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Subexponential groups in 4-manifold topology'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the longest plots?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot IS NOT NULL\\nRETURN m\\nORDER BY size(m.plot) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which adult films are associated with the genre 'Horror'?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:IN_GENRE]->(g:Genre {name: 'Horror'})\\nRETURN a.title AS AdultFilmTitle, a.id AS AdultFilmID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Room\": {\n \"properties\": {\n \"decor\": \"STRING\",\n \"beds\": \"INTEGER\",\n \"RoomId\": \"STRING\",\n \"roomName\": \"STRING\",\n \"bedType\": \"STRING\",\n \"maxOccupancy\": \"INTEGER\",\n \"basePrice\": \"INTEGER\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"CheckIn\": \"STRING\",\n \"Room\": \"STRING\",\n \"Kids\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"CheckOut\": \"STRING\",\n \"Adults\": \"INTEGER\",\n \"LastName\": \"STRING\",\n \"Code\": \"INTEGER\",\n \"Rate\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of rooms that do not have any reservation."}, {"role": "assistant", "content": "MATCH (room:Room)\\nWHERE NOT (room)<-[:BOOKED_IN]-() return count(room)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"response_received_date\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"sent_date\": \"STRING\"\n }\n },\n \"ProjectStaff\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"role_code\": \"STRING\",\n \"date_to\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"staff_id\": \"FLOAT\"\n }\n },\n \"OrganisationType\": {\n \"properties\": {\n \"organisation_type_description\": \"STRING\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"Organisation\": {\n \"properties\": {\n \"organisation_details\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"ResearchOutcome\": {\n \"properties\": {\n \"outcome_description\": \"STRING\",\n \"outcome_code\": \"STRING\"\n }\n },\n \"ResearchStaff\": {\n \"properties\": {\n \"employer_organisation_id\": \"INTEGER\",\n \"staff_details\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Grant\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"grant_amount\": \"FLOAT\",\n \"grant_start_date\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"grant_end_date\": \"STRING\"\n }\n },\n \"Task\": {\n \"properties\": {\n \"task_details\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"task_id\": \"INTEGER\"\n }\n },\n \"ProjectOutcome\": {\n \"properties\": {\n \"outcome_code\": \"STRING\",\n \"project_id\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"project_id\": \"INTEGER\",\n \"organisation_id\": \"INTEGER\",\n \"project_details\": \"STRING\"\n }\n },\n \"DocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_description\": \"STRING\"\n }\n },\n \"StaffRole\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Task\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Task\"\n }\n ]\n}"}, {"role": "user", "content": "What are the staff roles of the staff who"}, {"role": "assistant", "content": "MATCH (ps:ProjectStaff)\\nWHERE ps.date_from > '2003-04-19 15:06:20' AND ps.date_to < '2016-03-15 00:33:18'\\nRETURN ps.role_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the tagline 'Welcome to the Real World' that were released after 1995."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline = 'Welcome to the Real World' AND m.released > 1995\\nRETURN m.title, m.released, m.tagline\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 entities based on the total amount of filings where the beneficiary bank's country is 'United Kingdom'."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nRETURN e.name AS EntityName, sum(f.amount) AS TotalAmount\\nORDER BY TotalAmount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 countries have the most filings as beneficiaries in the first half of any year?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE date(f.begin).month <= 6\\nWITH c, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 5\\nRETURN c.name AS Country, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to DOI for which name is 10.1142/S0219061301000077, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1142/S0219061301000077'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the first_name for Author combined with the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.first_name AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the doi_id for DOI combined with the specifications for Categories!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.doi_id AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Journal with journal_id equal to 99571eecaa5c5d622bb0d1f855752d5f!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'99571eecaa5c5d622bb0d1f855752d5f'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where comments is 21 pages, AMS-LaTeX and UpdateDate, for which update_date is 2014-11-11?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'21 pages, AMS-LaTeX'}), (b:UpdateDate{update_date:'2014-11-11'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average key_id for Keyword that are linked to Article via HAS_KEY and have abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.key_id) AS avg_key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of retweets for tweets that mention users who have interacted with 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: 'Neo4j'})-[:INTERACTS_WITH]->(user:User)\\nWITH user\\nMATCH (user)<-[:MENTIONS]-(tweet:Tweet)\\nWITH count(tweet) AS total_tweets, sum(tweet.favorites) AS total_retweets\\nRETURN total_retweets/toFloat(total_tweets) AS avg_retweets"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the key_id from Keyword where name is not gain!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name <> 'gain'\\nRETURN DISTINCT n.key_id AS key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to DOI for which doi_id is ee4af8f04acefe1036a78a4436691f55!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 tweets by 'Neo4j' that contain a link to an external website."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nRETURN t.text, l.url\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date and time of the most recent tweet that mentions a user who has retweeted 'pranitahakim'?"}, {"role": "assistant", "content": "MATCH (p:User {screen_name: 'pranitahakim'})-[:POSTS]->(t:Tweet)<-[:RETWEETS]-(u:User)\\nWITH u\\nMATCH (u)<-[:MENTIONS]-(latestTweet:Tweet)\\nRETURN max(latestTweet.created_at) AS mostRecentTweetDateTime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of filings where the originator bank is located in the country with code \"SGP\", the beneficiary bank is located in the country with code \"GBR\", and the amount is greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(ob:Entity)-[:COUNTRY]->(oc:Country), (f)-[:BENEFITS]->(bb:Entity)-[:COUNTRY]->(bc:Country)\\nWHERE oc.code = \"SGP\" AND bc.code = \"GBR\" AND f.amount > 1000000\\nRETURN count(*) AS num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies that have been rated by users more than 1000 times."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, count(u) AS user_ratings\\nWHERE user_ratings > 1000\\nRETURN m.title AS title, user_ratings\\nORDER BY user_ratings DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the Entities that are concerned by Filings where the originator bank is in 'Angola'."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWHERE f.originator_bank_country = 'Angola'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the specifications of the Categories that is not related to the Article with the abstract I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Article {abstract: ' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the tags associated with questions that have a createdAt date on '2020-06-05'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.createdAt = datetime('2020-06-05T00:00:00Z')\\nRETURN t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a specifications which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has title Computing the Top Betti Numbers of Semi-algebraic Sets Defined by\n Quadratic Inequalities in Polynomial Time!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Computing the Top Betti Numbers of Semi-algebraic Sets Defined by Quadratic Inequalities in Polynomial Time'}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.specifications STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have directed movies in more than three different countries?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, size(collect(distinct m.countries)) AS numCountries\\nWHERE numCountries > 3\\nRETURN d.name AS director, numCountries\\nORDER BY numCountries DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating given by people born before 1970?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born < 1970\\nMATCH (p)-[r:REVIEWED]->(m:Movie)\\nWITH avg(r.rating) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 11 and Topic, for which description is Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'11'}), (b:Topic{description:'Study of mathematical objects based on their properties, including types ADE, LYM-type, Lie type, PEL type, and finite type invariance, as well as characteristics such as chirality, hereditary properties, and integrable KdV type hierarchies. Topics also include alternative characterizations, preservation properties, qualitative properties, and reviews of properties. Distinctions between characteristic 0 and characteristic >0 are explored. The focus is on understanding the mathematical structure and behavior of these objects rather than practical applications.'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name starts with lay!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name STARTS WITH 'lay'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a specifications which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has abstract For any $\\ell > 0$, we present an algorithm which takes as input a\nsemi-algebraic set, $S$, defined by $P_1 \\leq 0,...,P_s \\leq 0$, where each\n$P_i \\in \\R[X_1,...,X_k]$ has degree $\\leq 2,$ and computes the top $\\ell$\nBetti numbers of $S$, $b_{k-1}(S), ..., b_{k-\\ell}(S),$ in polynomial time. The\ncomplexity of the algorithm, stated more precisely, is $ \\sum_{i=0}^{\\ell+2} {s\n\\choose i} k^{2^{O(\\min(\\ell,s))}}. $ For fixed $\\ell$, the complexity of the\nalgorithm can be expressed as $s^{\\ell+2} k^{2^{O(\\ell)}},$ which is polynomial\nin the input parameters $s$ and $k$. To our knowledge this is the first\npolynomial time algorithm for computing non-trivial topological invariants of\nsemi-algebraic sets in $\\R^k$ defined by polynomial inequalities, where the\nnumber of inequalities is not fixed and the polynomials are allowed to have\ndegree greater than one. For fixed $s$, we obtain by letting $\\ell = k$, an\nalgorithm for computing all the Betti numbers of $S$ whose complexity is\n$k^{2^{O(s)}}$.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' For any $\\ell > 0$, we present an algorithm which takes as input a semi-algebraic set, $S$, defined by $P_1 \\leq 0,...,P_s \\leq 0$, where each $P_i \\in \\R[X_1,...,X_k]$ has degree $\\leq 2,$ and computes the top $\\ell$ Betti numbers of $S$, $b_{k-1}(S), ..., b_{k-\\ell}(S),$ in polynomial time. The complexity of the algorithm, stated more precisely, is $ \\sum_{i=0}^{\\ell+2} {s \\choose i} k^{2^{O(\\min(\\ell,s))}}. $ For fixed $\\ell$, the complexity of the algorithm can be expressed as $s^{\\ell+2} k^{2^{O(\\ell)}},$ which is polynomial in the input parameters $s$ and $k$. To our knowledge this is the first polynomial time algorithm for computing non-trivial topological invariants of semi-algebraic sets in $\\R^k$ defined by polynomial inequalities, where the number of inequalities is not fixed and the polynomials are allowed to have degree greater than one. For fixed $s$, we obtain by letting $\\ell = k$, an algorithm for computing all the Betti numbers of $S$ whose complexity is $k^{2^{O(s)}}$. '}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.specifications STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the last_name of the Author and the report_no for Report!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Report)\\nRETURN n.last_name, m.report_no\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show me the movies with a tagline containing the word \"connected\"."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'connected'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the highest star rating received by a business in 'Missoula'?"}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Missoula'})\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWITH max(r.stars) AS max_stars\\nRETURN max_stars"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 games played by streams with the highest follower counts."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nRETURN g.name AS game, max(s.followers) AS max_followers\\nORDER BY max_followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 beneficiary countries by the total amount received in transactions."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS Country, sum(f.amount) AS TotalAmountReceived\\nORDER BY TotalAmountReceived DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Report for which report_no is Swansea preprint 99-14, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'Swansea preprint 99-14'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 streams that have chatters who are users with a follower count below 3000."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWHERE u.followers < 3000\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of votes for movies directed by people born before 1960?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born < 1960\\nRETURN avg(m.votes) AS averageVotes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the key_id from Keyword where either key_id is 6ded85146e3dbfb1bb866831b8948f5b or key_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '6ded85146e3dbfb1bb866831b8948f5b' OR n.key_id IS NOT NULL\\nRETURN DISTINCT n.key_id AS key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the description from Topic where description is not Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description <> 'Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval'\\nRETURN DISTINCT n.description AS description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most significant number of languages spoken?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH m, count(l) AS languages_spoken\\nORDER BY languages_spoken DESC\\nRETURN m.title, languages_spoken\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"STU_DOB\": \"STRING\",\n \"STU_LNAME\": \"STRING\",\n \"STU_HRS\": \"INTEGER\",\n \"STU_INIT\": \"STRING\",\n \"STU_NUM\": \"INTEGER\",\n \"PROF_NUM\": \"INTEGER\",\n \"STU_TRANSFER\": \"INTEGER\",\n \"DEPT_CODE\": \"STRING\",\n \"STU_FNAME\": \"STRING\",\n \"STU_PHONE\": \"STRING\",\n \"STU_CLASS\": \"STRING\",\n \"STU_GPA\": \"FLOAT\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"CRS_DESCRIPTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"CRS_CREDIT\": \"FLOAT\"\n }\n },\n \"Professor\": {\n \"properties\": {\n \"PROF_EXTENSION\": \"STRING\",\n \"PROF_HIGH_DEGREE\": \"STRING\",\n \"PROF_OFFICE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Clas\": {\n \"properties\": {\n \"CLASS_CODE\": \"STRING\",\n \"CLASS_SECTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"PROF_NUM\": \"INTEGER\",\n \"CLASS_TIME\": \"STRING\",\n \"CLASS_ROOM\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"DEPT_ADDRESS\": \"STRING\",\n \"DEPT_EXTENSION\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"DEPT_NAME\": \"STRING\",\n \"SCHOOL_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"EMP_INITIAL\": \"STRING\",\n \"EMP_JOBCODE\": \"STRING\",\n \"EMP_LNAME\": \"STRING\",\n \"EMP_HIREDATE\": \"STRING\",\n \"EMP_DOB\": \"STRING\",\n \"EMP_FNAME\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Enroll\": {\n \"properties\": {\n \"ENROLL_GRADE\": \"STRING\",\n \"CLASS_CODE\": \"STRING\",\n \"STU_NUM\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "what is the address of history department?"}, {"role": "assistant", "content": "MATCH (d:Department)\\nWHERE d.DEPT_NAME = \"History\"\\nRETURN d.DEPT_ADDRESS"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have been reordered when the stock level was below 5?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock < 5 AND p.unitsOnOrder > 0\\nRETURN p.productName, p.unitsInStock, p.unitsOnOrder"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Race\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Date\": \"STRING\",\n \"Class\": \"STRING\",\n \"Track_ID\": \"STRING\",\n \"Race_ID\": \"INTEGER\"\n }\n },\n \"Track\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year_Opened\": \"FLOAT\",\n \"Seating\": \"FLOAT\",\n \"Track_ID\": \"INTEGER\",\n \"Location\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of races."}, {"role": "assistant", "content": "MATCH (r:Race)\\nRETURN count(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 movies with the highest average review ratings."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWITH m, avg(r.rating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN m.title, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 tweets by the total interaction (mentions, retweets, replies)."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nOPTIONAL MATCH (t)-[:MENTIONS]->(u:User)\\nWITH t, count(u) AS mentionsCount\\nOPTIONAL MATCH (t)-[:RETWEETS]->(rt:Tweet)\\nWITH t, mentionsCount, count(rt) AS retweetsCount\\nOPTIONAL MATCH (t)-[:REPLY_TO]->(r:Tweet)\\nWITH t, mentionsCount, retweetsCount, count(r) AS repliesCount\\nRETURN t.id_str AS tweetId, t.text AS tweetText, (mentionsCount + retweetsCount + repliesCount) AS totalInteractions\\nORDER BY totalInteractions DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the `name`s of the entities that are connected to filings with a `number` greater than 10 and an `amount` less than 10000 through the `ORIGINATOR` relationship."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.number > 10 AND f.amount < 10000\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Claim\": {\n \"properties\": {\n \"Amount_Claimed\": \"INTEGER\",\n \"Date_Claim_Made\": \"STRING\",\n \"Amount_Settled\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\",\n \"Date_Claim_Settled\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"CustomerPolicy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"Settlement\": {\n \"properties\": {\n \"Amount_Claimed\": \"INTEGER\",\n \"Date_Claim_Made\": \"STRING\",\n \"Amount_Settled\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\",\n \"Customer_Policy_ID\": \"INTEGER\",\n \"Date_Claim_Settled\": \"STRING\",\n \"Settlement_ID\": \"INTEGER\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"Payment_ID\": \"INTEGER\",\n \"Amount_Payment\": \"INTEGER\",\n \"Date_Payment_Made\": \"STRING\",\n \"Payment_Method_Code\": \"STRING\",\n \"Settlement_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerPolicy\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerPolicy\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"CustomerPolicy\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerPolicy\"\n },\n {\n \"from\": \"Settlement\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Claim\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_WITH\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_WITH\",\n \"to\": \"Settlement\"\n }\n ]\n}"}, {"role": "user", "content": "Count the total number of settlements made."}, {"role": "assistant", "content": "MATCH (n:Settlement)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 products that have been discontinued."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = true\\nRETURN p.productName, p.productID\\nORDER BY p.productName\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Keyword where key_id is 72e4f3fc2930bd3a0a7730a664d069d6, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users that 'Neo4j' amplifies."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:AMPLIFIES]->(user:User)\\nRETURN user\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 5 movies that were produced by a specific country, e.g., 'France'."}, {"role": "assistant", "content": "MATCH (c:Country {name: 'France'})<-[:PRODUCED_IN_COUNTRY]-(m:Movie)\\nRETURN m.title\\nORDER BY m.release_date\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 categories are most frequently associated with discontinued products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.discontinued = true\\nRETURN c.categoryName, count(p) AS DiscontinuedProducts\\nORDER BY DiscontinuedProducts DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where description is Collection of techniques and methods for studying the limiting behavior of functions, sequences, and series as certain parameters approach infinity or other special values. Includes concepts such as asymptotic expansions, asymptotic normality, scaling behavior, and Jost asymptotics. Emphasizes the study of asymptotic properties, asymptotic solutions, and asymptotic optimality. Also encompasses topics like approximate normality, asymptotic equivalents, asymptotic expansion of risk difference, and asymptotic relations. May involve the use of O(m log(m B)) notation to describe and Report, for which report_id equals f07a9f85a94d20f473a1bf9b432c05f8?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{description:'Collection of techniques and methods for studying the limiting behavior of functions, sequences, and series as certain parameters approach infinity or other special values. Includes concepts such as asymptotic expansions, asymptotic normality, scaling behavior, and Jost asymptotics. Emphasizes the study of asymptotic properties, asymptotic solutions, and asymptotic optimality. Also encompasses topics like approximate normality, asymptotic equivalents, asymptotic expansion of risk difference, and asymptotic relations. May involve the use of O(m log(m B)) notation to describe'})-[*]->(d:Report{report_id:'f07a9f85a94d20f473a1bf9b432c05f8'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Topic with label equal to Mathematics_9!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.label = 'Mathematics_9'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 categories based on the average reorder level of their products?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS CategoryName, AVG(p.reorderLevel) AS AvgReorderLevel\\nORDER BY AvgReorderLevel DESC\\nRETURN CategoryName, AvgReorderLevel\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 entities sorted by their node_id."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nRETURN e.name, e.node_id\\nORDER BY e.node_id DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'book45PageRank' of all characters?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN avg(c.book45PageRank)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 hashtags used in tweets that mention 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})<-[:MENTIONS]-(t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN h.name\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all services that are dependencies of the application 'crm'."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'crm'})-[:DEPENDS_ON]->(service:Service)\\nRETURN service.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all services that started before timestamp 1606200000000."}, {"role": "assistant", "content": "MATCH (s:Service)\\nWHERE s.startTime < 1606200000000\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"employee\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"shop\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"name\": \"STRING\",\n \"location\": \"STRING\",\n \"district\": \"STRING\",\n \"number_products\": \"STRING\",\n \"manager_name\": \"STRING\"\n }\n },\n \"hiring\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"employee_id\": \"STRING\",\n \"start_from\": \"STRING\",\n \"is_full_time\": \"STRING\"\n }\n },\n \"evaluation\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"year_awarded\": \"STRING\",\n \"bonus\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the manager name and district of the shop whose number of products is the largest."}, {"role": "assistant", "content": "MATCH (shop:shop)\\nRETURN shop.Manager_name,shop.District\\nORDER BY shop.Number_products DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Keyword and Article, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*]-(n)-[*]-(b:Article)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 3 users with the highest number of statuses."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.screen_name, u.statuses\\nORDER BY u.statuses DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"poker_player\": {\n \"properties\": {\n \"poker_player_id\": \"STRING\",\n \"people_id\": \"STRING\",\n \"final_table_made\": \"STRING\",\n \"best_finish\": \"STRING\",\n \"money_rank\": \"STRING\",\n \"earnings\": \"STRING\"\n }\n },\n \"people\": {\n \"properties\": {\n \"people_id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_date\": \"STRING\",\n \"height\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of poker players."}, {"role": "assistant", "content": "MATCH (poker_player:poker_player)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user asked the question with the link 'https://stackoverflow.com/questions/57503591/getting-error-mutations-defined-in-resolvers-but-not-in-schema'?"}, {"role": "assistant", "content": "MATCH (q:Question {link: 'https://stackoverflow.com/questions/57503591/getting-error-mutations-defined-in-resolvers-but-not-in-schema'})<-[:ASKED]-(u:User)\\nRETURN u.display_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many entities have been struck off on '15-FEB-2013'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date = '15-FEB-2013'\\nRETURN count(e) AS struck_off_entities"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Article for which article_id is 1052, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1052'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the title values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 527-551, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='527-551'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_address_id\": \"INTEGER\",\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_phone_number\": \"STRING\",\n \"amount_outstanding\": \"FLOAT\",\n \"date_became_customer\": \"STRING\",\n \"customer_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"date_joined_staff\": \"STRING\",\n \"date_left_staff\": \"STRING\",\n \"nickname\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"staff_address_id\": \"INTEGER\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Lesson\": {\n \"properties\": {\n \"lesson_time\": \"STRING\",\n \"price\": \"FLOAT\",\n \"lesson_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"lesson_id\": \"INTEGER\",\n \"vehicle_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"lesson_status_code\": \"STRING\"\n }\n },\n \"CustomerPayment\": {\n \"properties\": {\n \"datetime_payment\": \"STRING\",\n \"payment_method_code\": \"STRING\",\n \"amount_payment\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Vehicle\": {\n \"properties\": {\n \"vehicle_details\": \"STRING\",\n \"vehicle_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?"}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.amount_outstanding >= 1000 AND c.amount_outstanding <= 3000\\nRETURN c.first_name, c.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"addresses\": {\n \"properties\": {\n \"address_id\": \"STRING\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"line_3\": \"STRING\",\n \"city\": \"STRING\",\n \"zip_postcode\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"other_address_details\": \"STRING\"\n }\n },\n \"courses\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"course_name\": \"STRING\",\n \"course_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"departments\": {\n \"properties\": {\n \"department_id\": \"STRING\",\n \"department_name\": \"STRING\",\n \"department_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"degree_programs\": {\n \"properties\": {\n \"degree_program_id\": \"STRING\",\n \"department_id\": \"STRING\",\n \"degree_summary_name\": \"STRING\",\n \"degree_summary_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"sections\": {\n \"properties\": {\n \"section_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"section_name\": \"STRING\",\n \"section_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"semesters\": {\n \"properties\": {\n \"semester_id\": \"STRING\",\n \"semester_name\": \"STRING\",\n \"semester_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"students\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"current_address_id\": \"STRING\",\n \"permanent_address_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"email_address\": \"STRING\",\n \"ssn\": \"STRING\",\n \"date_first_registered\": \"STRING\",\n \"date_left\": \"STRING\",\n \"other_student_details\": \"STRING\"\n }\n },\n \"student_enrolment\": {\n \"properties\": {\n \"student_enrolment_id\": \"STRING\",\n \"degree_program_id\": \"STRING\",\n \"semester_id\": \"STRING\",\n \"student_id\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"student_enrolment_courses\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"student_enrolment_id\": \"STRING\"\n }\n },\n \"transcripts\": {\n \"properties\": {\n \"transcript_id\": \"STRING\",\n \"transcript_date\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"transcript_contents\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"transcript_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "When was the last transcript released?"}, {"role": "assistant", "content": "MATCH (transcripts:Transcripts)\\nRETURN transcripts.transcript_date\\nORDER BY transcripts.transcript_date DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the abstract and the comments for those Article where abstract starts with !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract STARTS WITH ' '\\nRETURN n.abstract AS abstract, n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "Is the 'Velvet scrunchie' a variant of any product?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Velvet scrunchie'})-[:VARIANT_OF]->(p:Product)\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 streams that have a user who is both a moderator and a VIP?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User), (s)-[:VIP]->(u)\\nRETURN s\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify streams that have more than one language associated with them."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, count(l) as languageCount\\nWHERE languageCount > 1\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Who asked the question titled 'GraphQL subscription delay on first time'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question {title: 'GraphQL subscription delay on first time'})\\nRETURN u.display_name AS asked_by"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 genres are most common in adult films?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:IN_GENRE]->(g:Genre)\\nRETURN g.name AS genre, COUNT(a) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which people acted in movies with the word \"Atlas\" in the title?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title CONTAINS 'Atlas'\\nWITH m\\nMATCH (p:Person)-[:ACTED_IN]->(m)\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have worked with the same production company multiple times?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH p, pc, count(m) AS collaborations\\nWHERE collaborations > 1\\nRETURN p.name, pc.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 users that a specific user named 'Neo4j' follows?"}, {"role": "assistant", "content": "MATCH (me:User {name: 'Neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed.name, followed.screen_name, followed.followers\\nORDER BY followed.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the key_id of the Keyword that is not related to the Article with the comments no comments!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Article {comments: 'no comments'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "\"How many users interacted with louisgray.com?\n\""}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User {label: 'louisgray.com'})\\nRETURN COUNT(DISTINCT u1) AS NumberOfUsersInteracted"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies that have undergone a title change after release?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title <> m.original_title\\nRETURN m.title AS title, m.original_title AS original_title\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters who have interacted with 'Murenmure' in 'book 45'. List the top 5."}, {"role": "assistant", "content": "MATCH (c:Character)-[i:INTERACTS45]->(m:Character {name: 'Murenmure'})\\nRETURN c.name AS character, i.weight AS interactions\\nORDER BY interactions DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"flno\": \"INTEGER\",\n \"arrival_date\": \"STRING\",\n \"distance\": \"INTEGER\",\n \"price\": \"FLOAT\",\n \"origin\": \"STRING\",\n \"departure_date\": \"STRING\",\n \"aid\": \"INTEGER\",\n \"destination\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"name\": \"STRING\",\n \"aid\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"salary\": \"INTEGER\",\n \"eid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "Show the flight number of flights with three lowest distances."}, {"role": "assistant", "content": "MATCH (f:Flight)\\nRETURN f.flno\\nORDER BY f.distance ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the country with id 'US'?"}, {"role": "assistant", "content": "MATCH (c:Country {id: 'US'})\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have asked questions with a title containing 'playground'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.title CONTAINS 'playground'\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 questions that have the most downvotes."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.downVotes\\nORDER BY q.downVotes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Personfriend\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"year\": \"INTEGER\",\n \"friend\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"job\": \"STRING\",\n \"city\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Personfriend\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Personfriend\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of people who has no friend living in the city of Austin."}, {"role": "assistant", "content": "MATCH (p1:Personfriend)-[:KNOWS]->(p2:Person)\\nWHERE NOT EXISTS ((p2)-[:Person {city: \"Austin\"}]->())\\nRETURN count(DISTINCT p1.name)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the category_id of the Categories that is not related to the UpdateDate with the update_date 2008-01-29!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:UpdateDate {update_date: '2008-01-29'})\\nWHERE NOT (n) --> (:UpdateDate)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "Which department is responsible for the 'Raven tunic'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Raven tunic'})-[:FROM_DEPARTMENT]->(d:Department)\\nRETURN d"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that have a VIP user who also moderates another stream with a different language."}, {"role": "assistant", "content": "MATCH (s1:Stream)-[:VIP]->(u:User)\\nMATCH (u)-[:MODERATOR]->(s2:Stream)\\nWHERE s1 <> s2 AND s1.id <> s2.id \\nRETURN DISTINCT s1.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Flag\": \"STRING\",\n \"Type\": \"STRING\",\n \"Built_Year\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"Ship_ID\": \"INTEGER\"\n }\n },\n \"Captain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Class\": \"STRING\",\n \"age\": \"STRING\",\n \"Captain_ID\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of ships."}, {"role": "assistant", "content": "MATCH (s:Ship)\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_id starts with d4a!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH 'd4a'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Topic where description is Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis. and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.description = 'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'\\nRETURN properties(b) AS Topic_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 directors who have directed a movie without having a bio on their profile."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(:Movie)\\nWHERE d.bio IS NULL\\nRETURN d\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users followed by a user with the screen name 'thobe'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'thobe'})-[:FOLLOWS]->(followed:User)\\nRETURN followed.screen_name, followed.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters who have a 'book45PageRank' over 10."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank > 10\\nRETURN c.name, c.book45PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which specifications starts with alg!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications STARTS WITH 'alg'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 filings where the beneficiary bank is located in the country with code \"GBR\" and the amount is greater than 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[r:BENEFITS]->(b:Entity)\\nMATCH (b)-[:COUNTRY]->(c:Country)\\nWHERE c.code = \"GBR\" AND f.amount > 1000000\\nWITH f\\nLIMIT 5\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Article nodes and extract their title property!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the comments of the Article that are linked via HAS_CATEGORY to more than three Categories, and list Categories specifications and Categories counts, ordering by Categories count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_CATEGORY]->(m:Categories)\\nWITH DISTINCT n, m\\nWITH n.comments AS comments, count(m) AS count, COLLECT(m.specifications) as specifications\\nWHERE count > 3\\nRETURN comments, count, specifications\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Article for which article_id is 1052!"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1052'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which switches are located in rack with name 'DC1-RCK-2-3'?"}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-2-3'})-[:HOLDS]->(switch:Switch)\\nRETURN switch"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify three characters whose fastrf_embedding includes a value greater than 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE any(x IN c.fastrf_embedding\\nWHERE x > 1)\\nRETURN c.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where name is gain and traversing through Topic with description Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry.!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'gain'})-[*]->(d:Topic{description:'Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry.'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Keyword where name is super-exponential growth and are HAS_TOPIC linked to a Topic?"}, {"role": "assistant", "content": "MATCH (a:Keyword {name:'super-exponential growth'})-[r:HAS_TOPIC]->(b:Topic)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the longest runtime?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.runtime\\nORDER BY m.runtime DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 5145 and PUBLISHED_IN has year on 2001!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2001'}]->(m)\\nWHERE n.article_id='5145'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the highest revenue and featuring a musical performance?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE k.name = \"musical\"\\nWITH m\\nORDER BY m.revenue DESC\\nRETURN m.title\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Report where report_id is dd0a54fea06e7b7a384741aac9313d65 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the comments from Article where either comments is 20 pages or comments is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = '20 pages' OR n.comments IS NOT NULL\\nRETURN DISTINCT n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Categories for which specifications is cs.CC, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'cs.CC'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Ship_ID\": \"INTEGER\",\n \"Nationality\": \"STRING\",\n \"Tonnage\": \"INTEGER\"\n }\n },\n \"Mission\": {\n \"properties\": {\n \"Mission_ID\": \"INTEGER\",\n \"Speed_knots\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Launched_Year\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\",\n \"Code\": \"STRING\",\n \"Fate\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the types and nationalities of every ship?"}, {"role": "assistant", "content": "MATCH (s:Ship)\\nRETURN s.Type, s.Nationality"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDB rating of movies directed by \"Anthony Stacchi\"?"}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Anthony Stacchi'})-[:DIRECTED]->(m:Movie)\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where meta is 18 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '18'}]->(m:Journal)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the people who wrote and also acted in the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)<-[:ACTED_IN]-(p)\\nRETURN p.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has title Rational points on compactifications of semi-simple algebraic groups!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Rational points on compactifications of semi-simple algebraic groups'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of author_id and first_name from Author where author_id does not start with a!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.author_id STARTS WITH 'a'\\nRETURN DISTINCT n.author_id AS author_id, n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most frequently ordered products in the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nWITH p, count{(p)<-[:ORDERS]-(:Order)} AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 5\\nRETURN p.productName, ordersCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 customers who have placed orders totaling over $1000 in freight costs."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE o.freight >= 1000\\nRETURN c\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 products are most frequently ordered in the 'Confections' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Confections'})\\nWITH p\\nMATCH (o:Order)-[r:ORDERS]->(p)\\nRETURN p.productName, count(r) AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all the relationships a person named 'Keanu Reeves' has with movies."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Keanu Reeves'})-[r]->(m:Movie)\\nRETURN p, r, m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters connected by any INTERACTS relationship with a weight over 200."}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE r.weight > 200\\nRETURN c1.name, c2.name, r.weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the title of the Article that are linked via PUBLISHED_IN to more than three Journal, and list Journal name and Journal counts, ordering by Journal count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nWITH n.title AS title, count(m) AS count, COLLECT(m.name) as name\\nWHERE count > 3\\nRETURN title, count, name\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"VotingRecord\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Vice_President_Vote\": \"INTEGER\",\n \"Class_Senator_Vote\": \"INTEGER\",\n \"Class_President_Vote\": \"INTEGER\",\n \"President_Vote\": \"INTEGER\",\n \"Treasurer_Vote\": \"INTEGER\",\n \"Secretary_Vote\": \"INTEGER\",\n \"Election_Cycle\": \"STRING\",\n \"Registration_Date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n }\n ]\n}"}, {"role": "user", "content": "What are the maximum and minimum age of students with major 600?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nWHERE s.Major = 600\\nRETURN max(s.Age), min(s.Age)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average total view count of users who chat on streams playing \"Just Chatting\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: \"Just Chatting\"})\\nWITH s\\nMATCH (u:User)-[:CHATTER]->(s)\\nWITH DISTINCT u\\nRETURN avg(u.total_view_count) AS average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_type_code\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"address_line_1\": \"STRING\",\n \"town_city\": \"STRING\",\n \"address_line_2\": \"STRING\",\n \"state\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"date_product_first_available\": \"STRING\",\n \"date_product_discontinued\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"product_description\": \"STRING\"\n }\n },\n \"Complaint\": {\n \"properties\": {\n \"date_complaint_raised\": \"STRING\",\n \"complaint_outcome_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"complaint_id\": \"INTEGER\",\n \"complaint_type_code\": \"STRING\",\n \"complaint_status_code\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"date_complaint_closed\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n }\n ]\n}"}, {"role": "user", "content": "Find the email and phone number of the customers who have never filed a complaint before."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE NOT (:Complaint)-[:RELATED_TO]->(c)\\nRETURN c.email_address, c.phone_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many reviews does the 'Neo4j' business have?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Neo4j'})<-[:REVIEWS]-(r:Review)\\nRETURN count(r) AS reviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been both acted in and directed by the same person?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title AS movie, p.name AS person"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different job roles available in the movie industry?"}, {"role": "assistant", "content": "MATCH ()-[:CREW_FOR]->(m)\\nRETURN DISTINCT m.job"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of businesses that have been reviewed by Jenny?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN DISTINCT b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Author for which first_name is Maciej!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Maciej'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where pages is 303-348 and has comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '303-348'}]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the author_id and the last_name for those Author where author_id starts with b!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'b'\\nRETURN n.author_id AS author_id, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the lowest average vote and more than 100 vote counts?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 100\\nRETURN m.title, m.average_vote, m.vote_count\\nORDER BY m.average_vote ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Sportsinfo\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"SportName\": \"STRING\",\n \"HoursPerWeek\": \"INTEGER\",\n \"OnScholarship\": \"STRING\",\n \"GamesPlayed\": \"INTEGER\"\n }\n },\n \"PlaysGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"StuID\": \"INTEGER\",\n \"Hours_Played\": \"INTEGER\"\n }\n },\n \"VideoGame\": {\n \"properties\": {\n \"GameID\": \"INTEGER\",\n \"GType\": \"STRING\",\n \"GName\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Sportsinfo\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"COMPETES_WITH\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"PlaysGame\",\n \"type\": \"PLAYS\",\n \"to\": \"VideoGame\"\n }\n ]\n}"}, {"role": "user", "content": "Show ids of students who play video game and play sports."}, {"role": "assistant", "content": "MATCH (s:Sportsinfo), (p:PlaysGame)\\nWHERE s.StuID = p.StuID\\nRETURN DISTINCT s.StuID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1071 or article_id is less than 1013!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 OR n.article_id < 1013\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions asked by users with a reputation greater than 100000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 100000\\nRETURN q.title AS question_title, q.link AS question_link, u.display_name AS user_name, u.reputation AS user_reputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 oldest movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.release_date\\nORDER BY m.release_date\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with the most number of associated actors?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH m, count(a) AS numActors\\nORDER BY numActors DESC\\nRETURN m.title, numActors\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has acted in the most movies released in the 1990s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released < 2000\\nWITH p, count(m) AS num_movies\\nORDER BY num_movies DESC\\nLIMIT 1\\nRETURN p.name AS actor, num_movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Author with author_id equal to d83c43e5b1cf398c4e549843f497694b!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'d83c43e5b1cf398c4e549843f497694b'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 filings by the number of concerned entities."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWITH f, count(e) AS concernedEntities\\nORDER BY concernedEntities DESC\\nLIMIT 5\\nRETURN f, concernedEntities"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `degree` of characters in `community` 795?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 795})\\nRETURN avg(c.degree) AS average_degree"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wrestler\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Wrestler_ID\": \"INTEGER\",\n \"Reign\": \"STRING\",\n \"Event\": \"STRING\",\n \"Location\": \"STRING\",\n \"Days_held\": \"STRING\"\n }\n },\n \"Elimination\": {\n \"properties\": {\n \"Elimination_ID\": \"STRING\",\n \"Wrestler_ID\": \"STRING\",\n \"Time\": \"STRING\",\n \"Eliminated_By\": \"STRING\",\n \"Team\": \"STRING\",\n \"Elimination_Move\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many wrestlers are there?"}, {"role": "assistant", "content": "MATCH (w:Wrestler)\\nRETURN count(w)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2010-06-18 and DOI, for which name is 10.1007/PL00005532?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2010-06-18'}), (b:DOI{name:'10.1007/PL00005532'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 businesses have been reviewed by users from 'MT'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.state = 'MT'\\nRETURN b.name AS businessName, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where title is Fast matrix multiplication is stable and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Fast matrix multiplication is stable'})-[r:HAS_CATEGORY]->(b:Categories)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Keyword for which key_id is 5d6533e2a77e3daabc184ee8f2441597, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 genres with the highest average movie revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, avg(m.revenue) AS averageRevenue\\nORDER BY averageRevenue DESC\\nLIMIT 3\\nRETURN g.name AS genre, averageRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the users who moderate streams with more than 5,000,000 total view count."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User)\\nWHERE s.total_view_count > 5000000\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with meta equal to 18, connected to Article that has title equal to Summation and transformation formulas for elliptic hypergeometric series?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '18'}]->(m:Journal)\\nWHERE n.title = 'Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the production company with id 3?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany {id: 3})\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters with the top 3 highest 'book45PageRank' values who interacted with \"Brynden-Tully\" in book 45."}, {"role": "assistant", "content": "MATCH (bt:Character {name: \"Brynden-Tully\"})-[:INTERACTS45]->(other)\\nRETURN other.name AS character_name, other.book45PageRank AS page_rank\\nORDER BY page_rank DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the birth years of people who have acted in movies released before 1980?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released < 1980\\nRETURN DISTINCT p.born"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI where name is 10.1007/s00365-002-0501-6!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1007/s00365-002-0501-6'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "Find names and ids of all documents with document type code BK."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWHERE d.Document_Type_Code = \"BK\"\\nRETURN d.Document_Name, d.Document_ID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the payment method code used by more than 3 parties."}, {"role": "assistant", "content": "MATCH (p:Party)\\nWITH p.payment_method_code as payment_method_code, count(*) AS count\\nWHERE count > 3\\nRETURN payment_method_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the lowest votes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m.title, m.votes\\nORDER BY m.votes\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where comments is 28 pages, LaTex, through Journal via PUBLISHED_IN with pages 263-281?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'28 pages, LaTex'})-[:PUBLISHED_IN {pages: '263-281'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Show the 3 streams that have the longest descriptions."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name, s.description\\nORDER BY size(s.description) DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with title equal to Solutions to congruences using sets with the property of Baire, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies has Lana Wachowski directed?"}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Lana Wachowski'})-[:DIRECTED]->(m:Movie)\\nRETURN count(m) AS num_movies_directed"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the highest rated comedy movie?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWITH m, max(r.rating) AS max_rating\\nMATCH (m)<-[r:REVIEWED]-()\\nWHERE r.rating = max_rating\\nRETURN m AS movie"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of dependencies for all the Applications?"}, {"role": "assistant", "content": "MATCH (app:Application)-[:DEPENDS_ON]->(dependency)\\nWITH app, count(dependency) AS num_dependencies\\nWITH avg(num_dependencies) AS average_dependencies\\nRETURN average_dependencies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many cities are there in state \"Colorado\"?"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.state_province_county = \"Colorado\"\\nRETURN count(a) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has article_id 1048!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1048'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to UpdateDate for which update_date is 2014-11-11!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-11-11'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 youngest producers in the database?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nRETURN p.name, p.born\\nORDER BY p.born DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Report where report_no is ITF-99-42 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'ITF-99-42'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Author for which affiliation is Nice - Sophia Antipolis, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'Nice - Sophia Antipolis'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which genre has the widest range of release dates?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, min(m.release_date) AS earliestRelease, max(m.release_date) AS latestRelease\\nWITH g, duration.inDays(earliestRelease, latestRelease) AS dateRange\\nORDER BY dateRange DESC\\nRETURN g.name AS genreName, dateRange\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Topic where cluster is 9 and list their properties, including those of Topic!"}, {"role": "assistant", "content": "MATCH (b:Topic)-[r]->(n)\\nWHERE b.cluster = '9'\\nRETURN properties(b) AS Topic_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the most diverse roles across different movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nUNWIND r.roles AS role\\nWITH p, COUNT(DISTINCT role) AS uniqueRoles\\nRETURN p.name AS person, uniqueRoles\\nORDER BY uniqueRoles DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where year is 2001 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2001'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is Let F be a local net of von Neumann algebras in four spacetime dimensions\nsatisfying certain natural structural assumptions. We prove that if F has\ntrivial superselection structure then every covariant, Haag-dual subsystem B is\nthe fixed point net under a compact group action on one component in a suitable\ntensor product decomposition of F. Then we discuss some application of our\nresult, including free field models and certain theories with at most countably\nmany sectors.\n and are PUBLISHED_IN linked to a Journal?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' Let F be a local net of von Neumann algebras in four spacetime dimensions satisfying certain natural structural assumptions. We prove that if F has trivial superselection structure then every covariant, Haag-dual subsystem B is the fixed point net under a compact group action on one component in a suitable tensor product decomposition of F. Then we discuss some application of our result, including free field models and certain theories with at most countably many sectors. '})-[r:PUBLISHED_IN]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal for which name is J.Diff.Eq, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.name = 'J.Diff.Eq'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_no of the Report and the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:UpdateDate)\\nRETURN n.report_no, m.update_date\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for DOI combined with the name for Journal, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.name AS Records\\nUNION\\nMATCH (m:Journal)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Topic for which label is Mathematics_9!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematics_9'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Perpetrator\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Killed\": \"INTEGER\",\n \"Date\": \"STRING\",\n \"Perpetrator_ID\": \"INTEGER\",\n \"Injured\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Country\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Weight\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"Home Town\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there."}, {"role": "assistant", "content": "MATCH (p:Perpetrator)\\nRETURN p.Country, COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a cast member who has also worked in the crew of the same movie?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:CAST_FOR]-(p:Person)-[:CREW_FOR]->(m)\\nRETURN m.title AS movie, p.name AS person"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 5 or cluster is less than 1!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 5 OR n.cluster < 1\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n }\n ]\n}"}, {"role": "user", "content": "\"get me all the machine runs sorted by sart time\""}, {"role": "assistant", "content": "MATCH (m:Machine)-[r:RUNS]->(s)\\nRETURN m.name, s.name, s.startTime\\nORDER BY s.startTime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 countries where entities have filed the most number of filings in 2017."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.begin.year = 2017\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 3\\nMATCH (e)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS CountryName, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 questions by users who have no profile image link provided."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.image IS NULL\\nRETURN q\\nORDER BY q.score DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 products have been ordered the most times?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:ORDERS]->(o:Order)\\nRETURN p.productName, count(o) AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where comments is 44 pages and share a common property with Keyword, for which name equals layer-by-layer growth?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'44 pages'})-[r]->(n), (d:Keyword{name:'layer-by-layer growth'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions tagged with 'graphql' that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWHERE q.answered = true\\nRETURN q.title AS title, q.link AS link, q.createdAt AS createdAt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 filings where the originator and beneficiary banks have the same country of origin?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)-[:COUNTRY]->(oc:Country), (f)-[:BENEFITS]->(b:Entity)-[:COUNTRY]->(bc:Country)\\nWHERE oc.code = bc.code\\nRETURN f\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the article_id of Article that each have more than five PUBLISHED_IN relationships with Journal!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m, r\\nWITH n.article_id AS article_id, count(r) AS count\\nWHERE count > 5\\nRETURN article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Article for which title is The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"HasAmenity\": {\n \"properties\": {\n \"dormid\": \"INTEGER\",\n \"amenid\": \"INTEGER\"\n }\n },\n \"LivesIn\": {\n \"properties\": {\n \"room_number\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"stuid\": \"INTEGER\"\n }\n },\n \"Dorm\": {\n \"properties\": {\n \"student_capacity\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"dorm_name\": \"STRING\"\n }\n },\n \"DormAmenity\": {\n \"properties\": {\n \"amenid\": \"INTEGER\",\n \"amenity_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all the dorms that can accomdate more than 300 students?"}, {"role": "assistant", "content": "MATCH (d:Dorm)\\nWHERE d.student_capacity > 300\\nRETURN d.dorm_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 characters with the highest `louvain`."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.louvain\\nORDER BY c.louvain DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the comments of the Article and the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Keyword)\\nRETURN n.comments, m.key_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the category_id for Categories that is linked through a HAS_CATEGORY relationship with the Article where comments is 11 pages!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.comments='11 pages'\\nRETURN m.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_ID\": \"INTEGER\",\n \"Customer_name\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Service_name\": \"STRING\"\n }\n },\n \"FirstNotificationOfLos\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Service_ID\": \"INTEGER\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"Claim\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"Settlement\": {\n \"properties\": {\n \"Settlement_Amount\": \"FLOAT\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\",\n \"Settlement_ID\": \"INTEGER\"\n }\n },\n \"AvailablePolicy\": {\n \"properties\": {\n \"policy_type_code\": \"STRING\",\n \"Customer_Phone\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"Settlement\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Claim\"\n },\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n }\n ],\n \"relationshipProperties\": {\n \"OFFERS\": {\n \"Date_Opened\": \"STRING\",\n \"Date_Closed\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the maximum and minimum settlement amount on record?"}, {"role": "assistant", "content": "MATCH (s:Settlement)\\nRETURN max(s.Settlement_Amount), min(s.Settlement_Amount)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Article where abstract is We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters from community 642 have 'pagerank' above 1?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 642 AND c.pagerank > 1\\nRETURN c.name, c.pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its abstract and the count of Journal linked via PUBLISHED_IN where pages is not '45-96', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '45-96'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List all racks contained within the 'DC1' DataCenter."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(rack:Rack)\\nRETURN rack"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to UpdateDate for which update_date is 2010-06-18!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2010-06-18'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that were produced by 'Pixar Animation Studios' and have a budget over $100 million."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.budget > 100000000\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to DOI where doi_id contains fe8768ee88f2d27ed51861639e63a4ff, along with the type of their relationship with DOI!"}, {"role": "assistant", "content": "MATCH (d:DOI)-[r]->(n)\\nWHERE d.doi_id CONTAINS 'fe8768ee88f2d27ed51861639e63a4ff'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Report for which report_id is 45009bf7f2e3f4f275de6d92deab7b27!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the specifications for Categories that is linked through a HAS_CATEGORY relationship with the Article where abstract is Determining contributions by sub-portfolios or single exposures to\nportfolio-wide economic capital for credit risk is an important risk\nmeasurement task. Often economic capital is measured as Value-at-Risk (VaR) of\nthe portfolio loss distribution. For many of the credit portfolio risk models\nused in practice, the VaR contributions then have to be estimated from Monte\nCarlo samples. In the context of a partly continuous loss distribution (i.e.\ncontinuous except for a positive point mass on zero), we investigate how to\ncombine kernel estimation methods with importance sampling to achieve more\nefficient (i.e. less volatile) estimation of VaR contributions.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.abstract=' Determining contributions by sub-portfolios or single exposures to portfolio-wide economic capital for credit risk is an important risk measurement task. Often economic capital is measured as Value-at-Risk (VaR) of the portfolio loss distribution. For many of the credit portfolio risk models used in practice, the VaR contributions then have to be estimated from Monte Carlo samples. In the context of a partly continuous loss distribution (i.e. continuous except for a positive point mass on zero), we investigate how to combine kernel estimation methods with importance sampling to achieve more efficient (i.e. less volatile) estimation of VaR contributions. '\\nRETURN m.specifications"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"OSM\",\n \"type\": \"BBOX\",\n \"to\": \"Bounds\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMWay\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMWay\",\n \"type\": \"FIRST_NODE\",\n \"to\": \"OSMWayNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NEXT\",\n \"to\": \"OSMWayNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMWay\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMRelation\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n }\n ]\n}"}, {"role": "user", "content": "\"I want to talk from the statue of Richard Morris Hunt to the statue of Robert Burns on the shortest route. Are there other points of interest accessible from intersections along the way?\""}, {"role": "assistant", "content": "STRING, tactile_paving: STRING, kerb: STRING, recycling_type: STRING, capacity: STRING, payment:credit_cards: STRING, ref: STRING, artist_name:wikipedia: STRING, artwork_subject: STRING, fire_hydrant:type: STRING, water_source: STRING, lit: STRING, denotation: STRING, leaf_cycle: STRING, leaf_type: STRING, alt_name: STRING, bicycle: STRING, hgv: STRING, oneway: STRING, tiger:cfcc: STRING, tiger:county: STRING, tiger:name_base: STRING, surface: STRING, motor_vehicle: STRING, tiger:name_type: STRING, lanes:backward: STRING, lanes:forward: STRING, name_1: STRING, tiger:name_base_1: STRING, tiger:name_direction_prefix_1: STRING, tiger:name_direction_suffix: STRING, tiger:name_type_1: STRING, tiger:zip_right: STRING, tiger:zip_right_1: STRING, tiger:name_direction_prefix: STRING, tiger:reviewed: STRING, tiger:zip_left: STRING, destination: STRING, lanes: STRING, maxheight: STRING, maxspeed: STRING, turn:lanes: STRING, maxheight:backward: STRING, maxheight:forward: STRING, tiger:name_base_3: STRING, tiger:name_base_4: STRING, water: STRING, access:conditional: STRING, incline: STRING, landuse: STRING, horse: STRING, ski: STRING, snowmobile: STRING, electrified: STRING, frequency: STRING, gauge: STRING, railway:preferred_direction: STRING, railway:track_ref: STRING, tunnel: STRING, voltage: STRING, bridge: STRING, motorcar: STRING, name:ru: STRING, sidewalk: STRING, footway: STRING, name:ja: STRING, name:ko: STRING, addr:city: STRING, addr:state: STRING, loc_name: STRING, cycleway:left: STRING, cycleway:right: STRING, junction: STRING, parking:lane:left: STRING, height: STRING, building:material: STRING, building:part: STRING, roof:material: STRING, roof:shape: STRING, building: STRING, nycdoitt:bin: STRING, addr:housenumber: STRING, addr:postcode: STRING, addr:street: STRING, building:levels: STRING, roof:colour: STRING, area: STRING, cables: STRING, circuits: STRING, location: STRING, power: STRING, service: STRING, fixme: STRING, waterway: STRING, route: STRING, indoor: STRING, place: STRING, min_height: STRING, name:kn: STRING, maxspeed:advisory:backward: STRING, seats: STRING, from: STRING, interval: STRING, interval:note: STRING, interval:source: STRING, opening_hours:note: STRING, owner: STRING, public_transport:version: STRING, to: STRING, type: STRING, interval:conditional: STRING, cycle_network: STRING, route_master: STRING, admin_level: STRING, boundary: STRING, intermittent: STRING, alt_name:ru: STRING, population: STRING, via: STRING, old_railway_operator: STRING}\nOSMWay {way_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, oneway: STRING, highway: STRING, name: STRING}\nOSMRelation {relation_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, name: STRING}\nIntersection {node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT, name: STRING, type: STRING}\nRoutable {node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT}\nPointOfInterest {name: STRING, node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT, type: STRING}\nRelationship properties:\nNEXT {distance: FLOAT}\nMEMBER {role: STRING}\nROUTE {length: INTEGER, count: INTEGER, distance: FLOAT, toRel: INTEGER, fromRel: INTEGER}\nThe relationships:\n(:OSM)-[:BBOX]->(:Bounds)\n(:OSMNode)-[:ROUTE]->(:OSMNode)\n(:OSMNode)-[:ROUTE]->(:Intersection)\n(:OSMNode)-[:ROUTE]->(:PointOfInterest)\n(:OSMNode)-[:TAGS]->(:OSMTags)\n(:OSMNode)-[:ASSOCIATED]->(:OSMTags)\n(:OSMWay)-[:TAGS]->(:OSMTags)\n(:OSMWay)-[:FIRST_NODE]->(:OSMWayNode)\n(:OSMWayNode)-[:NEXT]->(:OSMWayNode)\n(:OSMWayNode)-[:NODE]->(:OSMNode)\n(:OSMWayNode)-[:NODE]->(:Intersection)\n(:OSMWayNode)-[:NODE]->(:PointOfInterest)\n(:OSMRelation)-[:TAGS]->(:OSMTags)\n(:OSMRelation)-[:MEMBER]->(:OSMWay)\n(:OSMRelation)-[:MEMBER]->(:OSMNode)\n(:OSMRelation)-[:MEMBER]->(:OSMRelation)\n(:OSMRelation)-[:MEMBER]->(:PointOfInterest)\n(:OSMRelation)-[:MEMBER]->(:Intersection)\n(:Intersection)-[:ROUTE]->(:OSMNode)\n(:Intersection)-[:ROUTE]->(:Intersection)\n(:Intersection)-[:ROUTE]->(:Routable)\n(:Intersection)-[:ROUTE]->(:PointOfInterest)\n(:Intersection)-[:TAGS]->(:OSMTags)\n(:Intersection)-[:ASSOCIATED]->(:OSMTags)\n(:Routable)-[:ROUTE]->(:OSMNode)\n(:Routable)-[:ROUTE]->(:Intersection)\n(:Routable)-[:ROUTE]->(:Routable)\n(:PointOfInterest)-[:ROUTE]->(:OSMNode)\n(:PointOfInterest)-[:ROUTE]->(:Intersection)\n(:PointOfInterest)-[:ROUTE]->(:Routable)\n(:PointOfInterest)-[:ROUTE]->(:PointOfInterest)\n(:PointOfInterest)-[:ASSOCIATED]->(:OSMTags)\n(:PointOfInterest)-[:TAGS]->(:OSMTags)\nQ: \"I want to talk from the statue of Richard Morris Hunt to the statue of Robert Burns on the shortest route. Are there other points of interest accessible from intersections along the way?\"\nA: MATCH (start:PointOfInterest)-[:TAGS]->(startTags:OSMTags {name: \"Richard Morris Hunt\"}), (end:PointOfInterest)-[:TAGS]->(endTags:OSMTags {name: \"Robert Burns\"}), p=shortestPath((start)-[:ROUTE*]->(end))\\nWITH [node IN nodes(p)\\nWHERE node:Intersection] AS intersections\\nUNWIND intersections AS intersection\\nMATCH (intersection)-[:ROUTE]->(poi:PointOfInterest)\\nRETURN DISTINCT poi.name AS PointsOfInterest"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is Marco and Article, for which title is Solutions to congruences using sets with the property of Baire?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Marco'}), (b:Article{title:'Solutions to congruences using sets with the property of Baire'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a name which begins with k, and is linked to Article via HAS_KEY relationship, where Article has title Ternary expansions of powers of 2!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Ternary expansions of powers of 2'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.name STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wrestler\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Wrestler_ID\": \"INTEGER\",\n \"Reign\": \"STRING\",\n \"Event\": \"STRING\",\n \"Location\": \"STRING\",\n \"Days_held\": \"STRING\"\n }\n },\n \"Elimination\": {\n \"properties\": {\n \"Elimination_ID\": \"STRING\",\n \"Wrestler_ID\": \"STRING\",\n \"Time\": \"STRING\",\n \"Eliminated_By\": \"STRING\",\n \"Team\": \"STRING\",\n \"Elimination_Move\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of the wrestlers, ordered descending by days held?"}, {"role": "assistant", "content": "MATCH (w:Wrestler)\\nRETURN w.Name\\nORDER BY w.Days_held DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Journal for which name is Izv. Math, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Izv. Math'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Article where comments is 44 pages and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'44 pages'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that Neo4j has retweeted mentions from?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:RT_MENTIONS]->(user:User)\\nWITH user, count(*) AS mentions\\nORDER BY mentions DESC\\nLIMIT 3\\nRETURN user.screen_name AS user, mentions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which Intermediaries have a status of \"ACTIVE\"?"}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nWHERE i.status = \"ACTIVE\"\\nRETURN i.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Can you list the first 3 genres associated with the movie titled 'Toy Story'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})-[:IN_GENRE]->(g:Genre)\\nRETURN g\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the products with the highest 'unitsOnOrder' values that are not discontinued."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE NOT p.discontinued\\nWITH p\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 10\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 highest budget movies that failed to gross more than their budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue < m.budget\\nRETURN m.title, m.budget, m.revenue\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the IP addresses of Interfaces connected by Router 'DC1-R-2'?"}, {"role": "assistant", "content": "MATCH (router:Router {name: 'DC1-R-2'})-[:ROUTES]->(interface:Interface)\\nRETURN interface.ip AS ip_addresses"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 highest-rated businesses?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, avg(r.stars) AS avg_stars\\nORDER BY avg_stars DESC\\nLIMIT 3\\nRETURN b.name, avg_stars"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with an IMDb ID starting with 'tt'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdb_id STARTS WITH 'tt'\\nRETURN m.title, m.imdb_id\\nORDER BY m.imdb_id\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 games with the highest number of streams playing them."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH g, count(s) AS streamCount\\nORDER BY streamCount DESC\\nLIMIT 5\\nRETURN g.name, streamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the comments values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 479-502, and return comments along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='479-502'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all the games that have been played by streams with more than 5 million total views, showing the first 3."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.total_view_count > 5000000\\nRETURN g.name AS game\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a author_id which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has comments 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '21 pages, AMS-LaTeX'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.author_id STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2008-01-29 and Topic, with label equal Linear Algebra_1, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2008-01-29'})-[*]-(e:Topic{label:'Linear Algebra_1'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"tv_channel\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"series_name\": \"STRING\",\n \"country\": \"STRING\",\n \"language\": \"STRING\",\n \"content\": \"STRING\",\n \"pixel_aspect_ratio_par\": \"STRING\",\n \"hight_definition_tv\": \"STRING\",\n \"pay_per_view_ppv\": \"STRING\",\n \"package_option\": \"STRING\"\n }\n },\n \"tv_series\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"episode\": \"STRING\",\n \"air_date\": \"STRING\",\n \"rating\": \"STRING\",\n \"share\": \"STRING\",\n \"18_49_rating_share\": \"STRING\",\n \"viewers_m\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"channel\": \"STRING\"\n }\n },\n \"cartoon\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"title\": \"STRING\",\n \"directed_by\": \"STRING\",\n \"written_by\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the content of the series Sky Radio?"}, {"role": "assistant", "content": "MATCH (tv_channel:TV_Channel)\\nWHERE tv_channel.series_name = 'Sky Radio'\\nRETURN tv_channel.Content"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were asked by a user with an ID greater than 9000000?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.id > 9000000\\nRETURN q.title AS question_title, q.id AS question_id, q.link AS question_link, q.createdAt AS question_createdAt"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"similar_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "\"Is any of the companies that LIN PING is officer of from Hong Kong?\""}, {"role": "assistant", "content": "MATCH (o:Officer {name: \"LIN PING\"})-[:officer_of]->(e:Entity)\\nWHERE e.countries CONTAINS \"Hong Kong\"\\nRETURN e.name, e.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_no is ITF-99-42 and Author, for which first_name is Marco?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'ITF-99-42'}), (b:Author{first_name:'Marco'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the countries associated with intermediaries named 'MICHAEL PAPAGEORGE, MR.'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: \"MICHAEL PAPAGEORGE, MR.\"})\\nRETURN i.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the specifications of the Categories that is not related to the Article with the article_id 1008!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Article {article_id: '1008'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are three characters connected by an INTERACTS45 relationship in book 45?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS45]->(c2:Character)\\nWHERE r.book = 45\\nRETURN c1.name, c2.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the journal_id of the Journal and the doi_id for DOI!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:DOI)\\nRETURN n.journal_id, m.doi_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from UpdateDate for which update_date=2007-05-23!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2007-05-23'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users follow 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {name: 'Neo4j'})\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 5 streams with the lowest follower count and still active."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers IS NOT NULL\\nRETURN s\\nORDER BY s.followers ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average longitude (`beneficiary_lng`) of filings where the `beneficiary_bank_country` is \"Afghanistan\"?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = \"Afghanistan\"\\nRETURN avg(toFloat(f.beneficiary_lng)) AS average_longitude"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Topic where description is Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts., and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts.'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where abstract is An inclusion of observable nets satisfying duality induces an inclusion of\ncanonical field nets. Any Bose net intermediate between the observable net and\nthe field net and satisfying duality is the fixed-point net of the field net\nunder a compact group. This compact group is its canonical gauge group if the\noccurrence of sectors with infinite statistics can be ruled out for the\nobservable net and its vacuum Hilbert space is separable.\n and PUBLISHED_IN has meta on 218!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '218'}]->(m)\\nWHERE n.abstract=' An inclusion of observable nets satisfying duality induces an inclusion of canonical field nets. Any Bose net intermediate between the observable net and the field net and satisfying duality is the fixed-point net of the field net under a compact group. This compact group is its canonical gauge group if the occurrence of sectors with infinite statistics can be ruled out for the observable net and its vacuum Hilbert space is separable. '\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the specifications for Categories combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.specifications AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the VIP users in streams that have over 1000000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE s.followers > 1000000\\nRETURN u.name AS VIPUserName, u.id AS VIPUserId"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stadium\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Home_Games\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Capacity_Percentage\": \"FLOAT\",\n \"Total_Attendance\": \"FLOAT\",\n \"Average_Attendance\": \"FLOAT\"\n }\n },\n \"InjuryAccident\": {\n \"properties\": {\n \"Injury\": \"STRING\",\n \"id\": \"INTEGER\",\n \"Source\": \"STRING\",\n \"Player\": \"STRING\",\n \"Number_of_matches\": \"STRING\",\n \"game_id\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"stadium_id\": \"INTEGER\",\n \"Away_team\": \"STRING\",\n \"Date\": \"STRING\",\n \"Home_team\": \"STRING\",\n \"Season\": \"INTEGER\",\n \"Competition\": \"STRING\",\n \"Score\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Game\",\n \"type\": \"IS_PLAYED_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"InjuryAccident\",\n \"type\": \"OCCURRED_DURING\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Game\",\n \"type\": \"IS_PLAYED_IN\",\n \"to\": \"Stadium\"\n },\n {\n \"from\": \"InjuryAccident\",\n \"type\": \"OCCURRED_DURING\",\n \"to\": \"Game\"\n }\n ]\n}"}, {"role": "user", "content": "List the season, home team, away team of all the games."}, {"role": "assistant", "content": "MATCH (g:Game)\\nRETURN g.Season, g.Home_team, g.Away_team"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the description and the cluster for those Topic where description starts with F!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description STARTS WITH 'F'\\nRETURN n.description AS description, n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the first_name from Author where last_name is not Polishchuk!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name <> 'Polishchuk'\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to DOI where name is 10.2140/gt.2000.4.407, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:DOI{name:'10.2140/gt.2000.4.407'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which orders were placed by customers with a 'Sales Representative' contact title?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWHERE c.contactTitle = 'Sales Representative'\\nRETURN o.orderID AS orderID, o.orderDate AS orderDate, c.companyName AS customerCompanyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users who follow 'neo4j' and have been mentioned in tweets by 'neo4j'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})<-[:FOLLOWS]-(follower:User)\\nWHERE EXISTS { (me)-[:POSTS]->(:Tweet)-[:MENTIONS]->(follower) }\\nRETURN follower.screen_name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all officers that probably have the same identity as a given officer"}, {"role": "assistant", "content": "MATCH (o1:Officer {name: 'given officer'})-[:probably_same_officer_as]->(o2:Officer)\\nRETURN o1, o2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the abstract for Article combined with the comments for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.abstract AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the suppliers who have the highest number of products with units in stock."}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.unitsInStock > 0\\nWITH s, count(p) AS numProducts\\nORDER BY numProducts DESC\\nRETURN s.companyName, numProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 actors who acted in a movie without having a born date listed."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.born IS NULL\\nRETURN a.name, a.url, m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average release year for movies with \"Dark\" in the review summary?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary CONTAINS 'Dark'\\nRETURN avg(m.released) AS average_release_year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies that have been produced in the country 'United States of America'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'United States of America'})\\nRETURN m.title, m.average_vote\\nORDER BY m.average_vote DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all actors who have acted in movies that have been released on New Year's Day."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie {released: \"2000-01-01\"})\\nRETURN a.name, m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been reviewed with a summary 'Fun, but a little far fetched' and what were their ratings?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary = 'Fun, but a little far fetched'\\nRETURN m.title AS movieTitle, r.rating AS rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of schools with the top 3 largest size?"}, {"role": "assistant", "content": "MATCH (c:College)\\nRETURN c.cName\\nORDER BY c.enr DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities are associated with the service provider 'Mossack Fonseca' and have a status of 'Active'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.service_provider = 'Mossack Fonseca' AND e.status = 'Active'\\nRETURN e.name AS entity_name, e.service_provider AS service_provider, e.status AS status"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have produced the most movies with a runtime longer than 120 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE m.runtime > 120\\nWITH pc, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 3\\nRETURN pc.name, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 orders where the freight cost was less than $15."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE toFloat(o.freight) < 15\\nRETURN o.orderID, o.freight, o.orderDate\\nORDER BY o.orderDate\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which ports are listened to by the process with the pid 8966?"}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})\\nMATCH (p)-[:LISTENS]->(port:Port)\\nRETURN port.port"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount of filings where the beneficiary entity is located in 'AFG'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nWHERE e.country = 'AFG'\\nWITH avg(f.amount) AS average_amount\\nRETURN average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal where name is Commun.Math.Phys, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Journal{name:'Commun.Math.Phys'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 directors who have directed both a comedy and a drama."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: 'Comedy'}), (d)-[:DIRECTED]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: 'Drama'})\\nRETURN d.name AS director\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"How many movies has mel gibson starred in?\""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Mel Gibson\"})-[:ACTED_IN]->(m:Movie)\\nRETURN COUNT(m) AS MoviesStarredIn"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 questions by the number of times they have been favorited."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with a title that contains the word \"Speed\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title CONTAINS 'Speed'\\nWITH collect(m) AS speedMovies\\nUNWIND speedMovies AS movie\\nMATCH (p:Person)-[r:REVIEWED]->(movie)\\nWITH avg(r.rating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets that include a link to 'https://twitter.com' and were favorited more than 100 times."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE l.url STARTS WITH 'https://twitter.com' AND t.favorites > 100\\nRETURN t.text, t.favorites\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the average score of people who graduated from Stanford with a master's degree"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(e.university) CONTAINS 'stanford' AND toLower(e.degree) CONTAINS 'master'\\nRETURN AVG(toFloat(e.score))"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all users who have written reviews for businesses with an average star rating higher than 4."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(review:Review)\\nWITH b, avg(review.stars) AS averageRating\\nWHERE averageRating > 4\\nWITH b\\nMATCH (b)<-[:REVIEWS]-(review:Review)<-[:WROTE]-(u:User)\\nRETURN DISTINCT u.name AS userName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where author_id is befdd60b44b9cd4d5ffc084ce31d92d4 and Report, with report_id equal 45009bf7f2e3f4f275de6d92deab7b27, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{author_id:'befdd60b44b9cd4d5ffc084ce31d92d4'})-[*]-(e:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the most VIP users who also have more than 5000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE u.followers > 5000\\nWITH s, count(u) AS vipCount\\nORDER BY vipCount DESC\\nLIMIT 3\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find businesses in 'Missoula' with reviews dated after 2017-01-01."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Missoula'})-[:REVIEWS]->(r:Review)\\nWHERE r.date > date('2017-01-01')\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Keyword with key_id equal to 72e4f3fc2930bd3a0a7730a664d069d6!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have written a review for businesses located in 'CA'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.state = 'CA'\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the characters who have a degree greater than 50?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 50\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Report where report_no is PAM-780 and traversing through Article with article_id 1015!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'PAM-780'})-[*]->(d:Article{article_id:'1015'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many reviews does each user have?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS UserName, count(r) AS ReviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 5 filings with the largest amount of money transferred."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions asked by users with a reputation less than 100 and a display name that starts with 'A'."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.reputation < 100 AND u.display_name STARTS WITH 'A'\\nMATCH (u)-[:ASKED]->(q:Question)\\nRETURN q.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Constructive Approximation and Author, for which first_name is Maciej?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Constructive Approximation'}), (b:Author{first_name:'Maciej'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the comments of the Article that is not related to the Author with the author_id a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {author_id: 'a7193c11b0713ccfbb34c90cf18d3e5f'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories where category_id is 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = '978aee6db23fc939cec71ac05eb15b7a'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all Officers with a %country% entity"}, {"role": "assistant", "content": "MATCH (n:Officer)-[r:officer_of]->(m:Entity)\\nWHERE toLower(m.countries) CONTAINS toLower('%country%')\\nRETURN n, r, m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where key_id is d2d74b47b149d8090871a2f33e80809b and Journal, for which journal_id is ebe5bed51965553359ee9f13db0293e1?"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'}), (b:Journal{journal_id:'ebe5bed51965553359ee9f13db0293e1'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 products with the highest units on order in the 'Produce' category."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Produce'})\\nWHERE p.unitsOnOrder IS NOT NULL\\nRETURN p.productName, p.unitsOnOrder\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which article_id is 1063!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id:'1063'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters are connected by INTERACTS1 with a weight less than 10?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1]->(c2:Character)\\nWHERE r.weight < 10\\nRETURN c1.name AS Character1, c2.name AS Character2, r.weight AS Weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic for which cluster is 9, and what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.cluster = '9'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the abstract and the title for those Article where abstract starts with !"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract STARTS WITH ' '\\nRETURN n.abstract AS abstract, n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2021-02-09 and the year of the update_date is 2016!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2021-02-09' AND date(n.update_date).year = 2016\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Coach\": {\n \"properties\": {\n \"Coach_name\": \"STRING\",\n \"Rank\": \"INTEGER\",\n \"Coach_ID\": \"INTEGER\",\n \"Gender\": \"STRING\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Votes\": \"INTEGER\",\n \"Rank\": \"STRING\",\n \"Occupation\": \"STRING\",\n \"Gender\": \"STRING\",\n \"Player_name\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Sponsor_name\": \"STRING\",\n \"Residence\": \"STRING\"\n }\n },\n \"MatchResult\": {\n \"properties\": {\n \"Big_Silver\": \"INTEGER\",\n \"Bronze\": \"INTEGER\",\n \"Small_Silver\": \"INTEGER\",\n \"Rank\": \"INTEGER\",\n \"Gold\": \"INTEGER\",\n \"Points\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"Club_name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n }\n ],\n \"relationshipProperties\": {\n \"COACHES\": {\n \"Starting_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "How many coaches does each club has? List the club id, name and the number of coaches."}, {"role": "assistant", "content": "MATCH (club:Club)\\nWITH club\\nOPTIONAL MATCH (club)<-[:ASSOCIATED_WITH]-(coach:Coach)\\nWITH club.Club_ID as clubId, collect(coach.Coach_name) as coaches, count(coach) as coachCount\\nRETURN clubId, coaches, coachCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Article where comments is 20 pages, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'20 pages'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wedding\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Female_ID\": \"INTEGER\",\n \"Male_ID\": \"INTEGER\",\n \"Church_ID\": \"INTEGER\"\n }\n },\n \"Church\": {\n \"properties\": {\n \"Organized_by\": \"STRING\",\n \"Name\": \"STRING\",\n \"Open_Date\": \"INTEGER\",\n \"Church_ID\": \"INTEGER\",\n \"Continuation_of\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Is_Male\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Wedding\",\n \"type\": \"INVOLVES\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Wedding\",\n \"type\": \"HELD_AT\",\n \"to\": \"Church\"\n },\n {\n \"from\": \"Wedding\",\n \"type\": \"HELD_AT\",\n \"to\": \"Church\"\n },\n {\n \"from\": \"Wedding\",\n \"type\": \"INVOLVES\",\n \"to\": \"Person\"\n }\n ]\n}"}, {"role": "user", "content": "Show the organizer and name for churches that opened between 1830 and 1840."}, {"role": "assistant", "content": "MATCH (c:Church)\\nWHERE c.Open_Date >= 1830 AND c.Open_Date <= 1840\\nRETURN c.Organized_by, c.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report where report_id contains 42a4c!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id CONTAINS '42a4c'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Geometrical Tools for Quantum Euclidean Spaces and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Geometrical Tools for Quantum Euclidean Spaces'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have been released in the most number of countries?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.countries IS NOT NULL\\nRETURN m.title, size(m.countries) AS numCountries\\nORDER BY numCountries DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 11 or cluster is less than 4!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 11 OR n.cluster < 4\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the category_id for Categories combined with the name for DOI, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.category_id AS Records\\nUNION\\nMATCH (m:DOI)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have asked more than one question?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, count(q) AS questionsAsked\\nWHERE questionsAsked > 1\\nRETURN count(u)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 users who rated the adult film titled 'Standoff'."}, {"role": "assistant", "content": "MATCH (a:Adult {title: 'Standoff'})<-[:RATED]-(u:User)\\nRETURN u.id\\nORDER BY u.id\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the lowest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.budget\\nORDER BY m.budget ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Journal combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the author_id for Author that is linked through a WRITTEN_BY relationship with the Article where article_id is 1008!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.article_id='1008'\\nRETURN m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a last_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has abstract We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products with the highest discount in orders."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH p.productName AS productName, r.discount AS discount\\nORDER BY discount DESC\\nLIMIT 3\\nRETURN productName, discount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies produced by someone born before 1960?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE p.born < 1960\\nRETURN m\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Appellation\": {\n \"properties\": {\n \"County\": \"STRING\",\n \"isAVA\": \"STRING\",\n \"State\": \"STRING\",\n \"Appelation\": \"STRING\",\n \"Area\": \"STRING\",\n \"No\": \"INTEGER\"\n }\n },\n \"Grape\": {\n \"properties\": {\n \"ID\": \"INTEGER\",\n \"Grape\": \"STRING\",\n \"Color\": \"STRING\"\n }\n },\n \"Wine\": {\n \"properties\": {\n \"Cases\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"Year\": \"INTEGER\",\n \"State\": \"STRING\",\n \"Drink\": \"STRING\",\n \"Appelation\": \"STRING\",\n \"Winery\": \"STRING\",\n \"Price\": \"INTEGER\",\n \"No\": \"INTEGER\",\n \"Score\": \"INTEGER\",\n \"Grape\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_IN\",\n \"to\": \"Appellation\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_FROM\",\n \"to\": \"Grape\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_FROM\",\n \"to\": \"Grape\"\n },\n {\n \"from\": \"Wine\",\n \"type\": \"PRODUCED_IN\",\n \"to\": \"Appellation\"\n }\n ]\n}"}, {"role": "user", "content": "What are the areas and counties for all appelations?"}, {"role": "assistant", "content": "MATCH (a:Appellation)\\nRETURN a.Area, a.County"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Article in the graph!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 beneficiary banks based on the number of different originator banks they have interacted with in filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(b:Entity), (f)-[:ORIGINATOR]->(o:Entity)\\nWITH b.name AS beneficiary_bank, o.name AS originator_bank\\nORDER BY beneficiary_bank\\nWITH beneficiary_bank, collect(DISTINCT originator_bank) AS originator_banks\\nRETURN beneficiary_bank, size(originator_banks) AS num_originator_banks\\nORDER BY num_originator_banks DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 4 or cluster is less than 2!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 4 OR n.cluster < 2\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 entities based on the total amount of their filings where the beneficiary bank's country is 'Singapore'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank_country = 'Singapore'\\nWITH e, SUM(f.amount) AS totalAmount\\nORDER BY totalAmount DESC\\nLIMIT 5\\nRETURN e.name AS entityName, totalAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 most stocked products in the 'Dairy Products' category."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN p.productName, p.unitsInStock\\nORDER BY p.unitsInStock DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Article with title equal to Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.title = 'Chow groups of weighted hypersurfaces'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the top 5 filings with beneficiary banks located in 'Singapore' and amounts less than 300000."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.name = 'Singapore' AND f.amount < 300000\\nRETURN f\\nORDER BY f.amount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Keyword for which key_id is c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'c95a6da6fb331984f198feec0b0bb1a5'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the roles of actors in 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie {title: 'Speed Racer'})\\nRETURN p.name AS actor, r.roles AS roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the businesses on 'Front St' and their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address CONTAINS 'Front St'\\nRETURN b.name AS BusinessName, b.address AS Address, c.name AS Category"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Topic for which label=Riemannian geometry_4!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from DOI where doi_id is not 46c2037fac5c38acd01bee5dde73c8e0!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id <> '46c2037fac5c38acd01bee5dde73c8e0'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1071 or article_id is less than 1006!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 OR n.article_id < 1006\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses have been reviewed by all users?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWITH collect(u) AS allUsers\\nMATCH (b:Business)\\nWHERE all(allUser IN allUsers\\nWHERE exists { (allUser)-[:WROTE]->(:Review)-[:REVIEWS]->(b) })\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 entities based in 'Singapore' that have filed something concerning a beneficiary in 'Malaysia'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:CONCERNS]->(beneficiary:Entity)\\nWHERE e.country = 'Singapore' AND beneficiary.country = 'Malaysia'\\nRETURN e\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Keyword for which name=uncountably many different asymptotic growth rates!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'uncountably many different asymptotic growth rates'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which three entities have the most filings ending in the year 2015?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.end_date_format STARTS WITH \"2015\"\\nRETURN e.name AS entity_name, COUNT(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Categories for which category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Categories where category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where author_id is 700c655b31f9b9275ba10a9875c15332 and DOI, for which doi_id is ee4af8f04acefe1036a78a4436691f55?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'}), (b:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where last_name is Neeman and traversing through Article with abstract A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Neeman'})-[*]->(d:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 countries with the lowest total filing amount."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c, sum(f.amount) AS totalAmount\\nORDER BY totalAmount ASC\\nLIMIT 5\\nRETURN c.code, c.name, totalAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the sources used by tweets that mention 'Neo4j'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})<-[:MENTIONS]-(t:Tweet)-[:USING]->(s:Source)\\nRETURN DISTINCT s.name AS source_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Show 3 users who have a size greater than 2 and a color of '#FF7F50'."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.size > 2 AND u.color = '#FF7F50'\\nRETURN u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have the highest number of filings where the beneficiary bank's country is 'Germany'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.beneficiary_bank_country = 'Germany'\\nRETURN c.name, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Show the musical nominee with award \"Bob Fosse\" or \"Cleavant Derricks\"."}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWHERE musical.Award = 'Tony Award' OR musical.Award = 'Cleavant Derricks'\\nRETURN musical.Nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 users who have rated the most movies."}, {"role": "assistant", "content": "MATCH (u:User)-[:RATED]->(m:Movie)\\nWITH u, count(m) AS numberOfRatings\\nORDER BY numberOfRatings DESC\\nRETURN u.userId, numberOfRatings\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "In which buildings are there at least ten professors?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Rank = \"Professor\"\\nWITH f.Building AS building, count(f) AS count\\nWHERE count >= 10\\nRETURN building"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' has amplified?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:AMPLIFIES]->(user:User)\\nRETURN user.name, user.screen_name, user.followers\\nORDER BY user.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find all tweets by 'Neo4j' that were posted on or after '2021-01-01'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)\\nWHERE t.created_at >= datetime('2021-01-01T00:00:00Z')\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 users that 'neo4j' has retweeted?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)<-[:POSTS]-(retweetedUser:User)\\nRETURN retweetedUser.screen_name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Journal for which name is Izv. Math!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Izv. Math'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with a tagline containing the word 'adventure'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'adventure'\\nRETURN m\\nORDER BY m.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average score for answered questions?"}, {"role": "assistant", "content": "MATCH (q:Question) \\nWHERE q.answered = true\\nWITH avg(q.score) AS average_score\\nRETURN average_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Report for which report_no is ITF-99-42, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'ITF-99-42'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the last_name for Author that is linked through a WRITTEN_BY relationship with the Article where title is $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.title='$A_{\\infty}$-structures on an elliptic curve'\\nRETURN m.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all officers who are also intermediaries and have associated entities with 'Active' status, as well as their relationships."}, {"role": "assistant", "content": "MATCH (o:Officer)-[r1:officer_of]->(e:Entity)-[r2:intermediary_of]->(i:Intermediary)\\nWHERE toLower(o.status) = 'actif' AND (o)-[:intermediary_of]->()\\nRETURN o, r1, e, r2, i"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which intermediaries have a source ID of 'Panama Papers'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {sourceID: 'Panama Papers'})\\nRETURN i"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 movies produced by 'Lana Wachowski'."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Lana Wachowski'})-[:PRODUCED]->(m:Movie)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies have been written by people born after 1975 and have a rating lower than 75?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)\\nWHERE p.born > 1975\\nWITH DISTINCT m\\nMATCH (m)<-[r:REVIEWED]-()\\nWHERE r.rating < 75\\nRETURN count(DISTINCT m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many Entities are registered with the service provider \"Appleby\"?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.service_provider = 'Appleby'\\nRETURN count(e)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the oldest actor in the database who is still alive?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.died IS NULL\\nRETURN a.name, a.born\\nORDER BY a.born ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters are connected by INTERACTS1 with a weight greater than 200?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS1]->(c2:Character)\\nWHERE r.weight > 200\\nRETURN c1.name AS Character1, c2.name AS Character2, r.weight AS Weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the article_id of the Article that are linked via PUBLISHED_IN to more than three Journal, and list Journal journal_id and Journal counts, ordering by Journal count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nWITH n.article_id AS article_id, count(m) AS count, COLLECT(m.journal_id) as journal_id\\nWHERE count > 3\\nRETURN article_id, count, journal_id\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 actors who have acted in movies directed by 'Anthony Stacchi'."}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Anthony Stacchi'})-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(a:Actor)\\nRETURN a.name, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories where category_id contains b1d13!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id CONTAINS 'b1d13'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "How many suppliers are there for each category of product?"}, {"role": "assistant", "content": "MATCH (c:Category)<-[:PART_OF]-(p:Product)<-[:SUPPLIES]-(supplier:Supplier)\\nWITH c, count(DISTINCT supplier) AS supplierCount\\nRETURN c.categoryName, supplierCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory and Article, with title equal Hyper-K{\\\"a}hler Hierarchies and their twistor theory, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'Hyper-K{\"a}hler Hierarchies and their twistor theory'})-[*]-(e:Article{title:'Hyper-K{\"a}hler Hierarchies and their twistor theory'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 tweets replied to by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:REPLY_TO]->(repliedTweet:Tweet)\\nRETURN repliedTweet\\nORDER BY repliedTweet.created_at ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have Tom Hanks listed both in cast and crew?"}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Tom Hanks'})-[:CAST_FOR]->(m:Movie)<-[:CREW_FOR]-(p)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify characters with a fastrf_embedding first element greater than 0.5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[0] > 0.5\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many faculty do we have?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nRETURN COUNT(f)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the cluster of the Topic and the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nMATCH (m:Article)\\nRETURN n.cluster, m.comments\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find all characters that have interacted in 'book 2'."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS2]->(c2:Character)\\nRETURN c1, c2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author for which affiliation is unspecified, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.affiliation = 'unspecified'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the titles of the movies with a revenue greater than their budget by a factor of 10."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 10 * m.budget\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 persons who acted in the most movies with a tagline containing 'journey'."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.tagline CONTAINS 'journey'\\nWITH p, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3\\nRETURN p.name AS personName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between UpdateDate where update_date is 2021-02-09 and Article, with article_id equal 1008, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:UpdateDate{update_date:'2021-02-09'})-[*]-(e:Article{article_id:'1008'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' follows and who also follow 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(u:User)-[:FOLLOWS]->(me)\\nRETURN u.screen_name AS user, u.followers AS followers\\nORDER BY followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"How many movies have Tom Hanks acted in from 1980 to 2000? \""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Tom Hanks\"})-[:ACTED_IN]->(m:Movie)\\nWHERE m.released >= 1980 AND m.released <= 2000\\nRETURN COUNT(m) AS MoviesCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which customers have placed orders that required shipping via method '2'?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE o.shipVia = '2'\\nRETURN DISTINCT c.companyName AS customerName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 adult films that have been produced in the 'United States of America'."}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'United States of America'})\\nRETURN a\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Topic where description or description contains The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description CONTAINS 'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Topic)\\nWHERE m.description CONTAINS 'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the business with the highest number of reviews in the 'Beer' category."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Beer'})\\nWITH b\\nMATCH (b)<-[:REVIEWS]-(review:Review)\\nWITH b, count(review) AS reviewCount\\nORDER BY reviewCount DESC\\nRETURN b.name AS businessName, reviewCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the addresses of businesses reviewed by user 'Will'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.address"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"OSM\",\n \"type\": \"BBOX\",\n \"to\": \"Bounds\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMNode\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMWay\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMWay\",\n \"type\": \"FIRST_NODE\",\n \"to\": \"OSMWayNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NEXT\",\n \"to\": \"OSMWayNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"OSMWayNode\",\n \"type\": \"NODE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMWay\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"OSMRelation\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"OSMRelation\",\n \"type\": \"MEMBER\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"Intersection\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"Routable\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"OSMNode\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"Intersection\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"Routable\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ROUTE\",\n \"to\": \"PointOfInterest\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"ASSOCIATED\",\n \"to\": \"OSMTags\"\n },\n {\n \"from\": \"PointOfInterest\",\n \"type\": \"TAGS\",\n \"to\": \"OSMTags\"\n }\n ]\n}"}, {"role": "user", "content": "\"What's the walking distance for the shortest path between Zoo School and Dancing Crane Cafe?\""}, {"role": "assistant", "content": "STRING, tactile_paving: STRING, kerb: STRING, recycling_type: STRING, capacity: STRING, payment:credit_cards: STRING, ref: STRING, artist_name:wikipedia: STRING, artwork_subject: STRING, fire_hydrant:type: STRING, water_source: STRING, lit: STRING, denotation: STRING, leaf_cycle: STRING, leaf_type: STRING, alt_name: STRING, bicycle: STRING, hgv: STRING, oneway: STRING, tiger:cfcc: STRING, tiger:county: STRING, tiger:name_base: STRING, surface: STRING, motor_vehicle: STRING, tiger:name_type: STRING, lanes:backward: STRING, lanes:forward: STRING, name_1: STRING, tiger:name_base_1: STRING, tiger:name_direction_prefix_1: STRING, tiger:name_direction_suffix: STRING, tiger:name_type_1: STRING, tiger:zip_right: STRING, tiger:zip_right_1: STRING, tiger:name_direction_prefix: STRING, tiger:reviewed: STRING, tiger:zip_left: STRING, destination: STRING, lanes: STRING, maxheight: STRING, maxspeed: STRING, turn:lanes: STRING, maxheight:backward: STRING, maxheight:forward: STRING, tiger:name_base_3: STRING, tiger:name_base_4: STRING, water: STRING, access:conditional: STRING, incline: STRING, landuse: STRING, horse: STRING, ski: STRING, snowmobile: STRING, electrified: STRING, frequency: STRING, gauge: STRING, railway:preferred_direction: STRING, railway:track_ref: STRING, tunnel: STRING, voltage: STRING, bridge: STRING, motorcar: STRING, name:ru: STRING, sidewalk: STRING, footway: STRING, name:ja: STRING, name:ko: STRING, addr:city: STRING, addr:state: STRING, loc_name: STRING, cycleway:left: STRING, cycleway:right: STRING, junction: STRING, parking:lane:left: STRING, height: STRING, building:material: STRING, building:part: STRING, roof:material: STRING, roof:shape: STRING, building: STRING, nycdoitt:bin: STRING, addr:housenumber: STRING, addr:postcode: STRING, addr:street: STRING, building:levels: STRING, roof:colour: STRING, area: STRING, cables: STRING, circuits: STRING, location: STRING, power: STRING, service: STRING, fixme: STRING, waterway: STRING, route: STRING, indoor: STRING, place: STRING, min_height: STRING, name:kn: STRING, maxspeed:advisory:backward: STRING, seats: STRING, from: STRING, interval: STRING, interval:note: STRING, interval:source: STRING, opening_hours:note: STRING, owner: STRING, public_transport:version: STRING, to: STRING, type: STRING, interval:conditional: STRING, cycle_network: STRING, route_master: STRING, admin_level: STRING, boundary: STRING, intermittent: STRING, alt_name:ru: STRING, population: STRING, via: STRING, old_railway_operator: STRING}\nOSMWay {way_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, oneway: STRING, highway: STRING, name: STRING}\nOSMRelation {relation_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, name: STRING}\nIntersection {node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT, name: STRING, type: STRING}\nRoutable {node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT}\nPointOfInterest {name: STRING, node_osm_id: INTEGER, version: INTEGER, timestamp: LOCAL_DATE_TIME, lat: FLOAT, lon: FLOAT, location: POINT, type: STRING}\nRelationship properties:\nNEXT {distance: FLOAT}\nMEMBER {role: STRING}\nROUTE {length: INTEGER, count: INTEGER, distance: FLOAT, toRel: INTEGER, fromRel: INTEGER}\nThe relationships:\n(:OSM)-[:BBOX]->(:Bounds)\n(:OSMNode)-[:ROUTE]->(:OSMNode)\n(:OSMNode)-[:ROUTE]->(:Intersection)\n(:OSMNode)-[:ROUTE]->(:PointOfInterest)\n(:OSMNode)-[:TAGS]->(:OSMTags)\n(:OSMNode)-[:ASSOCIATED]->(:OSMTags)\n(:OSMWay)-[:TAGS]->(:OSMTags)\n(:OSMWay)-[:FIRST_NODE]->(:OSMWayNode)\n(:OSMWayNode)-[:NEXT]->(:OSMWayNode)\n(:OSMWayNode)-[:NODE]->(:OSMNode)\n(:OSMWayNode)-[:NODE]->(:Intersection)\n(:OSMWayNode)-[:NODE]->(:PointOfInterest)\n(:OSMRelation)-[:TAGS]->(:OSMTags)\n(:OSMRelation)-[:MEMBER]->(:OSMWay)\n(:OSMRelation)-[:MEMBER]->(:OSMNode)\n(:OSMRelation)-[:MEMBER]->(:OSMRelation)\n(:OSMRelation)-[:MEMBER]->(:PointOfInterest)\n(:OSMRelation)-[:MEMBER]->(:Intersection)\n(:Intersection)-[:ROUTE]->(:OSMNode)\n(:Intersection)-[:ROUTE]->(:Intersection)\n(:Intersection)-[:ROUTE]->(:Routable)\n(:Intersection)-[:ROUTE]->(:PointOfInterest)\n(:Intersection)-[:TAGS]->(:OSMTags)\n(:Intersection)-[:ASSOCIATED]->(:OSMTags)\n(:Routable)-[:ROUTE]->(:OSMNode)\n(:Routable)-[:ROUTE]->(:Intersection)\n(:Routable)-[:ROUTE]->(:Routable)\n(:PointOfInterest)-[:ROUTE]->(:OSMNode)\n(:PointOfInterest)-[:ROUTE]->(:Intersection)\n(:PointOfInterest)-[:ROUTE]->(:Routable)\n(:PointOfInterest)-[:ROUTE]->(:PointOfInterest)\n(:PointOfInterest)-[:ASSOCIATED]->(:OSMTags)\n(:PointOfInterest)-[:TAGS]->(:OSMTags)\nQ: \"What's the walking distance for the shortest path between Zoo School and Dancing Crane Cafe?\"\nA: MATCH (zoo:PointOfInterest {name: \"Zoo School\"}), (cafe:PointOfInterest {name: \"Dancing Crane Cafe\"}), p = shortestPath((zoo)-[:ROUTE*..15]-(cafe))\\nWITH [r IN relationships(p) | r.distance] AS distances\\nRETURN reduce(totalDistance = 0, d IN distances | totalDistance + d) AS walkingDistance"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Find Topic that has a description which begins with t, and is linked to Keyword via HAS_TOPIC relationship, where Keyword has name gain!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name: 'gain'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.description STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movie with the lowest rating that has the word \"redeemed\" in its review summary."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE r.summary CONTAINS 'redeemed'\\nWITH m, r.rating AS rating\\nORDER BY rating ASC\\nLIMIT 1\\nRETURN m.title, rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the update_date of the UpdateDate that is not related to the Topic with the description Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts.!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Topic {description: 'Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts.'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the top 3 people with the highest number of skills who have worked at Google and have a Master's degree"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_SKILL]->(s:Skill), (p)-[:HAS_POSITION]->(pos:Position)-[:AT_COMPANY]->(c:Company), (p)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(c.name) CONTAINS 'google' AND toLower(e.degree) CONTAINS 'master'\\nRETURN p, COUNT(s) AS skill_count\\nORDER BY skill_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 directors who have directed movies that won an academy award?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.plot CONTAINS 'Academy Award'\\nWITH d, count(m) AS awardCount\\nORDER BY awardCount DESC\\nLIMIT 5\\nRETURN d.name AS director, awardCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 5 moderators in streams that have changed games at least twice?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, COUNT(g) AS gameCount\\nWHERE gameCount >= 3\\nMATCH (s)-[:MODERATOR]->(u:User)\\nRETURN u.name AS moderatorName\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the first 3 languages used by streams with a description containing 'strategy'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE s.description CONTAINS 'strategy'\\nRETURN DISTINCT l.name\\nORDER BY l.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been associated with the keyword 'high school' and have an average vote above 6?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE k.name = 'high school' AND m.average_vote > 6\\nRETURN m.title, m.average_vote"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 streams with the highest total view count and are associated with the 'ESO Stream Team'?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team {name: 'ESO Stream Team'})\\nWHERE s.total_view_count IS NOT NULL\\nRETURN s\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"cust_name\": \"STRING\",\n \"acc_bal\": \"INTEGER\",\n \"no_of_loans\": \"INTEGER\",\n \"acc_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"credit_score\": \"INTEGER\"\n }\n },\n \"Loan\": {\n \"properties\": {\n \"amount\": \"INTEGER\",\n \"loan_type\": \"STRING\",\n \"cust_ID\": \"STRING\",\n \"branch_ID\": \"STRING\",\n \"loan_ID\": \"STRING\"\n }\n },\n \"Bank\": {\n \"properties\": {\n \"bname\": \"STRING\",\n \"branch_ID\": \"INTEGER\",\n \"state\": \"STRING\",\n \"no_of_customers\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"HAS_ACCOUNT\",\n \"to\": \"Bank\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of customers across banks in the state of Utah?"}, {"role": "assistant", "content": "MATCH (b:Bank)\\nWHERE b.state = 'Utah'\\nWITH avg(b.no_of_Customers) as average\\nRETURN average"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 people by the number of movies they have directed."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, count(m) AS num_directed\\nORDER BY num_directed DESC\\nLIMIT 5\\nRETURN p.name AS director, num_directed"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of entities with a service provider of 'Mossack Fonseca' and a jurisdiction of 'SAM'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.service_provider = 'Mossack Fonseca' AND e.jurisdiction = 'SAM'\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Display the top 5 movies with the highest budget to revenue ratio."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 0 AND m.revenue > 0\\nWITH m, (m.budget / m.revenue) AS budget_to_revenue_ratio\\nRETURN m.title, m.budget, m.revenue, budget_to_revenue_ratio\\nORDER BY budget_to_revenue_ratio DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all the products ordered in the 'Confections' category."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Confections'})\\nWHERE EXISTS { (p)<-[:ORDERS]-(:Order) }\\nRETURN p.productName AS ProductName, p.productID AS ProductID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average born year of people who have directed a movie with a rating higher than 90?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nMATCH (p)-[:REVIEWED]->(r:Movie)\\nWHERE r.rating > 90\\nWITH avg(p.born) AS averageBornYear\\nRETURN averageBornYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"breeds\": {\n \"properties\": {\n \"breed_code\": \"STRING\",\n \"breed_name\": \"STRING\"\n }\n },\n \"charges\": {\n \"properties\": {\n \"charge_id\": \"STRING\",\n \"charge_type\": \"STRING\",\n \"charge_amount\": \"STRING\"\n }\n },\n \"sizes\": {\n \"properties\": {\n \"size_code\": \"STRING\",\n \"size_description\": \"STRING\"\n }\n },\n \"treatment_types\": {\n \"properties\": {\n \"treatment_type_code\": \"STRING\",\n \"treatment_type_description\": \"STRING\"\n }\n },\n \"owners\": {\n \"properties\": {\n \"owner_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"dogs\": {\n \"properties\": {\n \"dog_id\": \"STRING\",\n \"owner_id\": \"STRING\",\n \"abandoned_yn\": \"STRING\",\n \"breed_code\": \"STRING\",\n \"size_code\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"gender\": \"STRING\",\n \"weight\": \"STRING\",\n \"date_arrived\": \"STRING\",\n \"date_adopted\": \"STRING\",\n \"date_departed\": \"STRING\"\n }\n },\n \"professionals\": {\n \"properties\": {\n \"professional_id\": \"STRING\",\n \"role_code\": \"STRING\",\n \"first_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"last_name\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"treatments\": {\n \"properties\": {\n \"treatment_id\": \"STRING\",\n \"dog_id\": \"STRING\",\n \"professional_id\": \"STRING\",\n \"treatment_type_code\": \"STRING\",\n \"date_of_treatment\": \"STRING\",\n \"cost_of_treatment\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How much does the most recent treatment cost?"}, {"role": "assistant", "content": "MATCH (treatments:Treatments)\\nRETURN treatments.cost_of_treatment\\nORDER BY treatments.date_of_treatment DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"gender_mf\": \"STRING\",\n \"coupon_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"good_or_bad_customer\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_last_hire\": \"STRING\"\n }\n },\n \"DiscountCoupon\": {\n \"properties\": {\n \"coupon_id\": \"INTEGER\",\n \"coupon_amount\": \"INTEGER\",\n \"date_issued\": \"STRING\"\n }\n },\n \"ViewProductAvailability\": {\n \"properties\": {\n \"booking_id\": \"INTEGER\",\n \"available_yn\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n },\n \"Booking\": {\n \"properties\": {\n \"amount_payable\": \"FLOAT\",\n \"booking_end_date\": \"STRING\",\n \"count_hired\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"booking_start_date\": \"STRING\",\n \"amount_of_discount\": \"FLOAT\",\n \"amount_outstanding\": \"FLOAT\",\n \"amount_of_refund\": \"FLOAT\",\n \"customer_id\": \"INTEGER\",\n \"returned_damaged_yn\": \"STRING\"\n }\n },\n \"ProductsForHire\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\",\n \"product_description\": \"STRING\",\n \"daily_hire_cost\": \"FLOAT\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount_paid\": \"FLOAT\",\n \"payment_type_code\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"amount_paid_in_full_yn\": \"STRING\",\n \"payment_id\": \"INTEGER\",\n \"amount_due\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n }\n ],\n \"relationshipProperties\": {\n \"RENTED_BY\": {\n \"returned_yn\": \"STRING\",\n \"booked_amount\": \"FLOAT\",\n \"returned_late_yn\": \"STRING\",\n \"booked_count\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Are the customers holding coupons with amount 500 bad or good?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:USES]->(d:DiscountCoupon)\\nWHERE d.coupon_amount = 500\\nRETURN c.good_or_bad_customer"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 users who have written a review for a business in the category 'Car Wash'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Car Wash'})\\nMATCH (r:Review)-[:REVIEWS]->(b)\\nMATCH (u:User)-[:WROTE]->(r)\\nRETURN u.name AS userName\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have directed more than three movies?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, COUNT(m) AS movieCount\\nWHERE movieCount > 3\\nRETURN d.name AS DirectorName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Scientist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Hours\": \"INTEGER\",\n \"Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of projects that require between 100 and 300 hours?"}, {"role": "assistant", "content": "MATCH (p:Project)\\nWHERE p.Hours >= 100 AND p.Hours <= 300\\nRETURN p.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Categories for which specifications=alg-geom!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'alg-geom'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 directors with the most movies that have an imdbRating of 6 or higher."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.imdbRating >= 6\\nWITH d, count(m) AS numMovies\\nORDER BY numMovies DESC\\nLIMIT 5\\nRETURN d.name AS director, numMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 businesses have the lowest average review score?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, AVG(r.stars) AS avgRating\\nORDER BY avgRating ASC\\nLIMIT 3\\nRETURN b.name AS businessName, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total revenue of movies released by 20th Century Fox?"}, {"role": "assistant", "content": "MATCH (m:Movie {productionCompany: \"20th Century Fox\"})\\nWITH sum(m.revenue) AS totalRevenue\\nRETURN totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where title is Riemannian geometry of quantum groups and finite groups with\n nonuniversal differentials, through Journal via PUBLISHED_IN with meta 225?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Riemannian geometry of quantum groups and finite groups with nonuniversal differentials'})-[:PUBLISHED_IN {meta: '225'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Categories that has category_id 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH path=(:Categories {category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Article for which comments is 19 pages, AMSLatex, references added!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'19 pages, AMSLatex, references added'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are characters that interact in book 45 with a weight of exactly 96?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[i:INTERACTS45]->(c2:Character)\\nWHERE i.weight = 96\\nRETURN c1.name AS character1, c2.name AS character2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the entities that have a valid_until date through 2015 and are associated with the Panama Papers."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.valid_until = \"The Panama Papers data is current through 2015\" AND e.sourceID = \"Panama Papers\"\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the author_id from Author where either author_id is a7193c11b0713ccfbb34c90cf18d3e5f or author_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = 'a7193c11b0713ccfbb34c90cf18d3e5f' OR n.author_id IS NOT NULL\\nRETURN DISTINCT n.author_id AS author_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "\"Who is the highest receiver of transactions made by Deutsche Bank AG?\""}, {"role": "assistant", "content": "MATCH (db:Entity {name: \"Deutsche Bank AG\"})-[:FILED]->(f:Filing)-[:BENEFITS]->(e:Entity)\\nRETURN e.name AS Receiver, SUM(f.amount) AS TotalAmount\\nORDER BY TotalAmount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average vote for movies in the \"Animation\" genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Animation'})\\nRETURN avg(m.average_vote)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where comments is 22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor\n revisions. This version should closely match the published version and traversing through Article with article_id 1071!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor revisions. This version should closely match the published version'})-[*]->(d:Article{article_id:'1071'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 countries by the number of genres produced there?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:PRODUCED_IN_COUNTRY]-(m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH c, count(DISTINCT g) AS genreCount\\nRETURN c.name AS country, genreCount\\nORDER BY genreCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_type_code\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"address_line_1\": \"STRING\",\n \"town_city\": \"STRING\",\n \"address_line_2\": \"STRING\",\n \"state\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"date_product_first_available\": \"STRING\",\n \"date_product_discontinued\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"product_description\": \"STRING\"\n }\n },\n \"Complaint\": {\n \"properties\": {\n \"date_complaint_raised\": \"STRING\",\n \"complaint_outcome_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"complaint_id\": \"INTEGER\",\n \"complaint_type_code\": \"STRING\",\n \"complaint_status_code\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"date_complaint_closed\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n }\n ]\n}"}, {"role": "user", "content": "Which complaint status has more than 3 records on file?"}, {"role": "assistant", "content": "MATCH (c:Complaint)\\nWITH c.complaint_status_code AS complaint_status_code, COUNT(*) AS count\\nWHERE count > 3\\nRETURN complaint_status_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the most production credits in movies released in the 1990s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE m.released >= 1990 AND m.released < 2000\\nRETURN p.name AS producer, count(m) AS num_movies_produced\\nORDER BY num_movies_produced DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 23 pages, 1 figure and Keyword, with key_id equal 72e4f3fc2930bd3a0a7730a664d069d6, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'23 pages, 1 figure'})-[*]-(e:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {}\n },\n \"Author\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Report and Author?"}, {"role": "assistant", "content": "MATCH (a:Report)-[r]->(n), (d:Author)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has article_id 1052!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1052'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average last_name for Author that are linked to Article via WRITTEN_BY and have article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.last_name) AS avg_last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"tv_channel\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"series_name\": \"STRING\",\n \"country\": \"STRING\",\n \"language\": \"STRING\",\n \"content\": \"STRING\",\n \"pixel_aspect_ratio_par\": \"STRING\",\n \"hight_definition_tv\": \"STRING\",\n \"pay_per_view_ppv\": \"STRING\",\n \"package_option\": \"STRING\"\n }\n },\n \"tv_series\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"episode\": \"STRING\",\n \"air_date\": \"STRING\",\n \"rating\": \"STRING\",\n \"share\": \"STRING\",\n \"18_49_rating_share\": \"STRING\",\n \"viewers_m\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"channel\": \"STRING\"\n }\n },\n \"cartoon\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"title\": \"STRING\",\n \"directed_by\": \"STRING\",\n \"written_by\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the produdction code and channel of the most recent cartoon ?"}, {"role": "assistant", "content": "MATCH (cartoon:Cartoon)\\nRETURN cartoon.Production_code,cartoon.Channel\\nORDER BY cartoon.Original_air_date DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"The youngest actors that has been acting ok More than ten movies\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 10\\nRETURN p.name AS actor_name, p.born AS birth_year, movies_count\\nORDER BY p.born DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the titles of the movies released between 1990 and 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 1990 AND m.year <= 2000\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with a revenue of zero."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue = 0\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the size of the network with IP address 10.2?"}, {"role": "assistant", "content": "MATCH (n:Network {ip: '10.2'})\\nRETURN n.size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 sources most used in tweeting?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:USING]->(s:Source)\\nRETURN s.name AS source_name, COUNT(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all products with 'unitPrice' less than 5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitPrice < 5\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the last_name from Author where either last_name is Polishchuk or last_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Polishchuk' OR n.last_name IS NOT NULL\\nRETURN DISTINCT n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the most roles in movies released before 1985?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE m.released < 1985\\nWITH p, count(r) AS numRoles\\nRETURN p.name AS name, numRoles\\nORDER BY numRoles DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters with a 'degree' less than 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree < 1\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author where author_id is a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = 'a7193c11b0713ccfbb34c90cf18d3e5f'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where journal_id is 79942321e19994e38ad2e372af21c893 and Article, with abstract equal Generalizing the construction of the Maslov class for a Lagrangian embedding\nin a symplectic vector space, we prove that it is possible to give a consistent\ndefinition of this class for any Lagrangian submanifold of a Calabi-Yau\nmanifold. Moreover, we prove that this class can be represented by the\ncontraction of the Kaehler form associated to the Calabi-Yau metric, with the\nmean curvature vector field of the Lagrangian embedding. Finally, we suggest a\npossible generalization of the Maslov class for Lagrangian submanifolds of any\nsymplectic manifold, via the mean curvature representation.\n, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})-[*]-(e:Article{abstract:' Generalizing the construction of the Maslov class for a Lagrangian embedding in a symplectic vector space, we prove that it is possible to give a consistent definition of this class for any Lagrangian submanifold of a Calabi-Yau manifold. Moreover, we prove that this class can be represented by the contraction of the Kaehler form associated to the Calabi-Yau metric, with the mean curvature vector field of the Lagrangian embedding. Finally, we suggest a possible generalization of the Maslov class for Lagrangian submanifolds of any symplectic manifold, via the mean curvature representation. '}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the average hours for the students whose tryout decision is no."}, {"role": "assistant", "content": "MATCH (c:College)-[t:EDUCATES]->(p:Player)\\nWHERE t.decision = 'no'\\nRETURN AVG(p.HS)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the last_name of the Author that is not related to the Report with the report_no G&T migration 2000-1!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Report {report_no: 'G&T migration 2000-1'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDB rating of movies released in the same year as \"Open Season\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Open Season\"})\\nWITH m.year AS releaseYear\\nMATCH (movies:Movie {year: releaseYear})\\nRETURN avg(movies.imdbRating) AS averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses have reviews with stars between 4 and 5?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE r.stars >= 4 AND r.stars <= 5\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Find Topic that has a label which begins with t, and is linked to Keyword via HAS_TOPIC relationship, where Keyword has name log-balanced!"}, {"role": "assistant", "content": "MATCH (n:Keyword {name: 'log-balanced'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.label STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 hashtags used in tweets?"}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:TAGS]->(h:Hashtag)\\nRETURN h.name AS hashtag, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different product colors?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN DISTINCT p.product_color"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 oldest movies that have been rated by at least 5 different users."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, COUNT(DISTINCT u) AS userCount\\nWHERE userCount >= 5\\nRETURN m.title AS title, m.year AS year\\nORDER BY m.year ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers supply to more than one category?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, count(DISTINCT c) AS numCategories\\nWHERE numCategories > 1\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Song\": {\n \"properties\": {\n \"languages\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"song_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"releasedate\": \"STRING\",\n \"rating\": \"INTEGER\",\n \"resolution\": \"INTEGER\",\n \"genre_is\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"File\": {\n \"properties\": {\n \"duration\": \"STRING\",\n \"file_size\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"f_id\": \"INTEGER\",\n \"formats\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"g_name\": \"STRING\",\n \"most_popular_in\": \"STRING\",\n \"rating\": \"STRING\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"preferred_genre\": \"STRING\",\n \"artist_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"STORED_IN\",\n \"to\": \"File\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Song\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"File\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Artist\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Genre\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the song that was released most recently?"}, {"role": "assistant", "content": "MATCH (s:Song)\\nRETURN s.Song_name, s.releasedate\\nORDER BY s.releasedate DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the category_id from Categories where category_id is not 0131645b590b64c1a0cf13a4fceeb000!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id <> '0131645b590b64c1a0cf13a4fceeb000'\\nRETURN DISTINCT n.category_id AS category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Author for which author_id is 700c655b31f9b9275ba10a9875c15332, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "What is the document type code with most number of documents?"}, {"role": "assistant", "content": "MATCH (d:Document)\\nWITH d.Document_Type_Code AS document_type_code, COUNT(*) AS count\\nRETURN document_type_code\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name \"Meaghan\"?"}, {"role": "assistant", "content": "MATCH (t1:Account)-[:PLACED_BY]->(t2:Customer)\\nWHERE t2.customer_first_name = 'Meaghan'\\nRETURN t1.account_id, t1.date_account_opened, t1.account_name, t1.other_account_details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 users with the highest betweenness centrality."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u\\nORDER BY u.betweenness DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 questions that have received more downVotes than upVotes?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.downVotes > q.upVotes\\nRETURN q\\nORDER BY q.createdAt ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the status of entities that were incorporated on '23-MAR-2006'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date = '23-MAR-2006'\\nRETURN e.name AS entity_name, e.status AS entity_status"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of Interfaces per Router?"}, {"role": "assistant", "content": "MATCH (r:Router)-[:ROUTES]->(i:Interface)\\nWITH r, count(i) AS interfaceCount\\nWITH avg(interfaceCount) AS averageInterfaces\\nRETURN averageInterfaces"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget of movies that have 'jealousy' as a keyword?"}, {"role": "assistant", "content": "MATCH (k:Keyword {name: 'jealousy'})<-[:HAS_KEYWORD]-(m:Movie)\\nRETURN avg(m.budget)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the `shipCity` and `freight` cost for the top 3 orders with the highest `freight` cost shipped to 'France'."}, {"role": "assistant", "content": "MATCH (o:Order {shipCountry: 'France'})\\nWITH o\\nORDER BY toFloat(o.freight) DESC\\nLIMIT 3\\nRETURN o.shipCity, o.freight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where abstract is I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n and share a common property with Journal, for which name equals Math. Nachr?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[r]->(n), (d:Journal{name:'Math. Nachr'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to DOI for which doi_id is 6ecd77a291d325cb3e01160880d88c69, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the key_id for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION\\nMATCH (m:Keyword)\\nRETURN m.key_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Display all businesses reviewed by 'Will' and their locations."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName, b.address AS address, b.city AS city, b.state AS state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where comments is LaTeX2e, 36 pages ; Some misprints are corrected and share a common property with Report, for which report_no equals none provided?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'LaTeX2e, 36 pages ; Some misprints are corrected'})-[r]->(n), (d:Report{report_no:'none provided'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between DOI where name is 10.1088/0305-4470/33/25/304 and Author, with last_name equal Chakrabarti, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:DOI{name:'10.1088/0305-4470/33/25/304'})-[*]-(e:Author{last_name:'Chakrabarti'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Race\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Date\": \"STRING\",\n \"Class\": \"STRING\",\n \"Track_ID\": \"STRING\",\n \"Race_ID\": \"INTEGER\"\n }\n },\n \"Track\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year_Opened\": \"FLOAT\",\n \"Seating\": \"FLOAT\",\n \"Track_ID\": \"INTEGER\",\n \"Location\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name, location, and seating of the track that was opened in the most recent year."}, {"role": "assistant", "content": "MATCH (t:Track)\\nRETURN t.Name, t.Location, t.Seating\\nORDER BY t.Year_Opened DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many Intermediaries have an address in South Africa?"}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nWHERE i.countries = \"South Africa\"\\nRETURN count(i)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Topic where description or label contains The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description CONTAINS 'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Topic)\\nWHERE m.label CONTAINS 'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where year is 2001 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2001'}]->(m:Journal)\\nWHERE m.title < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies reviewed by the youngest reviewers."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH m, p, r\\nORDER BY p.born DESC\\nWITH m, collect(r)[0] AS review\\nRETURN m.title AS movie, review.rating AS rating\\nORDER BY rating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: 21 pages, AMS-LaTeX and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '21 pages, AMS-LaTeX'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Role\": \"STRING\",\n \"Member_ID\": \"STRING\",\n \"Nationality\": \"STRING\"\n }\n },\n \"Performance\": {\n \"properties\": {\n \"Host\": \"STRING\",\n \"Date\": \"STRING\",\n \"Location\": \"STRING\",\n \"Performance_ID\": \"FLOAT\",\n \"Attendance\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the date of the performance with the highest number of attendees?"}, {"role": "assistant", "content": "MATCH (p:Performance)\\nWITH p\\nORDER BY p.Attendance DESC\\nLIMIT 1\\nRETURN p.Date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the users who are moderators of streams with more than 1,000,000 total view count and have a chatter who also chatters on a stream with the language \"ru\" and have the language \"en\"."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(moderator:User)\\nWHERE s.total_view_count > 1000000\\nWITH s, moderator\\nMATCH (moderator)-[:CHATTER]->(chatterStream:Stream)<-[:CHATTER]-(ruChatter:User)\\nWHERE (chatterStream)-[:HAS_LANGUAGE]->(:Language {name: 'ru'}) AND (s)-[:HAS_LANGUAGE]->(:Language {name: 'en'})\\nRETURN DISTINCT moderator.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the tagline of the movie with the highest rating?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWITH max(r.rating) AS maxRating\\nMATCH (m:Movie)<-[r:REVIEWED]-(p:Person) \\nWHERE r.rating = maxRating\\nRETURN m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most downvoted questions in the database?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q.title, q.downVotes\\nORDER BY q.downVotes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the Type that has the highest CPU count?"}, {"role": "assistant", "content": "MATCH (t:Type)\\nRETURN t.name AS typeName, t.cpu AS typeCPU\\nORDER BY t.cpu DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where pages is 479-502 and has title date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '479-502'}]->(m:Journal)\\nWHERE m.title < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Journal where name is Journal of Mathematical Logic and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the tweets that reply to tweets posted by 'neo4j'."}, {"role": "assistant", "content": "MATCH (reply:Tweet)-[:REPLY_TO]->(original:Tweet)<-[:POSTS]-(user:User)\\nWHERE user.screen_name = 'neo4j'\\nRETURN reply"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which game has the fewest streams playing it, listing the first 3 streams?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH g, COUNT(s) AS streamCount\\nORDER BY streamCount ASC\\nLIMIT 1\\nMATCH (s:Stream)-[:PLAYS]->(g)\\nRETURN g.name AS game, s.name AS stream_name, s.url AS stream_url\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with a degree of 300?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree = 300\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of description and label from Topic where description does not start with C!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE NOT n.description STARTS WITH 'C'\\nRETURN DISTINCT n.description AS description, n.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where category_id or category_id contains eea477d68b70c3a05be12567240033ef!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id CONTAINS 'eea477d68b70c3a05be12567240033ef'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'eea477d68b70c3a05be12567240033ef'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with \"fun\" in the review summary?"}, {"role": "assistant", "content": "MATCH ()-[:REVIEWED {summary: '%fun%'}]->(m:Movie)\\nRETURN avg(m.rating)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with a community number above 750?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community > 750\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where article_id is 1010 and share a common property with Report, for which report_id equals 5049b80a2935f95cc95cf14dbfb8c610?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1010'})-[r]->(n), (d:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which relationships have a link value of \"same company as\"?"}, {"role": "assistant", "content": "MATCH ()-[r]->()\\nWHERE r.link = 'same company as'\\nRETURN type(r), count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"STU_DOB\": \"STRING\",\n \"STU_LNAME\": \"STRING\",\n \"STU_HRS\": \"INTEGER\",\n \"STU_INIT\": \"STRING\",\n \"STU_NUM\": \"INTEGER\",\n \"PROF_NUM\": \"INTEGER\",\n \"STU_TRANSFER\": \"INTEGER\",\n \"DEPT_CODE\": \"STRING\",\n \"STU_FNAME\": \"STRING\",\n \"STU_PHONE\": \"STRING\",\n \"STU_CLASS\": \"STRING\",\n \"STU_GPA\": \"FLOAT\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"CRS_DESCRIPTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"CRS_CREDIT\": \"FLOAT\"\n }\n },\n \"Professor\": {\n \"properties\": {\n \"PROF_EXTENSION\": \"STRING\",\n \"PROF_HIGH_DEGREE\": \"STRING\",\n \"PROF_OFFICE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Clas\": {\n \"properties\": {\n \"CLASS_CODE\": \"STRING\",\n \"CLASS_SECTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"PROF_NUM\": \"INTEGER\",\n \"CLASS_TIME\": \"STRING\",\n \"CLASS_ROOM\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"DEPT_ADDRESS\": \"STRING\",\n \"DEPT_EXTENSION\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"DEPT_NAME\": \"STRING\",\n \"SCHOOL_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"EMP_INITIAL\": \"STRING\",\n \"EMP_JOBCODE\": \"STRING\",\n \"EMP_LNAME\": \"STRING\",\n \"EMP_HIREDATE\": \"STRING\",\n \"EMP_DOB\": \"STRING\",\n \"EMP_FNAME\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Enroll\": {\n \"properties\": {\n \"ENROLL_GRADE\": \"STRING\",\n \"CLASS_CODE\": \"STRING\",\n \"STU_NUM\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "How many credits does the department offer?"}, {"role": "assistant", "content": "MATCH (c:Course)\\nRETURN sum(c.CRS_CREDIT), c.DEPT_CODE"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which comments starts with LaT!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments STARTS WITH 'LaT'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Report and Report!"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r1]-(n)-[r2]->(d:Report)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 genres that have the most movies?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS genre, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Report where report_id is 5049b80a2935f95cc95cf14dbfb8c610 and Report, for which report_id is dd0a54fea06e7b7a384741aac9313d65?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'}), (b:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"flno\": \"INTEGER\",\n \"arrival_date\": \"STRING\",\n \"distance\": \"INTEGER\",\n \"price\": \"FLOAT\",\n \"origin\": \"STRING\",\n \"departure_date\": \"STRING\",\n \"aid\": \"INTEGER\",\n \"destination\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"name\": \"STRING\",\n \"aid\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"salary\": \"INTEGER\",\n \"eid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "What is the origin and destination for all flights whose price is higher than 300?"}, {"role": "assistant", "content": "MATCH (f:Flight)\\nWHERE f.price > 300\\nRETURN f.origin, f.destination"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the UpdateDate that has update_date 2010-06-18!"}, {"role": "assistant", "content": "MATCH path=(:UpdateDate {update_date:'2010-06-18'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Journal where journal_id is fce69ad0112a3426c57a0582a2b8620f and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user has the highest number of answered questions linked to their profile?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.answered = true\\nRETURN u, count(q) AS AnsweredQuestions\\nORDER BY AnsweredQuestions DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "What are the codes corresponding to document types for which there are less than 3 documents?"}, {"role": "assistant", "content": "MATCH (d:Document)\\nWITH d.Document_Type_Code as Document_Type_Code, count(*) AS count\\nWHERE count < 3\\nRETURN Document_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"installation_date\": \"STRING\",\n \"long\": \"FLOAT\",\n \"lat\": \"FLOAT\",\n \"city\": \"STRING\",\n \"dock_count\": \"INTEGER\"\n }\n },\n \"Status\": {\n \"properties\": {\n \"time\": \"STRING\",\n \"docks_available\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"bikes_available\": \"INTEGER\"\n }\n },\n \"Weather\": {\n \"properties\": {\n \"wind_dir_degrees\": \"INTEGER\",\n \"precipitation_inches\": \"INTEGER\",\n \"mean_sea_level_pressure_inches\": \"FLOAT\",\n \"zip_code\": \"INTEGER\",\n \"events\": \"STRING\",\n \"max_humidity\": \"INTEGER\",\n \"min_sea_level_pressure_inches\": \"FLOAT\",\n \"max_sea_level_pressure_inches\": \"INTEGER\",\n \"max_gust_speed_mph\": \"INTEGER\",\n \"date\": \"STRING\",\n \"max_visibility_miles\": \"INTEGER\",\n \"max_wind_Speed_mph\": \"INTEGER\",\n \"mean_wind_speed_mph\": \"INTEGER\",\n \"mean_humidity\": \"INTEGER\",\n \"mean_dew_point_f\": \"INTEGER\",\n \"mean_temperature_f\": \"INTEGER\",\n \"min_humidity\": \"INTEGER\",\n \"min_temperature_f\": \"INTEGER\",\n \"min_dew_point_f\": \"INTEGER\",\n \"mean_visibility_miles\": \"INTEGER\",\n \"min_visibility_miles\": \"INTEGER\",\n \"max_temperature_f\": \"INTEGER\",\n \"max_dew_point_f\": \"INTEGER\",\n \"cloud_cover\": \"INTEGER\"\n }\n },\n \"Trip\": {\n \"properties\": {\n \"start_station_name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"duration\": \"INTEGER\",\n \"end_date\": \"STRING\",\n \"bike_id\": \"INTEGER\",\n \"zip_code\": \"INTEGER\",\n \"end_station_id\": \"INTEGER\",\n \"subscription_type\": \"STRING\",\n \"end_station_name\": \"STRING\",\n \"start_station_id\": \"INTEGER\",\n \"start_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "Return the unique name for stations that have ever had 7 bikes available."}, {"role": "assistant", "content": "MATCH (T1:Station)<-[:ASSOCIATED_WITH]-(T2:Status)\\nWHERE T2.bikes_available = \"7\"\\nRETURN DISTINCT T1.name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Pick the first 3 directors that have directed more than one movie in the 'Drama' genre?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nWITH d, COUNT(m) AS movieCount\\nWHERE movieCount > 1\\nRETURN d\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"Staff_ID\": \"INTEGER\",\n \"Staff_Details\": \"STRING\"\n }\n },\n \"ClaimsProcessingStage\": {\n \"properties\": {\n \"Next_Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Name\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Description\": \"STRING\"\n }\n },\n \"Policy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"ClaimsDocument\": {\n \"properties\": {\n \"Created_Date\": \"INTEGER\",\n \"Document_Type_Code\": \"STRING\",\n \"Created_by_Staff_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimsProcessing\": {\n \"properties\": {\n \"Claim_Outcome_Code\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\",\n \"Claim_Processing_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimHeader\": {\n \"properties\": {\n \"Amount_Claimed\": \"FLOAT\",\n \"Date_of_Settlement\": \"STRING\",\n \"Claim_Header_ID\": \"INTEGER\",\n \"Amount_Piad\": \"FLOAT\",\n \"Date_of_Claim\": \"STRING\",\n \"Claim_Type_Code\": \"STRING\",\n \"Claim_Status_Code\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of distinct stages in claim processing."}, {"role": "assistant", "content": "MATCH (n:ClaimsProcessing_Stages)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Topic for which cluster is 7, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'7'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Journal for which name is Constructive Approximation, and what are their relationships to Journal?"}, {"role": "assistant", "content": "MATCH (c:Journal)<-[r]-(n)\\nWHERE c.name = 'Constructive Approximation'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find comments of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where meta is 225!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '225'\\nRETURN n.comments AS comments, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the games played by streams that have more than 500,000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 500000\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 questions with titles containing the word 'error'."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.title CONTAINS 'error'\\nRETURN q\\nORDER BY q.score DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the details of all positions held by people who have a Master's degree in Computer Science and have worked at companies with 'Inc.' in their name"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_EDUCATION]->(edu:Education), (p)-[:HAS_POSITION]->(pos:Position)-[:AT_COMPANY]->(c:Company)\\nWHERE toLower(edu.degree) CONTAINS 'master' AND toLower(edu.university) CONTAINS 'computer science' AND toLower(c.name) CONTAINS 'inc.'\\nRETURN pos"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which 3 users get the most retweets?\""}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)<-[:RETWEETS]-()\\nRETURN u.name AS UserName, COUNT(*) AS RetweetCount\\nORDER BY RetweetCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of characters who interact with 'Theon-Greyjoy' in any book? List up to 5."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Theon-Greyjoy'})-[:INTERACTS|:INTERACTS1|:INTERACTS2|:INTERACTS3|:INTERACTS45]-(other:Character)\\nRETURN other.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 filings where the originator bank is located in the country with code \"SGP\" and the beneficiary bank is located in the country with code \"GBR\"."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(ob:Entity)-[:COUNTRY]->(oc:Country), (f:Filing)-[:BENEFITS]->(bb:Entity)-[:COUNTRY]->(bc:Country)\\nWHERE oc.code = \"SGP\" AND bc.code = \"GBR\"\\nRETURN f\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 orders with the highest freight charges."}, {"role": "assistant", "content": "MATCH (o:Order)\\nRETURN o.orderID, o.freight\\nORDER BY toFloat(o.freight) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to UpdateDate for which update_date is 2017-07-11!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2017-07-11'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'weight' of interactions between characters in community 712?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE c1.community = 712 AND c2.community = 712\\nRETURN avg(r.weight)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between DOI where doi_id is 01c710839626aa78f11824682bccef1b and Report, for which report_no equals PAM-780?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'01c710839626aa78f11824682bccef1b'})-[*]->(d:Report{report_no:'PAM-780'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the people who have both produced and directed a movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(:Movie)\\nWITH collect(DISTINCT p) AS directors\\nMATCH (p:Person)-[:PRODUCED]->(:Movie)\\nWITH directors, collect(DISTINCT p) AS producers\\nRETURN apoc.coll.intersection(directors, producers) AS peopleWhoBothDirectedAndProduced"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which tweets posted by 'neo4j' have been retweeted by other users?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nWHERE exists{ (tweet)<-[:RETWEETS]-(:Tweet) }\\nRETURN tweet.text, tweet.created_at\\nORDER BY tweet.created_at DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 5 actors who acted in movies released in the year 2014."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.year = 2014\\nRETURN a\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies that were released in languages other than English and have an imdbRating above 7.0."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbRating > 7.0 AND NOT 'English' IN m.languages\\nRETURN m.title, m.imdbRating, m.languages\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 2 or cluster is less than 10!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 2 OR n.cluster < 10\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where abstract is I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n and Categories, with specifications equal q-fin.PR, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[*]-(e:Categories{specifications:'q-fin.PR'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Route\": {\n \"properties\": {\n \"id\": \"STRING\"\n }\n },\n \"Container\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"status\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Ship\",\n \"type\": \"CARRIES\",\n \"to\": \"Container\"\n },\n {\n \"from\": \"Ship\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Route\"\n },\n {\n \"from\": \"Route\",\n \"type\": \"STARTS_AT\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Route\",\n \"type\": \"ENDS_AT\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Route\",\n \"type\": \"STARTS_AT\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Route\",\n \"type\": \"ENDS_AT\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Ship\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Route\"\n },\n {\n \"from\": \"Ship\",\n \"type\": \"CARRIES\",\n \"to\": \"Container\"\n }\n ],\n \"relationshipProperties\": {\n \"CARRIES\": {\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\"\n },\n \"FOLLOWS\": {\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many containers are currently in transit?"}, {"role": "assistant", "content": "MATCH (c:Container)\\nWHERE c.status = 'In Transit'\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a total view count greater than 5 million but less than 10 million?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count > 5000000 AND s.total_view_count < 10000000\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report where report_no is none provided!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no = 'none provided'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where pages is 521-554 and has comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '521-554'}]->(m:Journal)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ref_template_types\": {\n \"properties\": {\n \"template_type_code\": \"STRING\",\n \"template_type_description\": \"STRING\"\n }\n },\n \"templates\": {\n \"properties\": {\n \"template_id\": \"STRING\",\n \"version_number\": \"STRING\",\n \"template_type_code\": \"STRING\",\n \"date_effective_from\": \"STRING\",\n \"date_effective_to\": \"STRING\",\n \"template_details\": \"STRING\"\n }\n },\n \"documents\": {\n \"properties\": {\n \"document_id\": \"STRING\",\n \"template_id\": \"STRING\",\n \"document_name ( Welcome to NY )\": \"STRING\",\n \"document_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"paragraphs\": {\n \"properties\": {\n \"paragraph_id\": \"STRING\",\n \"document_id\": \"STRING\",\n \"paragraph_text\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the ids, version numbers, and type codes for each template?"}, {"role": "assistant", "content": "MATCH (templates:Templates)\\nRETURN templates.Template_ID,templates.Version_Number,templates.Template_Type_Code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers have more than 3 products in their supply list?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, COUNT(p) AS productCount\\nWHERE productCount > 3\\nRETURN s.companyName AS SupplierName, productCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 entities have the most filings as beneficiaries and are located in 'Germany'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country {name: 'Germany'})\\nWITH e\\nMATCH (e)<-[:BENEFITS]-(f:Filing)\\nWITH e, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 3\\nRETURN e.name, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where article_id is 1052 and Report, for which report_id is e5e11665c21162413ab43704232c83c4?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1052'}), (b:Report{report_id:'e5e11665c21162413ab43704232c83c4'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Climber\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Time\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Points\": \"FLOAT\",\n \"Country\": \"STRING\",\n \"Climber_ID\": \"INTEGER\"\n }\n },\n \"Mountain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Prominence\": \"FLOAT\",\n \"Range\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Height\": \"FLOAT\",\n \"Country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n },\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n }\n ]\n}"}, {"role": "user", "content": "Return the name of the mountain with the greatest height."}, {"role": "assistant", "content": "MATCH (m:Mountain)\\nRETURN m.Name\\nORDER BY m.Height DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the report_id of the Report that is not related to the Author with the author_id 1184638302ce384c7549eeead253af2d!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Author {author_id: '1184638302ce384c7549eeead253af2d'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 games played by streams with the highest follower counts."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE s.followers IS NOT NULL\\nRETURN g.name AS Game, s.followers AS Followers\\nORDER BY s.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1013 or article_id is less than 1052!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1013 OR n.article_id < 1052\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 countries producing the most movies with a tagline that includes the word 'love'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE m.tagline CONTAINS 'love'\\nRETURN c.name AS country, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from DOI with doi_id equal to 01c710839626aa78f11824682bccef1b!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.doi_id = '01c710839626aa78f11824682bccef1b'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find four Article that have PUBLISHED_IN links so that meta are 248!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE EXISTS {(p)-[r:PUBLISHED_IN]->()\\nWHERE r.meta='248'} \\nRETURN p\\nLIMIT 4"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author where author_id is 13c7b3c4f69c510e94c671c881522bac, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{author_id:'13c7b3c4f69c510e94c671c881522bac'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 entities that have been concerned in filings the most."}, {"role": "assistant", "content": "MATCH (e:Entity)<-[:CONCERNS]-(f:Filing)\\nWITH e, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 5\\nRETURN e.name AS entity_name, num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 heaviest INTERACTED relationships by ogWeight?"}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User)\\nRETURN u1, r, u2\\nORDER BY r.ogWeight DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Author for which first_name is S. O., by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'S. O.'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers have all their products with a unit price above 20?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWITH s, COLLECT(p.unitPrice > 20) AS prices\\nWHERE ALL(price IN prices\\nWHERE price = true)\\nRETURN s.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets from 'neo4j' that have been retweeted and mention another user."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)\\nWHERE exists{(t)-[:RETWEETS]->(:Tweet)} AND exists{(t)-[:MENTIONS]->(:User)}\\nRETURN t\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to DOI for which doi_id is ee4af8f04acefe1036a78a4436691f55, and what are their relationships to DOI?"}, {"role": "assistant", "content": "MATCH (c:DOI)<-[r]-(n)\\nWHERE c.doi_id = 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the highest IMDb rating that is in a foreign language?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE NOT 'en' IN m.languages\\nWITH m\\nORDER BY m.imdbRating DESC\\nLIMIT 1\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the state of the business named 'Market on Front'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Market on Front'})\\nRETURN b.state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 processes that depend on version '7.1' in DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(m:Machine)-[:RUNS]->(p:Process)\\nWHERE exists { (p)-[:INSTANCE]->(:Version {name: '7.1'}) }\\nRETURN p\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"airlines\": {\n \"properties\": {\n \"uid\": \"STRING\",\n \"airline ( JetBlue Airways )\": \"STRING\",\n \"abbreviation ( JetBlue )\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"airports\": {\n \"properties\": {\n \"city\": \"STRING\",\n \"airportcode\": \"STRING\",\n \"airportname\": \"STRING\",\n \"country\": \"STRING\",\n \"countryabbrev\": \"STRING\"\n }\n },\n \"flights\": {\n \"properties\": {\n \"airline\": \"STRING\",\n \"flightno\": \"STRING\",\n \"sourceairport\": \"STRING\",\n \"destairport\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are airport names at City 'Aberdeen'?"}, {"role": "assistant", "content": "MATCH (airports:airports)\\nWHERE airports.City = 'Aberdeen'\\nRETURN airports.AirportName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'community' number higher than 700 and a 'pagerank' above 1? List top 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community > 700 AND c.pagerank > 1\\nRETURN c\\nORDER BY c.pagerank DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the specifications of the Categories and the report_id for Report!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nMATCH (m:Report)\\nRETURN n.specifications, m.report_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What type of product is associated with the product code 729275?"}, {"role": "assistant", "content": "MATCH (p:Product {productCode: 729275})\\nRETURN p.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Investor\": {\n \"properties\": {\n \"investor_id\": \"INTEGER\",\n \"Investor_details\": \"STRING\"\n }\n },\n \"Transaction\": {\n \"properties\": {\n \"date_of_transaction\": \"STRING\",\n \"share_count\": \"STRING\",\n \"investor_id\": \"INTEGER\",\n \"transaction_type_code\": \"STRING\",\n \"amount_of_transaction\": \"FLOAT\",\n \"transaction_id\": \"INTEGER\"\n }\n },\n \"Purchase\": {\n \"properties\": {\n \"purchase_details\": \"STRING\",\n \"purchase_transaction_id\": \"INTEGER\"\n }\n },\n \"Lot\": {\n \"properties\": {\n \"lot_id\": \"INTEGER\",\n \"investor_id\": \"INTEGER\",\n \"lot_details\": \"STRING\"\n }\n },\n \"RefTransactionType\": {\n \"properties\": {\n \"transaction_type_code\": \"STRING\",\n \"transaction_type_description\": \"STRING\"\n }\n },\n \"Sale\": {\n \"properties\": {\n \"sales_transaction_id\": \"INTEGER\",\n \"sales_details\": \"STRING\"\n }\n },\n \"TransactionsLot\": {\n \"properties\": {\n \"lot_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lot\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"REFERENCE\",\n \"to\": \"RefTransactionType\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Sale\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"Purchase\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"Purchase\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"OWNS\",\n \"to\": \"Lot\"\n },\n {\n \"from\": \"Lot\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"REFERENCE\",\n \"to\": \"RefTransactionType\"\n },\n {\n \"from\": \"Sale\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"OWNS\",\n \"to\": \"Lot\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n }\n ]\n}"}, {"role": "user", "content": "Show the number of transactions with transaction type code \"SALE\" for different investors if it is larger than 0."}, {"role": "assistant", "content": "MATCH (t:Transaction)-[:REFERENCE]->(ttc: RefTransactionType)\\nWHERE ttc.transaction_type_code = \"SALE\"\\nRETURN t.investor_id, COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Topic where label contains Population Dynamics_0, along with the type of their relationship with Topic!"}, {"role": "assistant", "content": "MATCH (d:Topic)-[r]->(n)\\nWHERE d.label CONTAINS 'Population Dynamics_0'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with DOI where doi_id is 01c710839626aa78f11824682bccef1b and share a common property with DOI, for which doi_id equals 0ef3b1eb742dfb0bc64bdfab8ed422f1?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'01c710839626aa78f11824682bccef1b'})-[r]->(n), (d:DOI{doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the company names of suppliers who supply products ordered by customers with a 'Sales Representative' contact title?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(:Order)-[:ORDERS]->(p:Product)<-[:SUPPLIES]-(s:Supplier)\\nWHERE c.contactTitle = 'Sales Representative'\\nRETURN DISTINCT s.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 oldest movies in the database by release year?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year IS NOT NULL\\nRETURN m\\nORDER BY m.year ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic where description is Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{description:'Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the last_name of the Author and the title for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Article)\\nRETURN n.last_name, m.title\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find 3 directors who have directed movies with fewer than 50 votes."}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.votes < 50\\nRETURN d.name, collect(m.title) AS Movies\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 actors who have acted in more than 10 movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWITH a, count(m) AS numMovies\\nWHERE numMovies > 10\\nRETURN a.name, numMovies\\nORDER BY numMovies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters with a community number less than 600 and a pagerank greater than 0.4."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community < 600 AND c.pagerank > 0.4\\nRETURN c.name, c.community, c.pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten Topic that have label and return their records!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label IS NOT NULL\\nRETURN n.label\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were asked before June 2020?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.createdAt < datetime('2020-06-01T00:00:00Z')\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the article_id of the Article that are linked via WRITTEN_BY to more than three Author, and list Author author_id and Author counts, ordering by Author count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWITH DISTINCT n, m\\nWITH n.article_id AS article_id, count(m) AS count, COLLECT(m.author_id) as author_id\\nWHERE count > 3\\nRETURN article_id, count, author_id\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "List the enrollment for each school that does not have \"Catholic\" as denomination."}, {"role": "assistant", "content": "MATCH (s:School)\\nWHERE s.Denomination <> \"Catholic\"\\nRETURN s.Enrollment"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 genres of movies that have a runtime of exactly 90 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.runtime = 90\\nRETURN g.name AS genre, count(*) AS count\\nORDER BY count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "Find the team of the player of the highest age."}, {"role": "assistant", "content": "MATCH (p:Player)\\nRETURN p.Team\\nORDER BY p.Age DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 videos have the highest number of associated production companies?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWITH v, count(pc) AS num_companies\\nORDER BY num_companies DESC\\nLIMIT 3\\nRETURN v.title AS VideoTitle, num_companies AS NumberOfProductionCompanies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different roles played by actors in the movie with the IMDb ID '0829150'?"}, {"role": "assistant", "content": "MATCH (m:Movie {imdbId: '0829150'})<-[:ACTED_IN]-(a:Actor)\\nRETURN a.name AS actorName, a.tmdbId AS actorTmdbId, a.imdbId AS actorImdbId, a.url AS actorUrl, a.poster AS actorPoster, a.born AS actorBorn, a.bornIn AS actorBornIn, a.died AS actorDied, a.bio AS actorBio, a.role AS role"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 businesses in 'San Mateo' that have been reviewed."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.city = 'San Mateo'\\nRETURN b.name, b.address, b.city, b.state, b.businessId\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"student_details\": \"STRING\",\n \"student_id\": \"INTEGER\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"course_name\": \"STRING\",\n \"course_id\": \"STRING\",\n \"course_description\": \"STRING\"\n }\n },\n \"CandidateAssessment\": {\n \"properties\": {\n \"qualification\": \"STRING\",\n \"asessment_outcome_code\": \"STRING\",\n \"candidate_id\": \"INTEGER\",\n \"assessment_date\": \"STRING\"\n }\n },\n \"Candidate\": {\n \"properties\": {\n \"candidate_details\": \"STRING\",\n \"candidate_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"PeopleAddress\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"person_id\": \"INTEGER\",\n \"address_id\": \"INTEGER\",\n \"date_to\": \"STRING\",\n \"person_address_id\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"person_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"password\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"CandidateAssessment\",\n \"type\": \"EVALUATES\",\n \"to\": \"Candidate\"\n },\n {\n \"from\": \"CandidateAssessment\",\n \"type\": \"EVALUATES\",\n \"to\": \"Candidate\"\n },\n {\n \"from\": \"Candidate\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Candidate\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first and last names of all the candidates?"}, {"role": "assistant", "content": "MATCH (c:Candidate)-[:KNOWS]->(p:Person)\\nRETURN p.first_name, p.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find all adult movies that have been released."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.status = 'Released'\\nRETURN a.title AS Title, a.release_date AS ReleaseDate, a.overview AS Overview"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies with the lowest average vote?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote IS NOT NULL\\nRETURN m.title, m.average_vote\\nORDER BY m.average_vote\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the comments of the Article and the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Article)\\nRETURN n.comments, m.article_id\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'book1BetweennessCentrality' of exactly 168.75234023581112 and are part of community 642?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1BetweennessCentrality = 168.75234023581112 AND c.community = 642\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Topic for which description is Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Encompasses techniques for reconstructing images from blurred or incomplete data using regularizers, sparsity, and phase retrieval algorithms, with applications in compressive sensing, neural networks, and optical imaging. Focuses on understanding small-time behavior, limiting transitions, and phase transitions in signal processing and optics, as well as the role of status-dependent behavior and spiking neurons in neural networks. Emphasizes the importance of regularization, penalization, and lasso techniques in image reconstruction and phase retrieval'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the countries associated with the officer with icij_id 'CB195B5424E13A74A6F3BC719050A2B9'?"}, {"role": "assistant", "content": "MATCH (o:Officer {icij_id: 'CB195B5424E13A74A6F3BC719050A2B9'})\\nRETURN DISTINCT o.countries"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List 5 countries where the most movies were produced."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH c.name AS country, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 5\\nRETURN country, movie_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that were filmed in a foreign country and have a rating above 80."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 80\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters with the lowest 3 'pagerank' values who have interacted with 'Aegon-V-Targaryen'."}, {"role": "assistant", "content": "MATCH (aegon:Character {name: 'Aegon-V-Targaryen'})-[r:INTERACTS*1..1]->(other)\\nRETURN other.name, other.pagerank\\nORDER BY other.pagerank ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 3 Machines that run version '7.1' of any Software."}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(:Software)-[:VERSION]->(v:Version {name: '7.1'})\\nRETURN m.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where article_id is 1015 and Author, with author_id equal 788db042978edbbfc654927e23ac21d1, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1015'})-[*]-(e:Author{author_id:'788db042978edbbfc654927e23ac21d1'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 movies released in 1995."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date.year = 1995\\nWITH m ORDER by m.release_date\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person has acted in movies with a rating lower than 50?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[r:REVIEWED]-()\\nWHERE r.rating < 50\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Artwork\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Artwork_ID\": \"INTEGER\",\n \"Type\": \"STRING\"\n }\n },\n \"FestivalDetail\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Festival_Name\": \"STRING\",\n \"Chair_Name\": \"STRING\",\n \"Num_of_Audience\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Festival_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n },\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n }\n ],\n \"relationshipProperties\": {\n \"DISPLAYS\": {\n \"Result\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\"."}, {"role": "assistant", "content": "MATCH (fd:FestivalDetail)-[:DISPLAYS]->(a:Artwork)\\nWHERE a.Type = \"Program Talent Show\"\\nRETURN fd.Festival_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from DOI with doi_id equal to fe8768ee88f2d27ed51861639e63a4ff!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*3]->(n)\\nWHERE a.doi_id = 'fe8768ee88f2d27ed51861639e63a4ff'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with a release year in the 1980s."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 1980 AND m.released < 1990\\nRETURN m.title, m.released"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets by 'Neo4j' that contain a link to 'https://twitter.com'."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE l.url STARTS WITH 'https://twitter.com'\\nRETURN t.id_str, t.text, t.created_at\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with a tagline that includes 'excitement'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'excitement'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Show entities with a 'same_name_as' relationship to 'ANTAM ENTERPRISES N.V.'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:same_name_as]->(o:Other {name: \"ANTAM ENTERPRISES N.V.\"})\\nRETURN e.name, e.node_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ClubRank\": {\n \"properties\": {\n \"Bronze\": \"FLOAT\",\n \"Rank\": \"FLOAT\",\n \"Gold\": \"FLOAT\",\n \"Club_ID\": \"INTEGER\",\n \"Silver\": \"FLOAT\",\n \"Total\": \"FLOAT\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Goals\": \"STRING\",\n \"name\": \"STRING\",\n \"Tries\": \"FLOAT\",\n \"Apps\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Points\": \"FLOAT\",\n \"Player_ID\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"CompetitionResult\": {\n \"properties\": {\n \"Competition_ID\": \"INTEGER\",\n \"Club_ID_2\": \"INTEGER\",\n \"Club_ID_1\": \"INTEGER\",\n \"Score\": \"STRING\"\n }\n },\n \"Competition\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Competition_ID\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Competition_type\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"AWARDED_IN\",\n \"to\": \"Competition\"\n },\n {\n \"from\": \"CompetitionResult\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"ClubRank\",\n \"type\": \"RANKED_IN\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "What are the types and countries of competitions?"}, {"role": "assistant", "content": "MATCH (c:Competition)\\nRETURN c.Competition_type, c.Country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the `name` of the officer with `icij_id` 'CB195B5424E13A74A6F3BC719050A2B9'?"}, {"role": "assistant", "content": "MATCH (o:Officer {icij_id: 'CB195B5424E13A74A6F3BC719050A2B9'})\\nRETURN o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have asked more than 5 questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u, COUNT(q) AS questionCount\\nWHERE questionCount > 5\\nRETURN u.display_name AS userName, questionCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 actors who have acted in a movie released before 1950."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released < \"1950-01-01\"\\nRETURN a.name AS actorName, m.title AS movieTitle, m.released AS releaseDate\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movie with the highest number of actors who have also directed a movie."}, {"role": "assistant", "content": "MATCH (d:Person)-[:DIRECTED]->(:Movie)\\nMATCH (d)-[:ACTED_IN]->(m:Movie)\\nWITH m, count(DISTINCT d) AS actorCount\\nORDER BY actorCount DESC\\nLIMIT 1\\nRETURN m.title AS movieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic for which cluster is 6, and what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.cluster = '6'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the streams with the most followers who play 'Rust'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nRETURN s.name, s.followers\\nORDER BY s.followers DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the size of the Network with IP address '10.4'?"}, {"role": "assistant", "content": "MATCH (n:Network {ip: '10.4'})\\nRETURN n.size"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Topic that has cluster 10!"}, {"role": "assistant", "content": "MATCH path=(:Topic {cluster:'10'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What kind of product pattern does 'Yani Wideleg' have?"}, {"role": "assistant", "content": "MATCH (p:Product {prodName: 'Yani Wideleg'})-[:VARIANT_OF]-(a:Article)\\nRETURN p, a"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a language set to 'ru' and more than 20,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = 'ru' AND s.followers > 20000\\nRETURN s.name AS stream_name, s.followers AS followers_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 products have the highest units on order in the 'Meat/Poultry' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Meat/Poultry'})\\nRETURN p.productName, p.unitsOnOrder\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 reviews with text containing 'great selection'."}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.text CONTAINS 'great selection'\\nRETURN r\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the most cast members named 'Tom Hanks'?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Tom Hanks\"})-[:CAST_FOR]->(m:Movie)\\nWITH m, COUNT(p) AS cast_count\\nORDER BY cast_count DESC\\nLIMIT 3\\nRETURN m.title AS movie_title, cast_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which key_id is 4969a8e0646cdb8842726781e7637625!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id:'4969a8e0646cdb8842726781e7637625'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 products that have been ordered the most times."}, {"role": "assistant", "content": "MATCH (p:Product)-[o:ORDERS]->(:Order)\\nRETURN p.productName, count(o) AS ordersCount\\nORDER BY ordersCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 egress routes from DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(e:Egress)-[:ROUTES]->(i:Interface)\\nRETURN e.name AS egress, count(i) AS route_count\\nORDER BY route_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Categories where category_id ends with 4b!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id =~'4b.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a last_name which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has title Hyper-K{\\\"a}hler Hierarchies and their twistor theory!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.last_name STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who reviewed 'The Matrix' and what summary did they provide?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie {title: 'The Matrix'})\\nRETURN p.name, r.summary"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify characters in community 578 with a pagerank above 0.3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 578 AND c.pagerank > 0.3\\nRETURN c.name, c.pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where name is 10.1006/jnth.2000.2616?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1006/jnth.2000.2616'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n },\n {\n \"from\": \"User\",\n \"type\": \"COMMENTED\",\n \"to\": \"Comment\"\n },\n {\n \"from\": \"User\",\n \"type\": \"PROVIDED\",\n \"to\": \"Answer\"\n },\n {\n \"from\": \"Answer\",\n \"type\": \"ANSWERED\",\n \"to\": \"Question\"\n },\n {\n \"from\": \"Comment\",\n \"type\": \"COMMENTED_ON\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "\"how many questions on Generative AI have been asked this year?\""}, {"role": "assistant", "content": "MATCH (:Tag {name: \"Generative AI\"})<-[:TAGGED]-(q:Question)\\nWHERE q.creation_date >= datetime({year:2023}).epochMillis AND q.creation_date < datetime({year:2024}).epochMillis\\nRETURN count(q) AS questions_asked_this_year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its title and the count of Journal linked via PUBLISHED_IN where meta is not '213', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta <> '213'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions asked by users with a reputation less than 500."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation < 500\\nRETURN q.title, q.link, q.createdAt, u.display_name, u.reputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "How many different software versions are used by services running in the data center?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter)\\nWITH dc\\nMATCH (dc)-[:CONTAINS]->(:Rack)-[:HOLDS]->(m:Machine)-[:RUNS]->(s:Service)\\nWITH DISTINCT s.name AS serviceName\\nMATCH (s:Service {name: serviceName})-[:INSTANCE]->(soft:Software)-[:VERSION]->(v:Version)\\nWITH DISTINCT v.name AS versionName\\nRETURN count(versionName)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 questions that have been answered and have more than 5 favorites."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true AND q.favorites > 5\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List all users who have both posted a tweet mentioning 'Neo4j' and have been mentioned by 'Neo4j' in a tweet."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(m:Me {screen_name: 'neo4j'})\\nMATCH (m)-[:POSTS]->(t2:Tweet)-[:MENTIONS]->(u)\\nRETURN DISTINCT u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Topic for which label is Mathematics_9!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Mathematics_9'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all characters with a 'pagerank' below 0.3 and list top 3."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.pagerank < 0.3\\nRETURN c\\nORDER BY c.pagerank ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Keyword that is HAS_KEY connected to Article that has article_id equal to 403507?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_KEY]->(m:Keyword)\\nWHERE n.article_id = 403507\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CountyPublicSafety\": {\n \"properties\": {\n \"Police_force\": \"STRING\",\n \"Name\": \"STRING\",\n \"Crime_rate\": \"FLOAT\",\n \"Police_officers\": \"INTEGER\",\n \"Case_burden\": \"INTEGER\",\n \"Population\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"County_ID\": \"INTEGER\",\n \"Residents_per_officer\": \"INTEGER\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"White\": \"FLOAT\",\n \"Asian\": \"FLOAT\",\n \"City_ID\": \"INTEGER\",\n \"Black\": \"FLOAT\",\n \"Multiracial\": \"FLOAT\",\n \"Amerindian\": \"FLOAT\",\n \"County_ID\": \"INTEGER\",\n \"Hispanic\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"City\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"CountyPublicSafety\"\n },\n {\n \"from\": \"City\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"CountyPublicSafety\"\n }\n ]\n}"}, {"role": "user", "content": "What is the location shared by most counties?"}, {"role": "assistant", "content": "MATCH (cp:CountyPublicSafety)\\nWITH cp.Location as Location, count(*) as count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies released after 1995 have \"dark\" in their review summary?"}, {"role": "assistant", "content": "MATCH (m:Movie) \\nWHERE m.released > 1995\\nMATCH (p:Person)-[r:REVIEWED]->(m) \\nWHERE toLower(r.summary) CONTAINS 'dark'\\nRETURN count(DISTINCT m) AS movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the report_id of the Report that is not related to the Topic with the cluster 1!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Topic {cluster: '1'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where article_id is 5145!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.article_id='5145'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten Article that have title and return their records!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title IS NOT NULL\\nRETURN n.title\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 countries based on the number of originator entities they have?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nMATCH (f:Filing)-[:ORIGINATOR]->(e)\\nWITH c.name AS country, COUNT(DISTINCT e.id) AS originator_count\\nRETURN country, originator_count\\nORDER BY originator_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: 31 pages, LaTex and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '31 pages, LaTex'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 adult films produced in 'Italy'?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'Italy'})\\nRETURN a.title AS Title, a.average_vote AS AverageVote\\nORDER BY a.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch all the Article and return the article_id and the number of nodes connected to them via PUBLISHED_IN with pages = 1-31."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '1-31'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.article_id AS article_id, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its abstract and the count of DOI linked via HAS_DOI, and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the customer who ordered the product with the highest 'unitPrice'."}, {"role": "assistant", "content": "MATCH (o:Order)-[oi:ORDERS]->(p:Product)\\nWITH MAX(toFloat(oi.unitPrice)) AS maxUnitPrice\\nMATCH (o:Order)-[oi:ORDERS]->(p:Product)\\nWHERE toFloat(oi.unitPrice) = maxUnitPrice\\nMATCH (c:Customer)-[:PURCHASED]->(o)\\nRETURN c.companyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Categories for which category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which Applications depend on the 'webserver' application?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})<-[:DEPENDS_ON]-(dependentApp:Application)\\nRETURN dependentApp.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 entities that have been concerned in filings more than 20 times?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:CONCERNS]->(f:Filing)\\nWITH e, count(f) AS filingsCount\\nWHERE filingsCount > 20\\nRETURN e.name\\nORDER BY filingsCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which title starts with F, skip the first 2 records and return the next 2 records of title!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title STARTS WITH 'F'\\nWITH n.title AS title SKIP 2\\nLIMIT 2\\nRETURN title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have abstract: A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products are supplied by 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: \"Exotic Liquids\"})-[:SUPPLIES]->(p:Product)\\nRETURN p.productName AS ProductName, p.productID AS ProductID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Keyword where name is discrete log problem?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'discrete log problem'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 games by the number of languages they are streamed in."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game), (s)-[:HAS_LANGUAGE]->(l:Language)\\nWITH g.name AS gameName, COUNT(DISTINCT l.name) AS languageCount\\nRETURN gameName, languageCount\\nORDER BY languageCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "What is the list of school locations sorted in descending order of school foundation year?"}, {"role": "assistant", "content": "MATCH (s:School)\\nRETURN s.Location\\nORDER BY s.Founded DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where article_id is 2204!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.article_id='2204'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Riemannian geometry_4 and Article, with article_id equal 1015, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Riemannian geometry_4'})-[*]-(e:Article{article_id:'1015'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 applications by number of instances running on machines?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(a:Application)\\nWITH a.name AS appName, COUNT(m) AS instanceCount\\nRETURN appName, instanceCount\\nORDER BY instanceCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Scientist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"SSN\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Hours\": \"INTEGER\",\n \"Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"LED_BY\",\n \"to\": \"Scientist\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all scientists sorted in alphabetical order."}, {"role": "assistant", "content": "MATCH (s:Scientist)\\nRETURN s.Name\\nORDER BY s.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find streams that play 'Rust' and have more than 10000 followers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE s.followers > 10000\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where title is Do All Elliptic Curves of the Same Order Have the Same Difficulty of\n Discrete Log? and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {title:'Do All Elliptic Curves of the Same Order Have the Same Difficulty of Discrete Log?'})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with meta equal to 222, connected to Article that has title equal to Notes for a Quantum Index Theorem?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '222'}]->(m:Journal)\\nWHERE n.title = 'Notes for a Quantum Index Theorem'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where specifications or category_id contains math.AT!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'math.AT'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'math.AT'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the applications that depend on the service named 'java'?"}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})<-[:DEPENDS_ON]-(a:Application)\\nRETURN a.name AS applicationName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 people by the number of movies they have directed."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, COUNT(m) AS directedMovies\\nORDER BY directedMovies DESC\\nLIMIT 5\\nRETURN p.name AS directorName, directedMovies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common review summary?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(:Movie)\\nWITH r.summary AS summary, count(*) AS count\\nORDER BY count DESC\\nRETURN summary\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of filings where the originator entity's name contains the word \"Corp\" and the beneficiary entity's name contains the word \"Bank\"?"}, {"role": "assistant", "content": "MATCH (o:Entity)-[:ORIGINATOR]->(filing:Filing)-[:BENEFITS]->(b:Entity)\\nWHERE o.name CONTAINS \"Corp\" AND b.name CONTAINS \"Bank\"\\nWITH count(filing) AS totalFilings\\nRETURN totalFilings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where article_id is 1071?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1071'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find all users who have written a review with a 5-star rating."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars = 5.0\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where author_id is 1184638302ce384c7549eeead253af2d and share a common property with Author, for which first_name equals Jean-Francois?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'1184638302ce384c7549eeead253af2d'})-[r]->(n), (d:Author{first_name:'Jean-Francois'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have interacted with users with an area greater than 5?"}, {"role": "assistant", "content": "MATCH (u1:User)-[i:INTERACTED]->(u2:User)\\nWHERE u2.area > 5\\nRETURN DISTINCT u1.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a louvain value exactly 5 and a pagerank less than 2?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 5 AND c.pagerank < 2\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 adult films sorted by runtime in descending order."}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.runtime IS NOT NULL\\nRETURN a.title, a.runtime\\nORDER BY a.runtime DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name starts with g, skip the first 2 records and return the next 2 records of name!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name STARTS WITH 'g'\\nWITH n.name AS name SKIP 2\\nLIMIT 2\\nRETURN name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have been tagged with the keyword 'jealousy'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'jealousy'})\\nRETURN m.title AS MovieTitle\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a name which begins with d, and is linked to Article via HAS_DOI relationship, where Article has abstract Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.name STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 entities based on the number of relationships they have with countries."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nWITH e, count(c) as countryCount\\nORDER BY countryCount DESC\\nLIMIT 3\\nRETURN e.name as entityName, countryCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"CountyPublicSafety\": {\n \"properties\": {\n \"Police_force\": \"STRING\",\n \"Name\": \"STRING\",\n \"Crime_rate\": \"FLOAT\",\n \"Police_officers\": \"INTEGER\",\n \"Case_burden\": \"INTEGER\",\n \"Population\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"County_ID\": \"INTEGER\",\n \"Residents_per_officer\": \"INTEGER\"\n }\n },\n \"City\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"White\": \"FLOAT\",\n \"Asian\": \"FLOAT\",\n \"City_ID\": \"INTEGER\",\n \"Black\": \"FLOAT\",\n \"Multiracial\": \"FLOAT\",\n \"Amerindian\": \"FLOAT\",\n \"County_ID\": \"INTEGER\",\n \"Hispanic\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"City\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"CountyPublicSafety\"\n },\n {\n \"from\": \"City\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"CountyPublicSafety\"\n }\n ]\n}"}, {"role": "user", "content": "Show the crime rate of counties with a city having white percentage more than 90."}, {"role": "assistant", "content": "MATCH (c:City)-[:HOSTED_IN]->(p:CountyPublicSafety)\\nWHERE c.White > 90\\nRETURN p.Crime_rate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 movies that have been keyword-tagged with 'based on novel'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'based on novel'})\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have the most movies with a runtime under 80 minutes?"}, {"role": "assistant", "content": "MATCH (c:ProductionCompany)-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.runtime < 80\\nWITH c, count(m) AS num_movies\\nRETURN c.name AS company, num_movies\\nORDER BY num_movies DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the businesses that serve as libraries?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: \"Library\"})\\nRETURN b.name AS libraryNames"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has title Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Solutions to congruences using sets with the property of Baire'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic where description is The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics., by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{description:'The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Founder\": \"STRING\",\n \"Headquarter\": \"STRING\",\n \"Revenue\": \"FLOAT\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer\": \"INTEGER\",\n \"Price\": \"INTEGER\",\n \"Code\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ]\n}"}, {"role": "user", "content": "Select the name of the products with a price less than or equal to $200."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.Price <= 200\\nRETURN p.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the countries with entities that filed filings as originators where the beneficiary entity's name contains \"Inc.\"."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(be:Entity)\\nWHERE be.name CONTAINS \"Inc.\"\\nMATCH (f)-[:ORIGINATOR]->(o:Entity)\\nMATCH (o)-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were asked by users with an image link containing 'googleusercontent'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.image CONTAINS 'googleusercontent'\\nRETURN q.title AS question_title, q.link AS question_link, u.display_name AS user_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to UpdateDate for which update_date is 2017-07-11, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2017-07-11'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which suppliers are located in 'London'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {city: 'London'})\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Categories with specifications equal to cs.CC!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Article for which title is Summation and transformation formulas for elliptic hypergeometric series, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Summation and transformation formulas for elliptic hypergeometric series'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a `book1PageRank` greater than 2 and a `book45PageRank` less than 5?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 2 AND c.book45PageRank < 5\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users amplified by 'Me'?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(user:User)\\nRETURN user.name, user.screen_name, COUNT(*) AS amplification_count\\nORDER BY amplification_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword where key_id contains a87e1!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id CONTAINS 'a87e1'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total amount of filings filed by entities located in China where the beneficiary bank is located in the United Kingdom?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.code = \"CHN\"\\nMATCH (e)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank_country = \"United Kingdom\"\\nRETURN sum(f.amount) AS total_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top three categories by average unitPrice of products."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitPrice IS NOT NULL\\nRETURN c.categoryName, avg(p.unitPrice) AS averageUnitPrice\\nORDER BY averageUnitPrice DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the report_no of the Report that is not related to the Topic with the label Topology_5!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Topic {label: 'Topology_5'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which category of business has the highest percentage of reviews with a word count greater than 50?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)<-[:IN_CATEGORY]-(b2:Business)\\nMATCH (r:Review)-[:REVIEWS]->(b2)\\nWITH c, size(split(r.text, ' ')) AS word_count, \\nCASE WHEN size(split(r.text, ' ')) > 50 THEN 1 ELSE 0 END AS is_long_review\\nWITH c, sum(is_long_review) AS long_review_count, count(*) AS total_reviews\\nWITH c, (long_review_count * 1.0 / total_reviews) AS percentage_long_reviews\\nORDER BY percentage_long_reviews DESC\\nRETURN c.name AS category_name, percentage_long_reviews\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many users are moderators in streams that have the game \"Rust\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE g.name = \"Rust\"\\nMATCH (s)<-[:MODERATOR]-(u:User)\\nRETURN count(DISTINCT u) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Report with report_id equal to 45009bf7f2e3f4f275de6d92deab7b27!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of businesses in 'San Mateo' that are categorized as 'Car Wash' along with their reviews."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Car Wash'})\\nWHERE b.city = 'San Mateo'\\nMATCH (r:Review)-[:REVIEWS]->(b)\\nRETURN b.name, r.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters with a degree between 50 and 100."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree >= 50 AND c.degree <= 100\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where description is Focusing on techniques and concepts related to transformations, solutions, and properties of linear equations and matrices, including Jordan normal form, eigenvalues, eigenvectors, diagonalization, and eigenformulations. and share a common property with Topic, for which label equals Mathematics_6?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'Focusing on techniques and concepts related to transformations, solutions, and properties of linear equations and matrices, including Jordan normal form, eigenvalues, eigenvectors, diagonalization, and eigenformulations.'})-[r]->(n), (d:Topic{label:'Mathematics_6'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is 22 pages, LaTeX and are PUBLISHED_IN linked to Journal, where year is 2001?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'22 pages, LaTeX'})-[r:PUBLISHED_IN {year :'2001'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 directors who have directed the most successful movies in terms of revenue."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, SUM(m.revenue) AS totalRevenue\\nORDER BY totalRevenue DESC\\nLIMIT 3\\nRETURN d.name AS Director, totalRevenue AS TotalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Article for which comments is Latex, 9 pages, no figures!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'Latex, 9 pages, no figures'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business in 'CA' has the most reviews?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'})-[:REVIEWS]-(r:Review)\\nRETURN b.name, count(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of filings where the originator bank and beneficiary bank are located in the same country?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nMATCH (f)-[:ORIGINATOR]->(o:Entity)\\nMATCH (f)-[:BENEFITS]->(b:Entity)\\nWHERE o.country = b.country\\nWITH count(f) AS totalFilings\\nRETURN totalFilings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the business categories in 'San Mateo' with reviews written by Bob."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})-[:IN_CATEGORY]->(c:Category)\\nWHERE exists { (b)<-[:REVIEWS]-(:Review)<-[:WROTE]-(u:User {name: 'Bob'}) }\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which 3 businesses has the most reviews?\""}, {"role": "assistant", "content": "MATCH (b:Business)-[r:REVIEWS]-(:Review)\\nRETURN b.name, COUNT(r) as reviews\\nORDER BY reviews DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where category_id is cb7bf6a30b0381c15264305ad7677b30 and share a common property with Article, for which article_id equals 1008?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})-[r]->(n), (d:Article{article_id:'1008'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users who chatter in the stream with the highest total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s\\nORDER BY s.total_view_count DESC\\nLIMIT 1\\nMATCH (u:User)-[:CHATTER]->(s)\\nRETURN u.name AS user, s.name AS stream\\nORDER BY s.total_view_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all entities whose status is %status%"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE toLower(e.status) CONTAINS toLower('%statut%')\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three genres are most common among movies with a budget over 100 million USD?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.budget > 100000000\\nWITH g, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3\\nRETURN g.name AS genre, count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic for which description starts with Enc!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description STARTS WITH 'Enc'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 users who have asked a question and have a reputation less than 500."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation < 500\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that are part of the team with the newest creation date."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH t\\nORDER BY t.createdAt DESC\\nLIMIT 1\\nMATCH (s:Stream)-[:HAS_TEAM]->(t)\\nRETURN s.name AS stream, s.total_view_count AS views\\nORDER BY views DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which abstract starts with G!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract STARTS WITH ' G'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total revenue generated by movies in each genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g.name AS genreName, sum(m.revenue) AS totalRevenue\\nRETURN genreName, totalRevenue\\nORDER BY totalRevenue DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 most followed users that 'Neo4j' follows?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN user.name, user.followers\\nORDER BY user.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Journal with name equal to J. Number Theory!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'J. Number Theory'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 orders with the most products ordered."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH o, COUNT(r) AS productCount\\nORDER BY productCount DESC\\nLIMIT 5\\nRETURN o.orderID AS orderID, productCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average born year of people who acted in movies released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released > 2000\\nMATCH (p:Person)-[:ACTED_IN]->(m)\\nRETURN avg(p.born)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Author where last_name is Leoni?"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Leoni'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"other_customer_details\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"payment_method\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomerAddress\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\",\n \"address_type\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_quantity\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"CustomerContactChannel\": {\n \"properties\": {\n \"contact_number\": \"STRING\",\n \"active_from_date\": \"STRING\",\n \"channel_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"active_to_date\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_details\": \"STRING\",\n \"product_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_content\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_details\": \"STRING\",\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n }\n ]\n}"}, {"role": "user", "content": "Which customer's name contains \"Alex\"? Find the full name."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.customer_name CONTAINS \"Alex\"\\nRETURN c.customer_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many businesses are there in 'CA' with a perfect 5-star review?"}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'})-[:REVIEWS]-(r:Review {stars: 5.0})\\nRETURN count(DISTINCT b) AS NumberOfBusinessesWithPerfectReviews"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the title of Article that each have more than five PUBLISHED_IN relationships with Journal!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m, r\\nWITH n.title AS title, count(r) AS count\\nWHERE count > 5\\nRETURN title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 streams that have the most chatters?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, count{(s)-[:CHATTER]->()} AS chatterCount\\nORDER BY chatterCount DESC\\nLIMIT 5\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions that have been both tagged with 'graphql' and have a score greater than zero."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'graphql' AND q.score > 0\\nRETURN q.title AS title, q.text AS text, q.link AS link, q.score AS score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which switches are located in rack 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (rack:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(switch:Switch)\\nRETURN switch.ip AS switch_ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article where comments contains 21 pa!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments CONTAINS '21 pa'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date of the review with the highest star rating for 'Missoula Public Library'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Missoula Public Library'})<-[:REVIEWS]-(r:Review)\\nWITH max(r.stars) AS max_stars\\nMATCH (b:Business {name: 'Missoula Public Library'})<-[:REVIEWS]-(r:Review {stars: max_stars})\\nRETURN r.date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author where affiliation is Ohio State University!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation = 'Ohio State University'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Author with author_id equal to a7193c11b0713ccfbb34c90cf18d3e5f!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who has the highest book45PageRank in community 759?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 759\\nRETURN c.name AS CharacterName, c.book45PageRank AS HighestBook45PageRank\\nORDER BY c.book45PageRank DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_no for Report combined with the first_name for Author!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.first_name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 teams by the number of associated streams."}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nWITH t, count(s) AS streamCount\\nORDER BY streamCount DESC\\nLIMIT 3\\nRETURN t.name, streamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the three most common teams that streams belong to?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nRETURN t.name AS team, count(*) AS num_streams\\nORDER BY num_streams DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 applications are instances of the software named 'RHEL' and their start times?"}, {"role": "assistant", "content": "MATCH (s:Software {name: 'RHEL'})-[:INSTANCE]->(a:Application)\\nRETURN a.name AS ApplicationName, a.startTime AS StartTime\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 reviews that mention 'breakfast' in their text."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.text CONTAINS 'breakfast'\\nRETURN r, u, b\\nORDER BY r.stars DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 1048 and PUBLISHED_IN has pages on 527-551!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '527-551'}]->(m)\\nWHERE n.article_id='1048'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: latex, 38 pages, typos corrected and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'latex, 38 pages, typos corrected'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Who wrote the review with the highest star rating?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS reviewer_name\\nORDER BY r.stars DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the name from Keyword where either key_id is 72e4f3fc2930bd3a0a7730a664d069d6 or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id = '72e4f3fc2930bd3a0a7730a664d069d6' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the DOI where name or name contains 10.2140/gt.2000.4.407!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name CONTAINS '10.2140/gt.2000.4.407'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.name CONTAINS '10.2140/gt.2000.4.407'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the location of the data center that contains the router 'DC1-RE'?"}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-RE'})<-[:CONTAINS]-(dc:DataCenter)\\nRETURN dc.location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Keyword where name is uncountably many different asymptotic growth rates and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.name = 'uncountably many different asymptotic growth rates'\\nRETURN properties(b) AS Keyword_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities are registered in Samoa and have been struck off as of 2013?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = 'Samoa' AND e.struck_off_date = '15-FEB-2013'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most ordered products in the 'Grains/Cereals' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Grains/Cereals'})\\nWITH p\\nMATCH (o:Order)-[r:ORDERS]->(p)\\nRETURN p.productName, SUM(r.quantity) AS TotalQuantityOrdered\\nORDER BY TotalQuantityOrdered DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of documentaries in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: \"Documentary\"})\\nWITH avg(m.runtime) AS average_runtime\\nRETURN average_runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies released before 1990 have \"amazing\" in their review summary?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE m.released < 1990 AND toLower(r.summary) CONTAINS 'amazing'\\nRETURN count(DISTINCT m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 user interactions based on the interaction weight in descending order?"}, {"role": "assistant", "content": "MATCH (u1:User)-[r:INTERACTED]->(u2:User)\\nRETURN u1.label AS User1, u2.label AS User2, r.weight AS InteractionWeight\\nORDER BY r.weight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies where the primary language is English and have a runtime of exactly 96 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE 'English' IN m.languages AND m.runtime = 96\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of businesses that have 'Co.' in their name."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.name CONTAINS 'Co.'\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users followed by 'neo4j' have tweeted using the source 'Buffer' and list the top 5."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)-[:POSTS]->(tweet:Tweet)-[:USING]->(source:Source {name: 'Buffer'})\\nRETURN user.screen_name AS followed_user, tweet.text AS tweet_text, tweet.created_at AS tweet_date\\nORDER BY tweet.created_at DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies were produced in the United States?"}, {"role": "assistant", "content": "MATCH (c:Country {name: \"United States of America\"})<-[:PRODUCED_IN_COUNTRY]-(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to UpdateDate for which update_date is 2011-11-10!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2011-11-10'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is 26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt\n 2005 and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'26 pages, revised, to appear in Advances in Cryptology -- Asiacrypt 2005'})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where description is The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics. and Article, with abstract equal A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{description:'The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.'})-[*]-(e:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Report where report_no or report_id contains none provided!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no CONTAINS 'none provided'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Report)\\nWHERE m.report_id CONTAINS 'none provided'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions asked by the user with id 10251021."}, {"role": "assistant", "content": "MATCH (u:User {id: 10251021})-[:ASKED]->(q:Question)\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article for which title is Summation and transformation formulas for elliptic hypergeometric series, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.title = 'Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has comments no comments!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'no comments'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the update_date of the UpdateDate and the description for Topic!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nMATCH (m:Topic)\\nRETURN n.update_date, m.description\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the 'text' content of the tweet that has received the most replies?"}, {"role": "assistant", "content": "MATCH (t:Tweet)<-[:REPLY_TO]-(:Tweet)\\nWITH t, count(*) AS reply_count\\nORDER BY reply_count DESC\\nRETURN t.text\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"user_name\": \"STRING\",\n \"user_login\": \"STRING\",\n \"role_code\": \"STRING\",\n \"user_id\": \"INTEGER\",\n \"password\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"document_code\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"document_structure_code\": \"STRING\",\n \"document_name\": \"STRING\",\n \"access_count\": \"INTEGER\"\n }\n },\n \"FunctionalArea\": {\n \"properties\": {\n \"functional_area_code\": \"STRING\",\n \"functional_area_description\": \"STRING\",\n \"parent_functional_area_code\": \"STRING\"\n }\n },\n \"DocumentStructure\": {\n \"properties\": {\n \"parent_document_structure_code\": \"STRING\",\n \"document_structure_code\": \"STRING\",\n \"document_structure_description\": \"STRING\"\n }\n },\n \"Image\": {\n \"properties\": {\n \"image_alt_text\": \"STRING\",\n \"image_name\": \"STRING\",\n \"image_url\": \"STRING\",\n \"image_id\": \"INTEGER\"\n }\n },\n \"DocumentFunctionalArea\": {\n \"properties\": {\n \"functional_area_code\": \"STRING\",\n \"document_code\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n },\n \"DocumentSection\": {\n \"properties\": {\n \"section_title\": \"STRING\",\n \"document_code\": \"STRING\",\n \"section_sequence\": \"INTEGER\",\n \"section_id\": \"INTEGER\",\n \"section_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STRUCTURE\",\n \"to\": \"DocumentStructure\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentSection\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FunctionalArea\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STRUCTURE\",\n \"to\": \"DocumentStructure\"\n },\n {\n \"from\": \"Image\",\n \"type\": \"INCLUDES\",\n \"to\": \"DocumentSection\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FunctionalArea\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Image\",\n \"type\": \"INCLUDES\",\n \"to\": \"DocumentSection\"\n },\n {\n \"from\": \"DocumentSection\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n }\n ]\n}"}, {"role": "user", "content": "Give the section titles of the document with the name \"David CV\"."}, {"role": "assistant", "content": "MATCH (d:Document {document_name:\"David CV\"})-[:CONTAINS]-(ds:DocumentSection)\\nRETURN ds.section_title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"user_name\": \"STRING\",\n \"user_login\": \"STRING\",\n \"role_code\": \"STRING\",\n \"user_id\": \"INTEGER\",\n \"password\": \"STRING\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"document_code\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"document_structure_code\": \"STRING\",\n \"document_name\": \"STRING\",\n \"access_count\": \"INTEGER\"\n }\n },\n \"FunctionalArea\": {\n \"properties\": {\n \"functional_area_code\": \"STRING\",\n \"functional_area_description\": \"STRING\",\n \"parent_functional_area_code\": \"STRING\"\n }\n },\n \"DocumentStructure\": {\n \"properties\": {\n \"parent_document_structure_code\": \"STRING\",\n \"document_structure_code\": \"STRING\",\n \"document_structure_description\": \"STRING\"\n }\n },\n \"Image\": {\n \"properties\": {\n \"image_alt_text\": \"STRING\",\n \"image_name\": \"STRING\",\n \"image_url\": \"STRING\",\n \"image_id\": \"INTEGER\"\n }\n },\n \"DocumentFunctionalArea\": {\n \"properties\": {\n \"functional_area_code\": \"STRING\",\n \"document_code\": \"STRING\"\n }\n },\n \"Role\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n },\n \"DocumentSection\": {\n \"properties\": {\n \"section_title\": \"STRING\",\n \"document_code\": \"STRING\",\n \"section_sequence\": \"INTEGER\",\n \"section_id\": \"INTEGER\",\n \"section_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STRUCTURE\",\n \"to\": \"DocumentStructure\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentSection\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FunctionalArea\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_STRUCTURE\",\n \"to\": \"DocumentStructure\"\n },\n {\n \"from\": \"Image\",\n \"type\": \"INCLUDES\",\n \"to\": \"DocumentSection\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FunctionalArea\"\n },\n {\n \"from\": \"DocumentFunctionalArea\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Role\"\n },\n {\n \"from\": \"Image\",\n \"type\": \"INCLUDES\",\n \"to\": \"DocumentSection\"\n },\n {\n \"from\": \"DocumentSection\",\n \"type\": \"CONTAINS\",\n \"to\": \"Document\"\n }\n ]\n}"}, {"role": "user", "content": "What document types do have more than 10000 total access number."}, {"role": "assistant", "content": "MATCH (d:Document)\\nWITH d.document_type_code as document_type_code, sum(d.access_count) as count\\nWHERE count > 10000\\nRETURN document_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "list the top 3 streams with the highest number of VIP relationships."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, count{(s)-[:VIP]->()} AS vipCount\\nORDER BY vipCount DESC\\nLIMIT 3\\nRETURN s.id AS StreamID, s.name AS StreamName, vipCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find the entities with the most recent dorm dates."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.dorm_date IS NOT NULL\\nRETURN e.name, e.dorm_date\\nORDER BY e.dorm_date DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where abstract is Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.abstract=' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: 43 pages, 1 figure. Revised August 2001 to cut page length (eg\n deleted appendix) for publication in CMP. Also fleshed out ex. of q-Killing\n metric for q-SU_2 previously mentioned (no significant additions) and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '43 pages, 1 figure. Revised August 2001 to cut page length (eg deleted appendix) for publication in CMP. Also fleshed out ex. of q-Killing metric for q-SU_2 previously mentioned (no significant additions)'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name starts with l, skip the first 2 records and return the next 2 records of name!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name STARTS WITH 'l'\\nWITH n.name AS name SKIP 2\\nLIMIT 2\\nRETURN name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the category_id for Categories combined with the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nRETURN n.category_id AS Records\\nUNION ALL\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Categories for which category_id is 33657234da1dc070ea09e7c31bb86abb, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all the people who have a skill level of 'intermediate' in 'JavaScript' and have worked at 'Microsoft' in a 'Washington' based position with a 'Bachelor's degree' from 'MIT'"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_SKILL]->(s:Skill), (p)-[:HAS_POSITION]->(pos:Position)-[:AT_COMPANY]->(c:Company), (p)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(s.name) CONTAINS 'javascript' AND toLower(s.level) CONTAINS 'intermediate' AND toLower(c.name) CONTAINS 'microsoft' AND (toLower(pos.location) CONTAINS 'washington' OR toLower(pos.location) CONTAINS 'wa') AND toLower(e.degree) CONTAINS 'bachelor' AND toLower(e.university) CONTAINS 'mit'\\nRETURN p, s, pos, c, e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Report for which report_id is f07a9f85a94d20f473a1bf9b432c05f8!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'f07a9f85a94d20f473a1bf9b432c05f8'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"last_update\": \"STRING\",\n \"create_date\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"email\": \"STRING\",\n \"last_name\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"active\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"name\": \"STRING\",\n \"category_id\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"actor_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"last_name\": \"STRING\"\n }\n },\n \"Rental\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"return_date\": \"STRING\",\n \"rental_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"rental_rate\": \"FLOAT\",\n \"rental_duration\": \"INTEGER\",\n \"language_id\": \"INTEGER\",\n \"title\": \"STRING\",\n \"last_update\": \"STRING\",\n \"description\": \"STRING\",\n \"release_year\": \"INTEGER\",\n \"length\": \"INTEGER\",\n \"replacement_cost\": \"FLOAT\",\n \"rating\": \"STRING\",\n \"film_id\": \"INTEGER\",\n \"special_features\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Inventory\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"film_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\"\n }\n },\n \"Addres\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"phone\": \"STRING\",\n \"last_update\": \"STRING\",\n \"address\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"postal_code\": \"STRING\",\n \"address2\": \"STRING\",\n \"district\": \"STRING\"\n }\n },\n \"City\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"last_update\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"payment_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n }\n ],\n \"relationshipProperties\": {\n \"STARS_IN\": {\n \"last_update\": \"STRING\"\n },\n \"RELATED_TO\": {\n \"last_update\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Count the number of customers who are active."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWHERE c.active = 1\\nRETURN COUNT(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which intermediaries have a 'name' that contains the word 'LIMITED' and are 'intermediary_of' entities with a 'status' of 'Active'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary) - [:intermediary_of] -> (e:Entity)\\nWHERE i.name CONTAINS 'LIMITED' AND e.status = 'Active'\\nRETURN i.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where article_id is 1008, through Journal via PUBLISHED_IN with year 2000?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1008'})-[:PUBLISHED_IN {year: '2000'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the products that have a reorder level of 25 and are not discontinued."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.reorderLevel = 25 AND p.discontinued = false\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 questions that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q.title, q.link, q.createdAt\\nORDER BY q.createdAt DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 users by the number of reviews they have written."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3\\nRETURN u.name AS userName, reviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 4129 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '4129'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Report for which the report_id is missing!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id IS NULL\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"Staff_ID\": \"INTEGER\",\n \"Staff_Details\": \"STRING\"\n }\n },\n \"ClaimsProcessingStage\": {\n \"properties\": {\n \"Next_Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Name\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Description\": \"STRING\"\n }\n },\n \"Policy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"ClaimsDocument\": {\n \"properties\": {\n \"Created_Date\": \"INTEGER\",\n \"Document_Type_Code\": \"STRING\",\n \"Created_by_Staff_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimsProcessing\": {\n \"properties\": {\n \"Claim_Outcome_Code\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\",\n \"Claim_Processing_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimHeader\": {\n \"properties\": {\n \"Amount_Claimed\": \"FLOAT\",\n \"Date_of_Settlement\": \"STRING\",\n \"Claim_Header_ID\": \"INTEGER\",\n \"Amount_Piad\": \"FLOAT\",\n \"Date_of_Claim\": \"STRING\",\n \"Claim_Type_Code\": \"STRING\",\n \"Claim_Status_Code\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n }\n ]\n}"}, {"role": "user", "content": "Which type of policy is most frequently used? Give me the policy type code."}, {"role": "assistant", "content": "MATCH (p:Policy)\\nWITH p.Policy_Type_Code as policy_type_code, count(*) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN policy_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify characters with a centrality exactly 0.0 and a degree over 20."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality = 0.0 AND c.degree > 20\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where comments is 16 pages To be published in Journal of Geometry and Physics and share a common property with UpdateDate, for which update_date equals 2015-06-26?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'16 pages To be published in Journal of Geometry and Physics'})-[r]->(n), (d:UpdateDate{update_date:'2015-06-26'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where comments is no comments and traversing through DOI with doi_id 01c710839626aa78f11824682bccef1b!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'no comments'})-[*]->(d:DOI{doi_id:'01c710839626aa78f11824682bccef1b'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with a tagline containing the word 'journey'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'journey'\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {}\n },\n \"UpdateDate\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both DOI and UpdateDate, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:DOI)-[*]-(n)-[*]-(b:UpdateDate)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have interacted with users with a size other than 1.5?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.size <> 1.5\\nRETURN DISTINCT u1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Name the businesses that have been reviewed in September 2018."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2018-09-01') AND r.date <= date('2018-09-30')\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the businesses that have been reviewed by users who have also reviewed 'Zootown Brew'."}, {"role": "assistant", "content": "MATCH (zb:Business {name: 'Zootown Brew'})<-[:REVIEWS]-(:Review)<-[:WROTE]-(u:User)\\nWITH u\\nMATCH (u)-[:WROTE]->(:Review)-[:REVIEWS]->(b:Business)\\nRETURN DISTINCT b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the key_id for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION\\nMATCH (m:Keyword)\\nRETURN m.key_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Who played in the matrix?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie {title: \"The Matrix\"})\\nRETURN p.name;"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the most moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, count{(s)-[:MODERATOR]->()} AS moderatorCount\\nORDER BY moderatorCount DESC\\nLIMIT 3\\nRETURN s.id AS StreamID, s.name AS StreamName, moderatorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Submission\": {\n \"properties\": {\n \"Submission_ID\": \"INTEGER\",\n \"Scores\": \"FLOAT\",\n \"Author\": \"STRING\",\n \"College\": \"STRING\"\n }\n },\n \"Workshop\": {\n \"properties\": {\n \"Workshop_ID\": \"INTEGER\",\n \"Name\": \"STRING\",\n \"Venue\": \"STRING\",\n \"Date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Workshop\",\n \"type\": \"RECEIVED_SUBMISSION\",\n \"to\": \"Submission\"\n },\n {\n \"from\": \"Workshop\",\n \"type\": \"RECEIVED_SUBMISSION\",\n \"to\": \"Submission\"\n }\n ],\n \"relationshipProperties\": {\n \"RECEIVED_SUBMISSION\": {\n \"Result\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the author for each submission and list them in ascending order of submission score."}, {"role": "assistant", "content": "MATCH (s:Submission)\\nRETURN s.Author\\nORDER BY s.Scores ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have an area other than 4.94 and a size less than 3?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area <> 4.94 AND u.size < 3\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 Applications that depend on the Process with PID 8966."}, {"role": "assistant", "content": "MATCH (p:Process {pid: 8966})-[:DEPENDS_ON]->(app:Application)\\nRETURN app\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 hashtags used in tweets."}, {"role": "assistant", "content": "MATCH (:Tweet)-[r:TAGS]->(h:Hashtag)\\nRETURN h.name, count(r) AS usage\\nORDER BY usage DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most actors involved?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH m, count(a) as actorCount\\nORDER BY actorCount DESC\\nLIMIT 5\\nRETURN m.title as MovieTitle, actorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 users with the highest reputation who asked questions."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWITH u\\nORDER BY u.reputation DESC\\nLIMIT 3\\nRETURN u.display_name, u.reputation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies that have grossed over 1 billion USD in revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 1000000000\\nRETURN m.title, m.revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have asked questions that were tagged with 'graphql' and have a score of zero?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nWHERE q.score = 0\\nRETURN count(DISTINCT u) AS NumberOfUsers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the dependencies of the web application named 'webserver'?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})-[:DEPENDS_ON]->(dependency)\\nRETURN dependency.name AS DependencyName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where author_id contains d83c43e5b1cf398c4e549843f497694b, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.author_id CONTAINS 'd83c43e5b1cf398c4e549843f497694b'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"course\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"staring_date\": \"STRING\",\n \"course\": \"STRING\"\n }\n },\n \"teacher\": {\n \"properties\": {\n \"teacher_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"hometown\": \"STRING\"\n }\n },\n \"course_arrange\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"teacher_id\": \"STRING\",\n \"grade\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the most common hometown of teachers."}, {"role": "assistant", "content": "MATCH (teacher:teacher)\\nRETURN teacher.Hometown\\nORDER BY teacher.Hometown DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to UpdateDate for which update_date is 2018-11-28, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2018-11-28'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 businesses that have been reviewed by users from California."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.state = 'CA'\\nWITH b, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3\\nRETURN b.name AS businessName, reviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 highest rated movies based on votes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m.title, m.votes\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the first_name from Author where first_name is not A.!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name <> 'A.'\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the cluster for Topic that is linked through a HAS_TOPIC relationship with the Keyword where name is logarithms!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.name='logarithms'\\nRETURN m.cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to UpdateDate where update_date is 2014-01-15 and list their properties!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2014-01-15'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 countries by the number of originator banks based on filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS country_name, count(DISTINCT e.id) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 3\\nRETURN country_name, originator_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the city with the least number of businesses?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWITH b.city AS city, count(b) AS numBusinesses\\nORDER BY numBusinesses ASC\\nLIMIT 1\\nRETURN city"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the movies that have been acted in and directed by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE exists { (p)-[:DIRECTED]->(m) }\\nRETURN m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "Recommend five products for customers who purchased Julia Hoodie?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: \"Julia Hoodie\"})<-[:PURCHASED]-(c:Customer)-[:PURCHASED]->(rec:Article)\\nRETURN rec.prodName AS recommendedProduct, COUNT(*) AS purchaseCount\\nORDER BY purchaseCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_id starts with 2, skip the first 2 records and return the next 2 records of report_id!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id STARTS WITH '2'\\nWITH n.report_id AS report_id SKIP 2\\nLIMIT 2\\nRETURN report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the text content of the tweet with the highest 'id'?"}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.text\\nORDER BY t.id DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Keyword where name contains logarithmic barrier penalty, along with the type of their relationship with Keyword!"}, {"role": "assistant", "content": "MATCH (d:Keyword)-[r]->(n)\\nWHERE d.name CONTAINS 'logarithmic barrier penalty'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List all characters whose name ends in 'Targaryen'."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.name ENDS WITH 'Targaryen'\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have a 'jurisdiction_description' of 'Niue' and have a 'registered_address' in 'Hong Kong'?"}, {"role": "assistant", "content": "MATCH (entity:Entity) \\nWHERE entity.jurisdiction_description = 'Niue'\\nMATCH (entity)-[:registered_address]->(address:Address) \\nWHERE address.countries = 'Hong Kong'\\nRETURN entity.name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What type of product is 'Girlfriend R.W Trash'?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Girlfriend R.W Trash'\\nRETURN p.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_type_code\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"address_line_1\": \"STRING\",\n \"town_city\": \"STRING\",\n \"address_line_2\": \"STRING\",\n \"state\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"gender\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"date_product_first_available\": \"STRING\",\n \"date_product_discontinued\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"product_description\": \"STRING\"\n }\n },\n \"Complaint\": {\n \"properties\": {\n \"date_complaint_raised\": \"STRING\",\n \"complaint_outcome_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"complaint_id\": \"INTEGER\",\n \"complaint_type_code\": \"STRING\",\n \"complaint_status_code\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"date_complaint_closed\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"MADE_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Complaint\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Customer\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of customers."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"gender_mf\": \"STRING\",\n \"coupon_id\": \"INTEGER\",\n \"last_name\": \"STRING\",\n \"good_or_bad_customer\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_last_hire\": \"STRING\"\n }\n },\n \"DiscountCoupon\": {\n \"properties\": {\n \"coupon_id\": \"INTEGER\",\n \"coupon_amount\": \"INTEGER\",\n \"date_issued\": \"STRING\"\n }\n },\n \"ViewProductAvailability\": {\n \"properties\": {\n \"booking_id\": \"INTEGER\",\n \"available_yn\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n },\n \"Booking\": {\n \"properties\": {\n \"amount_payable\": \"FLOAT\",\n \"booking_end_date\": \"STRING\",\n \"count_hired\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"booking_start_date\": \"STRING\",\n \"amount_of_discount\": \"FLOAT\",\n \"amount_outstanding\": \"FLOAT\",\n \"amount_of_refund\": \"FLOAT\",\n \"customer_id\": \"INTEGER\",\n \"returned_damaged_yn\": \"STRING\"\n }\n },\n \"ProductsForHire\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\",\n \"product_description\": \"STRING\",\n \"daily_hire_cost\": \"FLOAT\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount_paid\": \"FLOAT\",\n \"payment_type_code\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"booking_id\": \"INTEGER\",\n \"amount_paid_in_full_yn\": \"STRING\",\n \"payment_id\": \"INTEGER\",\n \"amount_due\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"USES\",\n \"to\": \"DiscountCoupon\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ProductsForHire\",\n \"type\": \"RENTED_BY\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"ViewProductAvailability\",\n \"type\": \"AVAILABLE_PRODUCTS\",\n \"to\": \"ProductsForHire\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Booking\"\n }\n ],\n \"relationshipProperties\": {\n \"RENTED_BY\": {\n \"returned_yn\": \"STRING\",\n \"booked_amount\": \"FLOAT\",\n \"returned_late_yn\": \"STRING\",\n \"booked_count\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the names of products whose availability equals to 1?"}, {"role": "assistant", "content": "MATCH (view:ViewProductAvailability)\\nWHERE view.available_yn = '1'\\nMATCH (product:ProductsForHire)\\nWHERE product.product_id = view.product_id\\nRETURN product.product_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average score of questions asked by the user with display name \"Christopher\"?"}, {"role": "assistant", "content": "MATCH (u:User {display_name: \"Christopher\"})-[:ASKED]->(q:Question)\\nRETURN avg(q.score) AS average_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where affiliation is unspecified and Topic, for which label is Dynamical Systems_10?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'}), (b:Topic{label:'Dynamical Systems_10'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which cluster is 4, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'4'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 movies produced by Joel Silver."}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Joel Silver\"})-[:PRODUCED]->(m:Movie)\\nRETURN m.title AS MovieTitle\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Author with first_name equal to S. O.!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.first_name = 'S. O.'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all businesses with more than one category."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWITH b, count(c) AS numCategories\\nWHERE numCategories > 1\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find article_id of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 131-170!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '131-170'\\nRETURN n.article_id AS article_id, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many INTERACTED relationships have a 'weight' greater than 1?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->(v:User)\\nWHERE r.weight > 1\\nRETURN count(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Keyword where key_id is d8ed805e2dd529e548ead28198edd980 and list their properties, including those of Keyword!"}, {"role": "assistant", "content": "MATCH (b:Keyword)-[r]->(n)\\nWHERE b.key_id = 'd8ed805e2dd529e548ead28198edd980'\\nRETURN properties(b) AS Keyword_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where year is 2002 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2002'}]->(m:Journal)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a total view count of over 10 million?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.total_view_count > 10000000\\nRETURN s.name, s.total_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the most unique games played?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH s, count(distinct g) as uniqueGames\\nRETURN s.name as streamName, uniqueGames\\nORDER BY uniqueGames DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget for movies produced in each country?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH c.name AS country_name, avg(m.budget) AS average_budget\\nRETURN country_name, average_budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have acted in movies that have a plot mentioning 'adventure'?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.plot CONTAINS 'adventure'\\nRETURN a.name AS actor"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character has the lowest book1PageRank value?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1PageRank\\nORDER BY c.book1PageRank ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies directed by a person who has also acted in movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE exists{ (p)-[:ACTED_IN]->(:Movie) }\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the title values from 20 Article that are linked to Journal via PUBLISHED_IN with year = 2004, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year='2004'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses have received reviews with a wider range of dates, indicating consistent customer engagement?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWITH b, min(r.date) AS minDate, max(r.date) AS maxDate\\nRETURN b.name AS businessName, duration.inDays(minDate, maxDate).days AS dateRange\\nORDER BY dateRange DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Journal with name equal to Topology!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Topology'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the release year of the movie \"Something's Gotta Give\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Something's Gotta Give\"})\\nRETURN m.released"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities were inactivated on '27-FEB-2014'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.inactivation_date = '27-FEB-2014'\\nRETURN e.name AS entity_name, e.inactivation_date AS inactivation_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the article_id of the Article that is not related to the Article with the title $A_{\\infty}$-structures on an elliptic curve!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Article {title: '$A_{\\infty}$-structures on an elliptic curve'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 countries by the number of filings they are involved in as both originator and beneficiary."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e1:Entity)-[:COUNTRY]->(c1:Country), (f)-[:BENEFITS]->(e2:Entity)-[:COUNTRY]->(c2:Country)\\nWHERE c1 = c2\\nWITH c1 AS country, COUNT(f) AS filings_count\\nRETURN country.name AS country_name, filings_count\\nORDER BY filings_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the titles of the first 3 questions with a score of -1?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score = -1\\nRETURN q.title\\nORDER BY q.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Keyword for which key_id is 4969a8e0646cdb8842726781e7637625, and what are their relationships to Keyword?"}, {"role": "assistant", "content": "MATCH (c:Keyword)<-[r]-(n)\\nWHERE c.key_id = '4969a8e0646cdb8842726781e7637625'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find the movies that were produced in the country \"US\"."}, {"role": "assistant", "content": "MATCH (c:Country {id: 'US'})<-[:PRODUCED_IN_COUNTRY]-(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to DOI for which doi_id is 673313cb2dcde5d215a7e7ec2788f676, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'673313cb2dcde5d215a7e7ec2788f676'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which title is Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (n:Article {title:'Subexponential groups in 4-manifold topology'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 characters based on the sum of their centrality values across all books."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c, c.centrality + c.book1BetweennessCentrality + c.book1PageRank + c.book45PageRank AS totalCentrality\\nRETURN c.name AS characterName, totalCentrality\\nORDER BY totalCentrality DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the author_id and the last_name for those Author where author_id starts with 1!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH '1'\\nRETURN n.author_id AS author_id, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1069 and Topic, for which label equals Linear Algebra_1?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1069'})-[*]->(d:Topic{label:'Linear Algebra_1'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 actors who have acted in more than one movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movie_count\\nWHERE movie_count > 1\\nRETURN p.name, movie_count\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1052 or article_id is less than 1006!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1052 OR n.article_id < 1006\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Keyword where key_id ends with d2!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id =~'d2.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all streams that have the same 'HAS_LANGUAGE' relationship as the stream with name 'itsbigchase'."}, {"role": "assistant", "content": "MATCH (s:Stream {name: 'itsbigchase'})-[:HAS_LANGUAGE]->(l:Language)\\nWITH s, collect(l) AS languages\\nMATCH (otherStreams:Stream)-[:HAS_LANGUAGE]->(l)\\nWHERE l IN languages AND otherStreams <> s\\nRETURN DISTINCT otherStreams.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where abstract is An inclusion of observable nets satisfying duality induces an inclusion of\ncanonical field nets. Any Bose net intermediate between the observable net and\nthe field net and satisfying duality is the fixed-point net of the field net\nunder a compact group. This compact group is its canonical gauge group if the\noccurrence of sectors with infinite statistics can be ruled out for the\nobservable net and its vacuum Hilbert space is separable.\n, through Journal via PUBLISHED_IN with meta 218?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' An inclusion of observable nets satisfying duality induces an inclusion of canonical field nets. Any Bose net intermediate between the observable net and the field net and satisfying duality is the fixed-point net of the field net under a compact group. This compact group is its canonical gauge group if the occurrence of sectors with infinite statistics can be ruled out for the observable net and its vacuum Hilbert space is separable. '})-[:PUBLISHED_IN {meta: '218'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"last_update\": \"STRING\",\n \"create_date\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"email\": \"STRING\",\n \"last_name\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"active\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"name\": \"STRING\",\n \"category_id\": \"INTEGER\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"actor_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"last_name\": \"STRING\"\n }\n },\n \"Rental\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"return_date\": \"STRING\",\n \"rental_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"rental_rate\": \"FLOAT\",\n \"rental_duration\": \"INTEGER\",\n \"language_id\": \"INTEGER\",\n \"title\": \"STRING\",\n \"last_update\": \"STRING\",\n \"description\": \"STRING\",\n \"release_year\": \"INTEGER\",\n \"length\": \"INTEGER\",\n \"replacement_cost\": \"FLOAT\",\n \"rating\": \"STRING\",\n \"film_id\": \"INTEGER\",\n \"special_features\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"country\": \"STRING\"\n }\n },\n \"Inventory\": {\n \"properties\": {\n \"last_update\": \"STRING\",\n \"store_id\": \"INTEGER\",\n \"film_id\": \"INTEGER\",\n \"inventory_id\": \"INTEGER\"\n }\n },\n \"Addres\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"phone\": \"STRING\",\n \"last_update\": \"STRING\",\n \"address\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"postal_code\": \"STRING\",\n \"address2\": \"STRING\",\n \"district\": \"STRING\"\n }\n },\n \"City\": {\n \"properties\": {\n \"city_id\": \"INTEGER\",\n \"last_update\": \"STRING\",\n \"country_id\": \"INTEGER\",\n \"city\": \"STRING\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"last_update\": \"STRING\",\n \"payment_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"payment_id\": \"INTEGER\",\n \"rental_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Film\",\n \"type\": \"STARS_IN\",\n \"to\": \"Actor\"\n },\n {\n \"from\": \"Category\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Film\"\n }\n ],\n \"relationshipProperties\": {\n \"STARS_IN\": {\n \"last_update\": \"STRING\"\n },\n \"RELATED_TO\": {\n \"last_update\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Return the titles of any movies with an R rating."}, {"role": "assistant", "content": "MATCH (f:Film)\\nWHERE f.rating = 'R'\\nRETURN f.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which categories contain products that have never been reordered (reorder level is 0)?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.reorderLevel = 0\\nRETURN DISTINCT c.categoryName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2007-05-23 and the year of the update_date is 2015!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2007-05-23' AND date(n.update_date).year = 2015\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Return the most frequent result across all musicals."}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWITH musical.Result AS Result, count(musical.Result) AS count\\nRETURN Result\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What is the color group name of 'Selena shopper (1)'?"}, {"role": "assistant", "content": "MATCH (a:Article {prodName: 'Selena shopper (1)'})\\nRETURN a.colourGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the review texts for 'Zootown Brew' and who wrote them?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Zootown Brew'})<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nRETURN r.text AS reviewText, u.name AS userName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 oldest movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.release_date\\nORDER BY m.release_date ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Author that has last_name Chakrabarti!"}, {"role": "assistant", "content": "MATCH path=(:Author {last_name:'Chakrabarti'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Characteristic\": {\n \"properties\": {\n \"characteristic_name\": \"STRING\",\n \"characteristic_id\": \"INTEGER\",\n \"characteristic_data_type\": \"STRING\",\n \"characteristic_type_code\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_category_code\": \"STRING\",\n \"typical_buying_price\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"color_code\": \"STRING\",\n \"typical_selling_price\": \"STRING\",\n \"product_description\": \"STRING\"\n }\n },\n \"RefCharacteristicType\": {\n \"properties\": {\n \"characteristic_type_code\": \"STRING\",\n \"characteristic_type_description\": \"STRING\"\n }\n },\n \"RefColor\": {\n \"properties\": {\n \"color_code\": \"STRING\",\n \"color_description\": \"STRING\"\n }\n },\n \"RefProductCategory\": {\n \"properties\": {\n \"unit_of_measure\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_category_description\": \"STRING\"\n }\n },\n \"ProductCharacteristic\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"characteristic_id\": \"INTEGER\",\n \"product_characteristic_value\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the product with the color description 'yellow'?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:ASSOCIATED_WITH]->(c:RefColor)\\nWHERE c.color_description = 'yellow'\\nRETURN p.product_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Journal for which name=Geom. Topol!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Geom. Topol'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of streams that play the game 'Rust' and have more than 100,000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE s.followers > 100000\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where title is Solutions to congruences using sets with the property of Baire and traversing through Report with report_id d4a4409b7e8a77f4894c998a04162257!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[*]->(d:Report{report_id:'d4a4409b7e8a77f4894c998a04162257'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Volume\": {\n \"properties\": {\n \"Song\": \"STRING\",\n \"Volume_Issue\": \"STRING\",\n \"Weeks_on_Top\": \"FLOAT\",\n \"Artist_ID\": \"INTEGER\",\n \"Issue_Date\": \"STRING\",\n \"Volume_ID\": \"INTEGER\"\n }\n },\n \"MusicFestival\": {\n \"properties\": {\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Date_of_ceremony\": \"STRING\",\n \"Volume\": \"INTEGER\",\n \"Music_Festival\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Famous_Title\": \"STRING\",\n \"Famous_Release_date\": \"STRING\",\n \"Artist_ID\": \"INTEGER\",\n \"Artist\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "What are the the songs in volumes, listed in ascending order?"}, {"role": "assistant", "content": "MATCH (v:Volume)\\nRETURN v.Song\\nORDER BY v.Song"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the sum of the sizes of the first 3 users who have interacted with users with a color of '#4A708B'?"}, {"role": "assistant", "content": "MATCH (u:User {color: '#4A708B'})<-[:INTERACTED]-(other:User)\\nWITH other\\nLIMIT 3\\nRETURN sum(other.size)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the 'created_at' date of the oldest tweet in the dataset?"}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nRETURN t.created_at\\nORDER BY t.created_at ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Room\": {\n \"properties\": {\n \"decor\": \"STRING\",\n \"beds\": \"INTEGER\",\n \"RoomId\": \"STRING\",\n \"roomName\": \"STRING\",\n \"bedType\": \"STRING\",\n \"maxOccupancy\": \"INTEGER\",\n \"basePrice\": \"INTEGER\"\n }\n },\n \"Reservation\": {\n \"properties\": {\n \"CheckIn\": \"STRING\",\n \"Room\": \"STRING\",\n \"Kids\": \"INTEGER\",\n \"FirstName\": \"STRING\",\n \"CheckOut\": \"STRING\",\n \"Adults\": \"INTEGER\",\n \"LastName\": \"STRING\",\n \"Code\": \"INTEGER\",\n \"Rate\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n },\n {\n \"from\": \"Reservation\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Room\"\n }\n ]\n}"}, {"role": "user", "content": "What are the name of rooms that cost more than the average."}, {"role": "assistant", "content": "MATCH (room:Room)\\nWITH avg(room.basePrice) as averagePrice\\nMATCH (room:Room)\\nWHERE room.basePrice > averagePrice\\nRETURN room.roomName as roomName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the 3 youngest directors in the database?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(:Movie)\\nRETURN p.name, p.born\\nORDER BY p.born DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with more than 3 roles listed in their ACTED_IN relationships."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)\\nWHERE size(r.roles) > 3\\nRETURN m.title, collect(p.name) AS actors, r.roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List all services that a specific application depends on, for example, 'webserver'."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})-[:DEPENDS_ON]->(service:Service)\\nRETURN service.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total revenue generated by movies released in 1995?"}, {"role": "assistant", "content": "MATCH (m:Movie {year: 1995})\\nWITH sum(m.revenue) AS totalRevenue\\nRETURN totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average popularity of movies in the 'Science Fiction' genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Science Fiction'})\\nWITH avg(m.popularity) AS average_popularity\\nRETURN average_popularity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic for which cluster is 10!"}, {"role": "assistant", "content": "MATCH (n:Topic {cluster:'10'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with a community number less than 580?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community < 580\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 processes that are instances of the process '8966'?"}, {"role": "assistant", "content": "MATCH (p:Process {name: '8966'})-[:INSTANCE*1..3]->(related:Process)\\nRETURN related\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is Latex, 9 pages, no figures and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'Latex, 9 pages, no figures'})-[r:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 tweets with links pointing to 'https://twitter.com'."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE l.url STARTS WITH 'https://twitter.com'\\nRETURN t.text AS tweet_text, t.favorites AS favorites, l.url AS link_url\\nORDER BY t.favorites DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of DOI that is HAS_DOI connected to Article that has article_id equal to 1009?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE n.article_id = 1009\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a vote count less than 50?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes < 50\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Mill\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"location\": \"STRING\",\n \"name\": \"STRING\",\n \"notes\": \"STRING\",\n \"architect_id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"built_year\": \"INTEGER\"\n }\n },\n \"Architect\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"gender\": \"STRING\"\n }\n },\n \"Bridge\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"location\": \"STRING\",\n \"name\": \"STRING\",\n \"length_meters\": \"FLOAT\",\n \"length_feet\": \"FLOAT\",\n \"architect_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the most common mill type, and how many are there?"}, {"role": "assistant", "content": "MATCH (m:Mill)\\nRETURN m.type as type, count(*) as cnt\\nORDER BY cnt DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article for which abstract is The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n, and what are their relationships to Article?"}, {"role": "assistant", "content": "MATCH (c:Article)<-[r]-(n)\\nWHERE c.abstract = ' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with a rating higher than 70 and released after 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE m.released > 2000 AND r.rating > 70\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total box office revenue of movies starring Dwayne Johnson?"}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Dwayne Johnson\"})-[:CAST_FOR]->(m:Movie)\\nWITH sum(m.revenue) AS totalRevenue\\nRETURN totalRevenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where title is Subexponential groups in 4-manifold topology and UpdateDate, with update_date equal 2018-11-28, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{title:'Subexponential groups in 4-manifold topology'})-[*]-(e:UpdateDate{update_date:'2018-11-28'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where title is Summation and transformation formulas for elliptic hypergeometric series!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.title='Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which movies did Keanu Reeves play in?\""}, {"role": "assistant", "content": "MATCH (p:Person {name: \"Keanu Reeves\"})-[:ACTED_IN]->(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 products with the lowest unit price in the 'Seafood' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Seafood'})\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the shortest tagline?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWITH m, size(m.tagline) AS taglineLength\\nORDER BY taglineLength ASC\\nLIMIT 1\\nRETURN m.title, taglineLength"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all entities associated with 'Mossack Fonseca' that have an inactivation date on '16-FEB-2009'."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.service_provider = 'Mossack Fonseca' AND e.inactivation_date = '16-FEB-2009'\\nRETURN e.name AS entity_name, e.inactivation_date AS inactivation_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of first_name and affiliation from Author where first_name does not start with S!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.first_name STARTS WITH 'S'\\nRETURN DISTINCT n.first_name AS first_name, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 characters with the highest pagerank values."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.pagerank\\nORDER BY c.pagerank DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Device\": {\n \"properties\": {\n \"Device\": \"STRING\",\n \"Carrier\": \"STRING\",\n \"Software_Platform\": \"STRING\",\n \"Applications\": \"STRING\",\n \"Device_ID\": \"INTEGER\",\n \"Package_Version\": \"STRING\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Open_Date\": \"STRING\",\n \"Shop_Name\": \"STRING\",\n \"Location\": \"STRING\",\n \"Open_Year\": \"INTEGER\",\n \"Shop_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Device\",\n \"type\": \"SELLS\",\n \"to\": \"Shop\"\n },\n {\n \"from\": \"Device\",\n \"type\": \"SELLS\",\n \"to\": \"Shop\"\n }\n ],\n \"relationshipProperties\": {\n \"SELLS\": {\n \"Quantity\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "What are the different software platforms for devices, and how many devices have each?"}, {"role": "assistant", "content": "MATCH (d:Device)\\nRETURN d.Software_Platform as Software_Platform, COUNT(*) AS count\\nORDER BY count DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with the highest vote count that are in the same collection as \"Toy Story\"."}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: 'Toy Story'})-[:IN_COLLECTION]->(collection:Collection)\\nMATCH (m:Movie)-[:IN_COLLECTION]->(collection)\\nRETURN m.title AS movie_title, m.vote_count\\nORDER BY m.vote_count DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 games most frequently played by streams with VIP users."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWHERE exists { (s)-[:VIP]->(:User) }\\nRETURN g.name, count(s) AS frequency\\nORDER BY frequency DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies directed by someone who was born after 1970."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE p.born > date('1970-01-01')\\nRETURN m.title AS movie, p.name AS director, p.born AS birthDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where specifications is math.IT and DOI, with name equal 10.1006/jnth.2000.2616, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{specifications:'math.IT'})-[*]-(e:DOI{name:'10.1006/jnth.2000.2616'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many students are enrolled in college?"}, {"role": "assistant", "content": "MATCH (c:College)\\nRETURN sum(c.enr)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 filings with the largest number of concerns."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:CONCERNS]->(e:Entity)\\nWITH f, count(e) AS concerns_count\\nORDER BY concerns_count DESC\\nLIMIT 5\\nRETURN f, concerns_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of businesses that have not been reviewed yet."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE NOT (b)-[:REVIEWS]->()\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 countries where the beneficiary banks are located, based on the total amount transferred."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS country, SUM(f.amount) AS total_amount\\nRETURN country, total_amount\\nORDER BY total_amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the article_id from Article where article_id is not 1063!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id <> '1063'\\nRETURN DISTINCT n.article_id AS article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 tweets that 'Neo4j' retweets."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet)-[:RETWEETS]->(retweetedTweet)\\nRETURN retweetedTweet.text AS retweeted_tweet_text\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n and traversing through Author with affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[*]->(d:Author{affiliation:'unspecified'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of users who are moderators for more than three streams?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWITH u, count(s) AS moderatedStreams\\nWHERE moderatedStreams > 3\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where author_id is 1184638302ce384c7549eeead253af2d and traversing through Keyword with key_id 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'1184638302ce384c7549eeead253af2d'})-[*]->(d:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 genres most commonly found in videos."}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre)\\nRETURN g.name, count(v) AS videoCount\\nORDER BY videoCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of 3 persons who were born after 1980."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born > 1980\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget of movies in the 'Science Fiction' genre?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Science Fiction'})<-[:IN_GENRE]-(m:Movie)\\nRETURN avg(m.budget)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which reviews mention 'sandwich' in their text?"}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.text CONTAINS 'sandwich'\\nRETURN r.reviewId, r.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between DOI where doi_id is 57aa19619324dcd39039c52e67002af3 and Topic, for which cluster equals 7?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'57aa19619324dcd39039c52e67002af3'})-[*]->(d:Topic{cluster:'7'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 movies with the most actors involved."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH m, count(a) as actorCount\\nORDER BY actorCount DESC\\nLIMIT 5\\nRETURN m.title as MovieTitle, actorCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Author with the author_id 700c655b31f9b9275ba10a9875c15332!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Author {author_id: '700c655b31f9b9275ba10a9875c15332'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Volume\": {\n \"properties\": {\n \"Song\": \"STRING\",\n \"Volume_Issue\": \"STRING\",\n \"Weeks_on_Top\": \"FLOAT\",\n \"Artist_ID\": \"INTEGER\",\n \"Issue_Date\": \"STRING\",\n \"Volume_ID\": \"INTEGER\"\n }\n },\n \"MusicFestival\": {\n \"properties\": {\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Date_of_ceremony\": \"STRING\",\n \"Volume\": \"INTEGER\",\n \"Music_Festival\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Famous_Title\": \"STRING\",\n \"Famous_Release_date\": \"STRING\",\n \"Artist_ID\": \"INTEGER\",\n \"Artist\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "Return the dates of ceremony and the results of all music festivals"}, {"role": "assistant", "content": "MATCH (m:MusicFestival)-[r*]->(v:Volume)\\nRETURN m.Date_of_ceremony, m.Result"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Type\": \"STRING\",\n \"Ship_ID\": \"INTEGER\",\n \"Nationality\": \"STRING\",\n \"Tonnage\": \"INTEGER\"\n }\n },\n \"Mission\": {\n \"properties\": {\n \"Mission_ID\": \"INTEGER\",\n \"Speed_knots\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Launched_Year\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\",\n \"Code\": \"STRING\",\n \"Fate\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show different types of ships and the average tonnage of ships of each type."}, {"role": "assistant", "content": "MATCH (s:Ship)\\nRETURN s.Type as TYPE, avg(s.Tonnage)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author for which affiliation is Ohio State University, and what are their relationships to Author?"}, {"role": "assistant", "content": "MATCH (c:Author)<-[r]-(n)\\nWHERE c.affiliation = 'Ohio State University'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character, with a 'community' value greater than 600, has interacted with 'Aemon-Targaryen-(Maester-Aemon)' and has the lowest 'book45PageRank'?"}, {"role": "assistant", "content": "MATCH (aemon:Character {name: 'Aemon-Targaryen-(Maester-Aemon)'})-[*]-(other:Character)\\nWHERE other.community > 600\\nRETURN other.name, other.book45PageRank\\nORDER BY other.book45PageRank ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author where author_id is befdd60b44b9cd4d5ffc084ce31d92d4!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id = 'befdd60b44b9cd4d5ffc084ce31d92d4'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 5 users who have been VIPs in streams with fewer than 10,000 followers?"}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s:Stream)\\nWHERE s.followers < 10000\\nRETURN u.name\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which machines are running the OS named 'RHEL'?"}, {"role": "assistant", "content": "MATCH (m:Machine)-[:RUNS]->(os:OS {name: 'RHEL'})\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.abstract=' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the streams with the highest total view count that have a user moderator."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(:User)\\nRETURN s.name, s.total_view_count\\nORDER BY s.total_view_count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Article for which title is Maslov class and minimality in Calabi-Yau manifolds!"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Maslov class and minimality in Calabi-Yau manifolds'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Keyword for which name is log-balanced, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'log-balanced'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Volume\": {\n \"properties\": {\n \"Song\": \"STRING\",\n \"Volume_Issue\": \"STRING\",\n \"Weeks_on_Top\": \"FLOAT\",\n \"Artist_ID\": \"INTEGER\",\n \"Issue_Date\": \"STRING\",\n \"Volume_ID\": \"INTEGER\"\n }\n },\n \"MusicFestival\": {\n \"properties\": {\n \"Result\": \"STRING\",\n \"Category\": \"STRING\",\n \"Date_of_ceremony\": \"STRING\",\n \"Volume\": \"INTEGER\",\n \"Music_Festival\": \"STRING\",\n \"ID\": \"INTEGER\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Famous_Title\": \"STRING\",\n \"Famous_Release_date\": \"STRING\",\n \"Artist_ID\": \"INTEGER\",\n \"Artist\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"MusicFestival\",\n \"type\": \"\",\n \"to\": \"Volume\"\n },\n {\n \"from\": \"Volume\",\n \"type\": \"CREATED_BY\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "List the age of all music artists."}, {"role": "assistant", "content": "MATCH (a:Artist)\\nRETURN a.Age"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams created in 2020 have users who are both moderators and VIPs?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(u:User), (s)-[:VIP]->(u)\\nWHERE s.createdAt >= datetime('2020-01-01T00:00:00Z') AND s.createdAt <= datetime('2020-12-31T23:59:59Z')\\nRETURN s, u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What categories have businesses with a location in 'Missoula'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.city = 'Missoula'\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of 3 businesses reviewed by 'Angie' in 'CA'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {state: 'CA'})\\nRETURN b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Can you list streams that have a follower count between 1000 and 5000?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers >= 1000 AND s.followers <= 5000\\nRETURN s.name AS stream_name, s.followers"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What type of fit or description is provided for 'Wowcha Smock HR Brief' in its variant details?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'Wowcha Smock HR Brief'\\nRETURN p.detailDesc"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the first 5 countries with a top-level domain of 'AO'."}, {"role": "assistant", "content": "MATCH (c:Country {tld: 'AO'})\\nRETURN c\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the update_date of the UpdateDate that is not related to the Categories with the category_id 994d468c3f0dd780baf58c6d7f205afd!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Categories {category_id: '994d468c3f0dd780baf58c6d7f205afd'})\\nWHERE NOT (n) --> (:Categories)\\nRETURN n.update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with the word \"Slapstick\" in their review summary?"}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary CONTAINS 'Slapstick'\\nRETURN avg(r.rating)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who directed 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Speed Racer'})<-[:DIRECTED]-(d:Person)\\nRETURN d.name AS director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users amplified by 'Me'?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:AMPLIFIES]->(user:User)\\nRETURN user\\nORDER BY user.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where article_id is 4129 and PUBLISHED_IN has meta on 248!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '248'}]->(m)\\nWHERE n.article_id='4129'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have beneficiary banks that have been involved in the highest number of filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(f) AS Filings\\nORDER BY Filings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have an address in 'KOWLOON; HONG KONG'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:registered_address]->(a:Address)\\nWHERE a.address = 'KOWLOON; HONG KONG'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify streams where the same user is both a chatter and a moderator."}, {"role": "assistant", "content": "MATCH (u:User)-[:CHATTER]->(s:Stream), (u)-[:MODERATOR]->(s)\\nRETURN s, u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which teams are associated with the top 3 streams by total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWITH s, t\\nORDER BY s.total_view_count DESC\\nLIMIT 3\\nRETURN t.name AS team_name, s.name AS stream_name, s.total_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where category_id is 33657234da1dc070ea09e7c31bb86abb and Article, for which article_id is 1071?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'33657234da1dc070ea09e7c31bb86abb'}), (b:Article{article_id:'1071'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which doi_id starts with ee4!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id STARTS WITH 'ee4'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "List all statement ids and statement details."}, {"role": "assistant", "content": "MATCH (s:Statement)\\nRETURN s.Statement_ID, s.Statement_Details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Apartment\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"bathroom_count\": \"INTEGER\",\n \"apt_number\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"apt_type_code\": \"STRING\",\n \"bedroom_count\": \"INTEGER\",\n \"room_count\": \"STRING\"\n }\n },\n \"Guest\": {\n \"properties\": {\n \"gender_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"date_of_birth\": \"STRING\",\n \"guest_first_name\": \"STRING\",\n \"guest_last_name\": \"STRING\"\n }\n },\n \"ApartmentBooking\": {\n \"properties\": {\n \"booking_end_date\": \"STRING\",\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"booking_status_code\": \"STRING\",\n \"guest_id\": \"INTEGER\",\n \"booking_start_date\": \"STRING\"\n }\n },\n \"ApartmentFacility\": {\n \"properties\": {\n \"apt_id\": \"INTEGER\",\n \"facility_code\": \"STRING\"\n }\n },\n \"ApartmentBuilding\": {\n \"properties\": {\n \"building_full_name\": \"STRING\",\n \"building_short_name\": \"STRING\",\n \"building_manager\": \"STRING\",\n \"building_id\": \"INTEGER\",\n \"building_description\": \"STRING\",\n \"building_phone\": \"STRING\",\n \"building_address\": \"STRING\"\n }\n },\n \"ViewUnitStatu\": {\n \"properties\": {\n \"apt_booking_id\": \"INTEGER\",\n \"apt_id\": \"INTEGER\",\n \"available_yn\": \"INTEGER\",\n \"status_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ApartmentBooking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Guest\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n },\n {\n \"from\": \"ApartmentFacility\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"Apartment\",\n \"type\": \"PART_OF\",\n \"to\": \"ApartmentBuilding\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"IS_LOCATED_IN\",\n \"to\": \"Apartment\"\n },\n {\n \"from\": \"ViewUnitStatu\",\n \"type\": \"RELATED_TO\",\n \"to\": \"ApartmentBooking\"\n }\n ]\n}"}, {"role": "user", "content": "What are dates of birth of all the guests whose gender is \"Male\"?"}, {"role": "assistant", "content": "MATCH (g:Guest)\\nWHERE g.gender_code = \"Male\"\\nRETURN g.date_of_birth"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users follow 'Neo4j' and have more than 500 followers?"}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(:Me {screen_name: 'neo4j'})\\nWHERE u.followers > 500\\nRETURN u.screen_name, u.followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies where Nancy Meyers was involved either by acting, directing, producing, or writing."}, {"role": "assistant", "content": "MATCH (n:Person {name: \"Nancy Meyers\"})-[:ACTED_IN|DIRECTED|PRODUCED|WROTE]->(m:Movie)\\nRETURN m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Author that has first_name Randall!"}, {"role": "assistant", "content": "MATCH path=(:Author {first_name:'Randall'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Train\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Train_ID\": \"INTEGER\",\n \"Arrival\": \"STRING\",\n \"Train_Num\": \"STRING\",\n \"From\": \"STRING\",\n \"Railway_ID\": \"INTEGER\"\n }\n },\n \"Railway\": {\n \"properties\": {\n \"Railway\": \"STRING\",\n \"Built\": \"STRING\",\n \"Wheels\": \"STRING\",\n \"Builder\": \"STRING\",\n \"Location\": \"STRING\",\n \"ObjectNumber\": \"STRING\",\n \"Railway_ID\": \"INTEGER\"\n }\n },\n \"Manager\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Level\": \"INTEGER\",\n \"Working_year_starts\": \"STRING\",\n \"Country\": \"STRING\",\n \"Manager_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Train\",\n \"type\": \"OPERATES_ON\",\n \"to\": \"Railway\"\n },\n {\n \"from\": \"Railway\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Manager\"\n },\n {\n \"from\": \"Train\",\n \"type\": \"OPERATES_ON\",\n \"to\": \"Railway\"\n },\n {\n \"from\": \"Railway\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Manager\"\n }\n ],\n \"relationshipProperties\": {\n \"EMPLOYED_BY\": {\n \"From_Year\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "List the object number of railways that do not have any trains."}, {"role": "assistant", "content": "MATCH (r:Railway)\\nWHERE NOT (:Train)-[:OPERATES_ON]->(r)\\nRETURN r.ObjectNumber"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all streams that have a moderator who also moderates a stream that belongs to a team created before 2016."}, {"role": "assistant", "content": "MATCH (s1:Stream)-[:MODERATOR]->(m)\\nMATCH (m)-[:MODERATOR]->(s2:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.createdAt < datetime('2016-01-01T00:00:00Z')\\nRETURN DISTINCT s1.id, s1.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with the summary \"Silly, but fun\"?"}, {"role": "assistant", "content": "MATCH ()-[:REVIEWED {summary: 'Silly, but fun'}]->(m:Movie)\\nRETURN avg(m.rating) AS average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the highest number of votes received by a movie released before 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released < 2000\\nWITH m.votes AS votes, m\\nRETURN max(votes)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which title is Open sets satisfying systems of congruences!"}, {"role": "assistant", "content": "MATCH (n:Article {title:'Open sets satisfying systems of congruences'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"poker_player\": {\n \"properties\": {\n \"poker_player_id\": \"STRING\",\n \"people_id\": \"STRING\",\n \"final_table_made\": \"STRING\",\n \"best_finish\": \"STRING\",\n \"money_rank\": \"STRING\",\n \"earnings\": \"STRING\"\n }\n },\n \"people\": {\n \"properties\": {\n \"people_id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_date\": \"STRING\",\n \"height\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the final tables made and best finishes for all poker players?"}, {"role": "assistant", "content": "MATCH (poker_player:poker_player)\\nRETURN poker_player.Final_Table_Made,poker_player.Best_Finish"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title for Article combined with the abstract for Article, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title AS Records\\nUNION\\nMATCH (m:Article)\\nRETURN m.abstract AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"breeds\": {\n \"properties\": {\n \"breed_code\": \"STRING\",\n \"breed_name\": \"STRING\"\n }\n },\n \"charges\": {\n \"properties\": {\n \"charge_id\": \"STRING\",\n \"charge_type\": \"STRING\",\n \"charge_amount\": \"STRING\"\n }\n },\n \"sizes\": {\n \"properties\": {\n \"size_code\": \"STRING\",\n \"size_description\": \"STRING\"\n }\n },\n \"treatment_types\": {\n \"properties\": {\n \"treatment_type_code\": \"STRING\",\n \"treatment_type_description\": \"STRING\"\n }\n },\n \"owners\": {\n \"properties\": {\n \"owner_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"dogs\": {\n \"properties\": {\n \"dog_id\": \"STRING\",\n \"owner_id\": \"STRING\",\n \"abandoned_yn\": \"STRING\",\n \"breed_code\": \"STRING\",\n \"size_code\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"gender\": \"STRING\",\n \"weight\": \"STRING\",\n \"date_arrived\": \"STRING\",\n \"date_adopted\": \"STRING\",\n \"date_departed\": \"STRING\"\n }\n },\n \"professionals\": {\n \"properties\": {\n \"professional_id\": \"STRING\",\n \"role_code\": \"STRING\",\n \"first_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"last_name\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"treatments\": {\n \"properties\": {\n \"treatment_id\": \"STRING\",\n \"dog_id\": \"STRING\",\n \"professional_id\": \"STRING\",\n \"treatment_type_code\": \"STRING\",\n \"date_of_treatment\": \"STRING\",\n \"cost_of_treatment\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the arriving date and the departing date of all the dogs?"}, {"role": "assistant", "content": "MATCH (dogs:Dogs)\\nRETURN dogs.date_arrived,dogs.date_departed"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Mill\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"location\": \"STRING\",\n \"name\": \"STRING\",\n \"notes\": \"STRING\",\n \"architect_id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"built_year\": \"INTEGER\"\n }\n },\n \"Architect\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"nationality\": \"STRING\",\n \"name\": \"STRING\",\n \"gender\": \"STRING\"\n }\n },\n \"Bridge\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"location\": \"STRING\",\n \"name\": \"STRING\",\n \"length_meters\": \"FLOAT\",\n \"length_feet\": \"FLOAT\",\n \"architect_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average length in feet of the bridges?"}, {"role": "assistant", "content": "MATCH (b:Bridge)\\nRETURN avg(b.length_feet)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entrepreneur\": {\n \"properties\": {\n \"Investor\": \"STRING\",\n \"Entrepreneur_ID\": \"INTEGER\",\n \"Money_Requested\": \"FLOAT\",\n \"Company\": \"STRING\",\n \"People_ID\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Date_of_Birth\": \"STRING\",\n \"Weight\": \"FLOAT\",\n \"Height\": \"FLOAT\",\n \"People_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the companies of entrepreneurs, ordered descending by amount of money requested?"}, {"role": "assistant", "content": "MATCH (e:Entrepreneur)\\nRETURN e.Company\\nORDER BY e.Money_Requested DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Find Topic that has a description which begins with t, and is linked to Keyword via HAS_TOPIC relationship, where Keyword has key_id 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id: '5d6533e2a77e3daabc184ee8f2441597'}) -[:HAS_TOPIC]- (m:Topic)\\nWHERE m.description STARTS WITH 't'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which keyword is associated with the most highly-rated movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)<-[:HAS_KEYWORD]-(otherMovies:Movie)\\nWITH k, avg(otherMovies.average_vote) AS averageRating\\nRETURN k.name\\nORDER BY averageRating DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"addresses\": {\n \"properties\": {\n \"address_id\": \"STRING\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"line_3\": \"STRING\",\n \"city\": \"STRING\",\n \"zip_postcode\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"other_address_details\": \"STRING\"\n }\n },\n \"courses\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"course_name\": \"STRING\",\n \"course_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"departments\": {\n \"properties\": {\n \"department_id\": \"STRING\",\n \"department_name\": \"STRING\",\n \"department_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"degree_programs\": {\n \"properties\": {\n \"degree_program_id\": \"STRING\",\n \"department_id\": \"STRING\",\n \"degree_summary_name\": \"STRING\",\n \"degree_summary_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"sections\": {\n \"properties\": {\n \"section_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"section_name\": \"STRING\",\n \"section_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"semesters\": {\n \"properties\": {\n \"semester_id\": \"STRING\",\n \"semester_name\": \"STRING\",\n \"semester_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"students\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"current_address_id\": \"STRING\",\n \"permanent_address_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"email_address\": \"STRING\",\n \"ssn\": \"STRING\",\n \"date_first_registered\": \"STRING\",\n \"date_left\": \"STRING\",\n \"other_student_details\": \"STRING\"\n }\n },\n \"student_enrolment\": {\n \"properties\": {\n \"student_enrolment_id\": \"STRING\",\n \"degree_program_id\": \"STRING\",\n \"semester_id\": \"STRING\",\n \"student_id\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"student_enrolment_courses\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"student_enrolment_id\": \"STRING\"\n }\n },\n \"transcripts\": {\n \"properties\": {\n \"transcript_id\": \"STRING\",\n \"transcript_date\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"transcript_contents\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"transcript_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the earliest date of a transcript release, and what details can you tell me?"}, {"role": "assistant", "content": "MATCH (transcripts:Transcripts)\\nRETURN transcripts.transcript_date,transcripts.other_details\\nORDER BY transcripts.transcript_date ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average RAM size of machines running the \"logstash\" application?"}, {"role": "assistant", "content": "MATCH (app:Application {name: \"logstash\"})-[:RUNS]->(machine:Machine)-[:TYPE]->(type:Type)\\nRETURN avg(type.ram)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI for which name is 10.1142/S0219061301000107!"}, {"role": "assistant", "content": "MATCH (n:DOI {name:'10.1142/S0219061301000107'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 2204 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '2204'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"conductor\": {\n \"properties\": {\n \"conductor_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"nationality\": \"STRING\",\n \"year_of_work\": \"STRING\"\n }\n },\n \"orchestra\": {\n \"properties\": {\n \"orchestra_id\": \"STRING\",\n \"orchestra\": \"STRING\",\n \"conductor_id\": \"STRING\",\n \"record_company\": \"STRING\",\n \"year_of_founded\": \"STRING\",\n \"major_record_format ( DVD\": \"STRING\",\n \"CD )\": \"STRING\"\n }\n },\n \"performance\": {\n \"properties\": {\n \"performance_id\": \"STRING\",\n \"orchestra_id\": \"STRING\",\n \"type\": \"STRING\",\n \"date\": \"STRING\",\n \"official_ratings_(millions)\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"share\": \"STRING\"\n }\n },\n \"show\": {\n \"properties\": {\n \"show_id\": \"STRING\",\n \"performance_id\": \"STRING\",\n \"if_first_show\": \"STRING\",\n \"result\": \"STRING\",\n \"attendance\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of orchestras that have CD or DVD as their record format."}, {"role": "assistant", "content": "MATCH (orchestra:orchestra)\\nWHERE orchestra.Major_Record_Format = 'CD' OR orchestra.Major_Record_Format = 'DVD'\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which software applications depend on the service with the name 'java'?"}, {"role": "assistant", "content": "MATCH (s:Service {name: 'java'})<-[:DEPENDS_ON]-(a:Application)\\nRETURN a.name AS application_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all switches in rack 5?"}, {"role": "assistant", "content": "MATCH (r:Rack {rack: 5})-[:HOLDS]->(s:Switch)\\nRETURN s.ip AS SwitchIP"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic for which description is The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.!"}, {"role": "assistant", "content": "MATCH (n:Topic {description:'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first three people who directed a movie with a tagline containing the word 'real'."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.tagline CONTAINS 'real'\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `book45PageRank` of characters who interact with \"Cersei-Lannister\"?"}, {"role": "assistant", "content": "MATCH (cersei:Character {name: \"Cersei-Lannister\"})-[:INTERACTS45]-(other:Character)\\nWITH other\\nRETURN avg(other.book45PageRank) AS average_page_rank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 earliest reviews."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN r, u, b\\nORDER BY r.date ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were asked by users with a display name starting with 'A' and what are their titles?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.display_name STARTS WITH 'A'\\nRETURN q.title AS QuestionTitle, u.display_name AS UserName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of title and abstract from Article where title does not start with A!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE NOT n.title STARTS WITH 'A'\\nRETURN DISTINCT n.title AS title, n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 23 pages, 1 figure and Article, with comments equal Latex, 9 pages, no figures, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'23 pages, 1 figure'})-[*]-(e:Article{comments:'Latex, 9 pages, no figures'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What is the color group name for the product 'Love Off Shoulder'?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product {prodName: 'Love Off Shoulder'})\\nRETURN a.colourGroupName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the user names and their corresponding review texts."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS UserName, r.text AS ReviewText"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the shortest movie in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.runtime ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"Staff_ID\": \"INTEGER\",\n \"Staff_Details\": \"STRING\"\n }\n },\n \"ClaimsProcessingStage\": {\n \"properties\": {\n \"Next_Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Name\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Claim_Status_Description\": \"STRING\"\n }\n },\n \"Policy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"ClaimsDocument\": {\n \"properties\": {\n \"Created_Date\": \"INTEGER\",\n \"Document_Type_Code\": \"STRING\",\n \"Created_by_Staff_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimsProcessing\": {\n \"properties\": {\n \"Claim_Outcome_Code\": \"STRING\",\n \"Claim_Stage_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\",\n \"Claim_Processing_ID\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"ClaimHeader\": {\n \"properties\": {\n \"Amount_Claimed\": \"FLOAT\",\n \"Date_of_Settlement\": \"STRING\",\n \"Claim_Header_ID\": \"INTEGER\",\n \"Amount_Piad\": \"FLOAT\",\n \"Date_of_Claim\": \"STRING\",\n \"Claim_Type_Code\": \"STRING\",\n \"Claim_Status_Code\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Policy\",\n \"type\": \"COVERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsProcessing\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimsDocument\",\n \"type\": \"HAS_A\",\n \"to\": \"ClaimHeader\"\n },\n {\n \"from\": \"ClaimHeader\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Policy\"\n }\n ]\n}"}, {"role": "user", "content": "What is the description of the claim status \"Open\"?"}, {"role": "assistant", "content": "MATCH (cps:ClaimsProcessing_Stages)\\nWHERE cps.Claim_Status_Name = \"Open\"\\nRETURN cps.Claim_Status_Description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"HasAmenity\": {\n \"properties\": {\n \"dormid\": \"INTEGER\",\n \"amenid\": \"INTEGER\"\n }\n },\n \"LivesIn\": {\n \"properties\": {\n \"room_number\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"stuid\": \"INTEGER\"\n }\n },\n \"Dorm\": {\n \"properties\": {\n \"student_capacity\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"dorm_name\": \"STRING\"\n }\n },\n \"DormAmenity\": {\n \"properties\": {\n \"amenid\": \"INTEGER\",\n \"amenity_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average and total capacity for all dorms who are of gender X?"}, {"role": "assistant", "content": "MATCH (d:Dorm)\\nWHERE d.gender = 'X'\\nRETURN avg(d.student_capacity), sum(d.student_capacity)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses have a star rating greater than 4.5?"}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars > 4.5\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Journal for which journal_id is f6582df4742923aacfc6e67638bd4bf6, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 directors who have directed both a comedy and a drama."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m1:Movie)-[:IN_GENRE]->(g1:Genre {name: \"Comedy\"}), (d)-[:DIRECTED]->(m2:Movie)-[:IN_GENRE]->(g2:Genre {name: \"Drama\"})\\nRETURN DISTINCT d.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a category_id which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has abstract Determining contributions by sub-portfolios or single exposures to\nportfolio-wide economic capital for credit risk is an important risk\nmeasurement task. Often economic capital is measured as Value-at-Risk (VaR) of\nthe portfolio loss distribution. For many of the credit portfolio risk models\nused in practice, the VaR contributions then have to be estimated from Monte\nCarlo samples. In the context of a partly continuous loss distribution (i.e.\ncontinuous except for a positive point mass on zero), we investigate how to\ncombine kernel estimation methods with importance sampling to achieve more\nefficient (i.e. less volatile) estimation of VaR contributions.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Determining contributions by sub-portfolios or single exposures to portfolio-wide economic capital for credit risk is an important risk measurement task. Often economic capital is measured as Value-at-Risk (VaR) of the portfolio loss distribution. For many of the credit portfolio risk models used in practice, the VaR contributions then have to be estimated from Monte Carlo samples. In the context of a partly continuous loss distribution (i.e. continuous except for a positive point mass on zero), we investigate how to combine kernel estimation methods with importance sampling to achieve more efficient (i.e. less volatile) estimation of VaR contributions. '}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 videos with the highest popularity?"}, {"role": "assistant", "content": "MATCH (v:Video)\\nRETURN v\\nORDER BY v.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Author with first_name equal to Marco!"}, {"role": "assistant", "content": "MATCH (a:Author)-[*3]->(n)\\nWHERE a.first_name = 'Marco'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of report_id and report_no from Report where report_id does not start with d!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE NOT n.report_id STARTS WITH 'd'\\nRETURN DISTINCT n.report_id AS report_id, n.report_no AS report_no"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Find Categories that has a category_id which begins with c, and is linked to Article via HAS_CATEGORY relationship, where Article has title Local asymptotic minimax risk bounds in a locally asymptotically mixture\n of normal experiments under asymmetric loss!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Local asymptotic minimax risk bounds in a locally asymptotically mixture of normal experiments under asymmetric loss'}) -[:HAS_CATEGORY]- (m:Categories)\\nWHERE m.category_id STARTS WITH 'c'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2018-11-28 and the year of the update_date is 2008!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2018-11-28' AND date(n.update_date).year = 2008\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Categories and Categories!"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r1]-(n)-[r2]->(d:Categories)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ParkingFine\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"ElectoralRegister\": {\n \"properties\": {\n \"electoral_register_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"RentArrear\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CouncilTax\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BusinessRate\": {\n \"properties\": {\n \"business_rates_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BenefitsOverpayment\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CmiCrossReference\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"source_system_code\": \"STRING\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CustomerMasterIndex\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"cmi_details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ParkingFine\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"ElectoralRegister\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"RentArrear\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CouncilTax\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BusinessRate\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BenefitsOverpayment\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BenefitsOverpayment\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"RentArrear\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ElectoralRegister\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ParkingFine\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BusinessRate\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CouncilTax\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n }\n ]\n}"}, {"role": "user", "content": "What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code."}, {"role": "assistant", "content": "MATCH (T1:CmiCrossReference)<-[:REFERENCES]-(T2:CouncilTax)\\nRETURN T1.cmi_cross_ref_id, T1.source_system_code\\nORDER BY T1.cmi_cross_ref_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies acted in by someone born after 1980?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[r:REVIEWED]-()\\nWHERE p.born > 1980\\nWITH avg(r.rating) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the genres associated with movies that have an IMDb rating exactly 6.5?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.imdbRating = 6.5\\nRETURN g.name AS Genre"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses have been reviewed in 2017?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2017-01-01') AND r.date <= date('2017-12-31')\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2010-06-18 and the year of the update_date is 2016!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2010-06-18' AND date(n.update_date).year = 2016\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the title from Article where either comments is 22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor\n revisions. This version should closely match the published version or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = '22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor revisions. This version should closely match the published version' OR n.title IS NOT NULL\\nRETURN DISTINCT n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the oldest movie in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies that have a poster path containing '/vzmL6fP7aPKNKPRTFnZmiUfciyV.jpg'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path CONTAINS '/vzmL6fP7aPKNKPRTFnZmiUfciyV.jpg'\\nRETURN m.title, m.poster_path\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Keyword with key_id equal to a87e17d3c9befeb236f46bf77da29d6d!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.key_id = 'a87e17d3c9befeb236f46bf77da29d6d'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the businesses on 'Pine St' that have been reviewed in '2017' and list the reviewers' names."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User)\\nWHERE b.address CONTAINS 'Pine St' AND r.date >= date('2017-01-01') AND r.date <= date('2017-12-31')\\nRETURN b.name AS businessName, u.name AS reviewerName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the label from Topic where either label is Population Dynamics_0 or label is not null!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label = 'Population Dynamics_0' OR n.label IS NOT NULL\\nRETURN DISTINCT n.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many distinct payment methods are used by parties?"}, {"role": "assistant", "content": "MATCH (p:Party)\\nRETURN COUNT(DISTINCT p.payment_method_code)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tags are associated with questions that have a score greater than 5?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score > 5\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the display names of the users who asked questions with the tag name \"graphql\"?"}, {"role": "assistant", "content": "MATCH (t:Tag {name: \"graphql\"})<-[:TAGGED]-(q:Question)<-[:ASKED]-(u:User)\\nRETURN u.display_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies that have been part of at least one collection."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(:Collection)\\nRETURN m.title, m.popularity\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the affiliation from Author where author_id is not 788db042978edbbfc654927e23ac21d1!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id <> '788db042978edbbfc654927e23ac21d1'\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the most roles in the 'ACTED_IN' relationship and what are those roles?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:ACTED_IN]-(p:Person)\\nWITH m, r\\nORDER BY size(r.roles) DESC\\nLIMIT 1\\nRETURN m.title AS movie, r.roles AS roles"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Journal with journal_id equal to fce69ad0112a3426c57a0582a2b8620f!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'fce69ad0112a3426c57a0582a2b8620f'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which user has reviewed businesses in both 'Missoula' and 'San Mateo'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.city IN ['Missoula', 'San Mateo']\\nWITH u, COLLECT(DISTINCT b.city) AS cities\\nWHERE 'Missoula' IN cities AND 'San Mateo' IN cities\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for DOI that is linked through a HAS_DOI relationship with the Article where article_id is 1009!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.article_id='1009'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Topic where label ends with Op!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label =~'Op.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have no revenue reported."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue = 0\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"County\": {\n \"properties\": {\n \"County_name\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"County_Id\": \"INTEGER\",\n \"Zip_code\": \"STRING\"\n }\n },\n \"Election\": {\n \"properties\": {\n \"Election_ID\": \"INTEGER\",\n \"Committee\": \"STRING\",\n \"District\": \"INTEGER\",\n \"Party\": \"INTEGER\",\n \"Delegate\": \"STRING\",\n \"First_Elected\": \"FLOAT\",\n \"Counties_Represented\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Lieutenant_Governor\": \"STRING\",\n \"US_Senate\": \"STRING\",\n \"Governor\": \"STRING\",\n \"Party\": \"STRING\",\n \"Attorney_General\": \"STRING\",\n \"Comptroller\": \"STRING\",\n \"Party_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n }\n ]\n}"}, {"role": "user", "content": "What are the 3 counties that have the smallest population? Give me the county names."}, {"role": "assistant", "content": "MATCH (c:County)\\nRETURN c.County_name\\nORDER BY c.Population ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which first_name starts with R.!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name STARTS WITH 'R.'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of distinct player positions."}, {"role": "assistant", "content": "MATCH (p:Player)\\nRETURN count(distinct p.Position)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have directed movies in more than three different languages?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.languages IS NOT NULL\\nWITH d, size(collect(DISTINCT m.languages)) AS num_languages \\nWHERE num_languages > 3\\nRETURN d.name AS director, num_languages"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the actors born before 1900 who have acted in movies released after 2000."}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.born < date('1900-01-01')\\nMATCH (a)-[:ACTED_IN]->(m:Movie)\\nWHERE m.year > 2000\\nRETURN DISTINCT a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the productName of the top 3 most expensive products."}, {"role": "assistant", "content": "MATCH (p:Product)\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters with a book45PageRank in the top 5 highest values."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c\\nORDER BY c.book45PageRank DESC\\nLIMIT 5\\nRETURN c.name AS character, c.book45PageRank AS book45PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[r:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the last_name for Author that is linked through a WRITTEN_BY relationship with the Article where article_id is 1048!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.article_id='1048'\\nRETURN m.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find all Addresses that are linked to both an Entity and an Intermediary that have the same \"lastEditTimestamp\" value."}, {"role": "assistant", "content": "MATCH (e:Entity)-[r:registered_address]->(a:Address)\\nMATCH (i:Intermediary)-[s:registered_address]->(a:Address)\\nWHERE e.lastEditTimestamp = i.lastEditTimestamp\\nRETURN DISTINCT a"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Coach\": {\n \"properties\": {\n \"Coach_name\": \"STRING\",\n \"Rank\": \"INTEGER\",\n \"Coach_ID\": \"INTEGER\",\n \"Gender\": \"STRING\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Votes\": \"INTEGER\",\n \"Rank\": \"STRING\",\n \"Occupation\": \"STRING\",\n \"Gender\": \"STRING\",\n \"Player_name\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Sponsor_name\": \"STRING\",\n \"Residence\": \"STRING\"\n }\n },\n \"MatchResult\": {\n \"properties\": {\n \"Big_Silver\": \"INTEGER\",\n \"Bronze\": \"INTEGER\",\n \"Small_Silver\": \"INTEGER\",\n \"Rank\": \"INTEGER\",\n \"Gold\": \"INTEGER\",\n \"Points\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"Club_name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n }\n ],\n \"relationshipProperties\": {\n \"COACHES\": {\n \"Starting_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Show the names of sponsors of players whose residence is either \"Brandon\" or \"Birtle\"."}, {"role": "assistant", "content": "MATCH (p:Player)\\nWHERE p.Residence IN [\"Brandon\", \"Birtle\"]\\nRETURN p.Sponsor_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have the highest reputation?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the last_name for Author combined with the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.last_name AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.key_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "How many accounts are there for each customer id?"}, {"role": "assistant", "content": "MATCH (a:Account)\\nRETURN a.customer_id, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"student_details\": \"STRING\",\n \"student_id\": \"INTEGER\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"course_name\": \"STRING\",\n \"course_id\": \"STRING\",\n \"course_description\": \"STRING\"\n }\n },\n \"CandidateAssessment\": {\n \"properties\": {\n \"qualification\": \"STRING\",\n \"asessment_outcome_code\": \"STRING\",\n \"candidate_id\": \"INTEGER\",\n \"assessment_date\": \"STRING\"\n }\n },\n \"Candidate\": {\n \"properties\": {\n \"candidate_details\": \"STRING\",\n \"candidate_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"PeopleAddress\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"person_id\": \"INTEGER\",\n \"address_id\": \"INTEGER\",\n \"date_to\": \"STRING\",\n \"person_address_id\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"person_id\": \"INTEGER\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"last_name\": \"STRING\",\n \"password\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"CandidateAssessment\",\n \"type\": \"EVALUATES\",\n \"to\": \"Candidate\"\n },\n {\n \"from\": \"CandidateAssessment\",\n \"type\": \"EVALUATES\",\n \"to\": \"Candidate\"\n },\n {\n \"from\": \"Candidate\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"LIVES_IN\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PeopleAddress\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Candidate\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n }\n ]\n}"}, {"role": "user", "content": "How many students are attending English courses?"}, {"role": "assistant", "content": "MATCH (c:Course)-[:Student_Course_Registrations]->(s:Student)\\nWHERE c.course_name = \"English\"\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the name of the organization that was formed most recently?"}, {"role": "assistant", "content": "MATCH (o:Organization)\\nRETURN o.organization_name\\nORDER BY o.date_formed DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {}\n },\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Categories and DOI!"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r1]-(n)-[r2]->(d:DOI)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 genres where the most movies have been produced."}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS genre, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the users who are mentioned in tweets that also mention hashtags used by \"Neo4j\"."}, {"role": "assistant", "content": "MATCH (neo4j:User {name: \"Neo4j\"})-[:POSTS]->(neo4jTweets:Tweet)-[:TAGS]->(hashtag:Hashtag)\\nWITH hashtag\\nMATCH (otherTweet:Tweet)-[:TAGS]->(hashtag)\\nWITH otherTweet\\nMATCH (otherTweet)-[:MENTIONS]->(user:User)\\nRETURN DISTINCT user"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have abstract: Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all the intermediaries whose name is similar to another intermediary, with their associated relationships."}, {"role": "assistant", "content": "MATCH (i1:Intermediary)-[r:similar]->(i2:Intermediary)\\nRETURN i1, r, i2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where key_id is a87e17d3c9befeb236f46bf77da29d6d and traversing through Article with comments no comments!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'a87e17d3c9befeb236f46bf77da29d6d'})-[*]->(d:Article{comments:'no comments'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Report for which report_no is G&T migration 2000-1, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'G&T migration 2000-1'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Report with report_no equal to PUMA 566!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'PUMA 566'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where description is The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description = 'The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations.'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Keyword for which name is population dynamics!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'population dynamics'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from Journal where journal_id is not 6dc95119d8a737d9ffc7fe367159849b!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id <> '6dc95119d8a737d9ffc7fe367159849b'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"HasAmenity\": {\n \"properties\": {\n \"dormid\": \"INTEGER\",\n \"amenid\": \"INTEGER\"\n }\n },\n \"LivesIn\": {\n \"properties\": {\n \"room_number\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"stuid\": \"INTEGER\"\n }\n },\n \"Dorm\": {\n \"properties\": {\n \"student_capacity\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"dorm_name\": \"STRING\"\n }\n },\n \"DormAmenity\": {\n \"properties\": {\n \"amenid\": \"INTEGER\",\n \"amenity_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n }\n ]\n}"}, {"role": "user", "content": "How many different majors are there and how many different city codes are there for each student?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nRETURN COUNT(DISTINCT s.Major) AS count1, COUNT(DISTINCT s.city_code) AS count2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Keyword for which key_id is 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'6ded85146e3dbfb1bb866831b8948f5b'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify entities that have the same company type as 'SOLE OWNERSHIP'."}, {"role": "assistant", "content": "MATCH (e:Entity {type: 'SOLE OWNERSHIP'})\\nMATCH (e2:Entity)\\nWHERE e2.type = e.type AND e2.node_id <> e.node_id\\nRETURN e2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 entities by number of filings where the beneficiary bank is 'Barclays Bank Plc'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.beneficiary_bank = 'Barclays Bank Plc'\\nWITH e, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 5\\nRETURN e.name AS entity_name, num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the 5 most recent questions asked by users with a reputation greater than 50000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation > 50000\\nRETURN q\\nORDER BY q.createdAt DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have a biography mentioning 'Academy Award'?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.bio CONTAINS 'Academy Award'\\nRETURN d.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Author where author_id contains 976d319b0a2961b44db9ef9e43ea5039, along with the type of their relationship with Author!"}, {"role": "assistant", "content": "MATCH (d:Author)-[r]->(n)\\nWHERE d.author_id CONTAINS '976d319b0a2961b44db9ef9e43ea5039'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which genre has the most movies with a runtime longer than 3 hours?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.runtime > 180\\nWITH g, count(m) AS movieCount\\nORDER BY movieCount DESC\\nRETURN g.name AS genreName, movieCount\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have directed at least three movies with budgets over 100 million dollars?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.budget > 100000000\\nWITH d, COUNT(m) AS movieCount\\nWHERE movieCount >= 3\\nRETURN d.name AS directorName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find all characters that have interacted in 'book 2' and have a 'louvain' value greater than 5."}, {"role": "assistant", "content": "MATCH (c1:Character)-[:INTERACTS2]-(c2:Character)\\nWHERE c1.louvain > 5 AND c2.louvain > 5\\nRETURN c1, c2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams to play 'Rust' with more than 100,000 total views?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE s.total_view_count > 100000\\nRETURN s.name, s.url, s.total_view_count, s.createdAt\\nORDER BY s.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with a backdrop path that includes '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection)\\nWHERE c.backdrop_path = '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses are categorized under 'Coffee'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Coffee'})\\nRETURN b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the top 3 users sorted by their following count in descending order."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.screen_name, u.following\\nORDER BY u.following DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses are located at '716 N San Mateo Dr' and what are their categories?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '716 N San Mateo Dr'})-[:IN_CATEGORY]->(c:Category)\\nRETURN b.name AS businessName, c.name AS categoryName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 categories contain products with a unit price over $50?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitPrice > 50\\nRETURN c.categoryName, COUNT(p) AS productCount\\nORDER BY productCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 orders were shipped to the same city as the customer's address?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c.city AS customerCity, o\\nMATCH (o2:Order {shipCity: customerCity})\\nRETURN o2.orderID, o2.shipCity\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"addresses\": {\n \"properties\": {\n \"address_id\": \"STRING\",\n \"line_1\": \"STRING\",\n \"line_2\": \"STRING\",\n \"line_3\": \"STRING\",\n \"city\": \"STRING\",\n \"zip_postcode\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"other_address_details\": \"STRING\"\n }\n },\n \"courses\": {\n \"properties\": {\n \"course_id\": \"STRING\",\n \"course_name\": \"STRING\",\n \"course_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"departments\": {\n \"properties\": {\n \"department_id\": \"STRING\",\n \"department_name\": \"STRING\",\n \"department_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"degree_programs\": {\n \"properties\": {\n \"degree_program_id\": \"STRING\",\n \"department_id\": \"STRING\",\n \"degree_summary_name\": \"STRING\",\n \"degree_summary_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"sections\": {\n \"properties\": {\n \"section_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"section_name\": \"STRING\",\n \"section_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"semesters\": {\n \"properties\": {\n \"semester_id\": \"STRING\",\n \"semester_name\": \"STRING\",\n \"semester_description\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"students\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"current_address_id\": \"STRING\",\n \"permanent_address_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_number\": \"STRING\",\n \"email_address\": \"STRING\",\n \"ssn\": \"STRING\",\n \"date_first_registered\": \"STRING\",\n \"date_left\": \"STRING\",\n \"other_student_details\": \"STRING\"\n }\n },\n \"student_enrolment\": {\n \"properties\": {\n \"student_enrolment_id\": \"STRING\",\n \"degree_program_id\": \"STRING\",\n \"semester_id\": \"STRING\",\n \"student_id\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"student_enrolment_courses\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"course_id\": \"STRING\",\n \"student_enrolment_id\": \"STRING\"\n }\n },\n \"transcripts\": {\n \"properties\": {\n \"transcript_id\": \"STRING\",\n \"transcript_date\": \"STRING\",\n \"other_details\": \"STRING\"\n }\n },\n \"transcript_contents\": {\n \"properties\": {\n \"student_course_id\": \"STRING\",\n \"transcript_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the descriptions for all the math courses?"}, {"role": "assistant", "content": "MATCH (courses:Courses)\\nWHERE courses.course_name = 'math'\\nRETURN courses.course_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or last_name contains Lionel J.!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Lionel J.'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.last_name CONTAINS 'Lionel J.'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies released in the year 2000 or later with a rating under 5."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2000 AND m.imdbRating < 5\\nRETURN m.title, m.year, m.imdbRating\\nORDER BY m.year\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List all types of machines that have a CPU count of at least 8."}, {"role": "assistant", "content": "MATCH (t:Type)\\nWHERE t.cpu >= 8\\nRETURN t"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character has the maximum 'book45PageRank' value?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book45PageRank\\nORDER BY c.book45PageRank DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which user has the highest reputation among those who asked questions tagged with 'apollo'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nRETURN u.display_name, u.reputation\\nORDER BY u.reputation DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the business reviewed by user with userId 'u1'?"}, {"role": "assistant", "content": "MATCH (u:User {userId: 'u1'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a tagline containing the word \"Forever\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Forever'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"flno\": \"INTEGER\",\n \"arrival_date\": \"STRING\",\n \"distance\": \"INTEGER\",\n \"price\": \"FLOAT\",\n \"origin\": \"STRING\",\n \"departure_date\": \"STRING\",\n \"aid\": \"INTEGER\",\n \"destination\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"name\": \"STRING\",\n \"aid\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"salary\": \"INTEGER\",\n \"eid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name and salary of the employee with the id 242518965?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nWHERE e.eid = 242518965\\nRETURN e.name, e.salary"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Author via WRITTEN_BY and return abstract along with the respective Author counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most expensive packages by price?"}, {"role": "assistant", "content": "MATCH (p:Package)\\nRETURN p.name, p.price\\nORDER BY p.price DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors worked on movies that grossed over $500 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 500000000\\nMATCH (m)<-[:CREW_FOR { job: \"Director\" }]-(p:Person)\\nRETURN DISTINCT p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 businesses with the most diverse range of star ratings in their reviews."}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)\\nWITH b, collect(DISTINCT r.stars) AS uniqueStars\\nORDER BY size(uniqueStars) DESC\\nRETURN b.name, uniqueStars\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find comments of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where year is 2000!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year = '2000'\\nRETURN n.comments AS comments, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business located at '723 California Dr' has been reviewed?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '723 California Dr'})<-[:REVIEWS]-(r:Review)\\nRETURN b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 1048 and are PUBLISHED_IN linked to Journal, where meta is 247?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1048'})-[r:PUBLISHED_IN {meta :'247'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Find the orders that have a 'shippedDate' earlier than their 'requiredDate'."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shippedDate < o.requiredDate\\nRETURN o"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all the movies with at least two actors born in the same decade."}, {"role": "assistant", "content": "MATCH (movie:Movie)<-[:ACTED_IN]-(person:Person)\\nWITH movie, floor(person.born / 10) * 10 AS decade, collect(person) AS actors_in_decade\\nWITH movie, decade, size(actors_in_decade) AS num_actors\\nWHERE num_actors >= 2\\nRETURN DISTINCT movie.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the IP address of the egress router in the data center?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(egress:Egress)-[:ROUTES]->(interface:Interface)\\nRETURN interface.ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the reviews with a star rating of 5 for businesses on 'Main St' and the name of the reviewers."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars = 5 AND b.address CONTAINS 'Main St'\\nRETURN r as Review, u.name as ReviewerName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 movies where the tagline includes the word 'Houston' and the released year is before 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Houston' AND m.released < 2000\\nRETURN m.title, m.released, m.tagline\\nORDER BY m.released\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Article where article_id is 1015, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Article{article_id:'1015'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where label is Geometry_7 and share a common property with Categories, for which category_id equals 088fbf884bd7c6533956a45531b362b7?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Geometry_7'})-[r]->(n), (d:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 characters with the highest 'book1BetweennessCentrality' in community 795?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 795 AND c.book1BetweennessCentrality IS NOT NULL\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams with a description mentioning 'streaming' have the most followers, listing the first 5?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'streaming'\\nRETURN s.name AS stream, s.followers AS followers\\nORDER BY followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Can you find the top 3 businesses that have been reviewed by 'Jenny' and 'Bob'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE u.name IN ['Jenny', 'Bob']\\nWITH b, COUNT(r) AS reviewsCount\\nORDER BY reviewsCount DESC\\nLIMIT 3\\nRETURN b.name, reviewsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Author where last_name ends with Ma!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name =~'Ma.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the name from Journal where either name is Math. Ann or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'Math. Ann' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the title values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 1-31, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='1-31'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Coach\": {\n \"properties\": {\n \"Coach_name\": \"STRING\",\n \"Rank\": \"INTEGER\",\n \"Coach_ID\": \"INTEGER\",\n \"Gender\": \"STRING\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Votes\": \"INTEGER\",\n \"Rank\": \"STRING\",\n \"Occupation\": \"STRING\",\n \"Gender\": \"STRING\",\n \"Player_name\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Sponsor_name\": \"STRING\",\n \"Residence\": \"STRING\"\n }\n },\n \"MatchResult\": {\n \"properties\": {\n \"Big_Silver\": \"INTEGER\",\n \"Bronze\": \"INTEGER\",\n \"Small_Silver\": \"INTEGER\",\n \"Rank\": \"INTEGER\",\n \"Gold\": \"INTEGER\",\n \"Points\": \"INTEGER\",\n \"Club_ID\": \"INTEGER\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"Region\": \"STRING\",\n \"Club_name\": \"STRING\",\n \"Club_ID\": \"INTEGER\",\n \"Start_year\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"COACHES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"Coach\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MatchResult\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Club\"\n }\n ],\n \"relationshipProperties\": {\n \"COACHES\": {\n \"Starting_year\": \"INTEGER\"\n }\n }\n}"}, {"role": "user", "content": "Please show the most common occupation of players."}, {"role": "assistant", "content": "MATCH (p:Player)\\nRETURN p.Occupation AS Occupation, count(*) AS Count\\nORDER BY Count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a key_id which begins with k, and is linked to Article via HAS_KEY relationship, where Article has abstract Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681]\nintroduced a model of the diversification of protein folds in a genome that we\nmay formulate as follows. Consider a multitype Yule process starting with one\nindividual in which there are no deaths and each individual gives birth to a\nnew individual at rate 1. When a new individual is born, it has the same type\nas its parent with probability $1-r$ and is a new type, different from all\npreviously observed types, with probability $r$. We refer to individuals with\nthe same type as families and provide an approximation to the joint\ndistribution of family sizes when the population size reaches $N$. We also show\nthat if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$\nis approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution\ndecays more rapidly than any power.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681] introduced a model of the diversification of protein folds in a genome that we may formulate as follows. Consider a multitype Yule process starting with one individual in which there are no deaths and each individual gives birth to a new individual at rate 1. When a new individual is born, it has the same type as its parent with probability $1-r$ and is a new type, different from all previously observed types, with probability $r$. We refer to individuals with the same type as families and provide an approximation to the joint distribution of family sizes when the population size reaches $N$. We also show that if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$ is approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution decays more rapidly than any power. '}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the comments of the Article and the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nMATCH (m:Article)\\nRETURN n.comments, m.comments\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the affiliation from Author where author_id is not a95ff40457bf3cae9c6852c6a14937fa!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id <> 'a95ff40457bf3cae9c6852c6a14937fa'\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the doi_id of the DOI, skip the first 2 records and return 2 records!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.doi_id SKIP 2\\nLIMIT 2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n, passing through Author via WRITTEN_BY?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[:WRITTEN_BY]->(c:Author)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the title from Article where either title is $A_{\\infty}$-structures on an elliptic curve or title is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = '$A_{\\infty}$-structures on an elliptic curve' OR n.title IS NOT NULL\\nRETURN DISTINCT n.title AS title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have comments: Only one change to previous version: ref. [62] misnumbering was fixed\n on request to the cited author and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'Only one change to previous version: ref. [62] misnumbering was fixed on request to the cited author'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 countries have the most filings where the originator bank's country is 'United States'?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE f.originator_bank_country = 'United States'\\nRETURN c.name, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have 'NULL' as the region for their suppliers?"}, {"role": "assistant", "content": "MATCH (p:Product)<-[:SUPPLIES]-(s:Supplier)\\nWHERE s.region = 'NULL'\\nRETURN p.productName AS productName, s.companyName AS supplierName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"MemberOfClub\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"ClubID\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"ClubLocation\": \"STRING\",\n \"ClubName\": \"STRING\",\n \"ClubDesc\": \"STRING\",\n \"ClubID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "Give me the name of each club."}, {"role": "assistant", "content": "MATCH (c:Club)\\nRETURN c.ClubName AS clubname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 videos rated by users?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(v:Video)\\nRETURN v.title, v.average_vote, COUNT(r) AS rating_count\\nORDER BY v.average_vote DESC, rating_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the taglines of movies released before 1990?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released < 1990\\nRETURN m.tagline"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {}\n },\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both Report and Topic!"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r1]-(n)-[r2]->(d:Topic)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 businesses that have received reviews only from users named 'Will'."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)<-[:WROTE]-(u:User {name: 'Will'})\\nWITH b, count(r) AS reviewsCount\\nWHERE NOT exists { \\nMATCH (b)<-[:REVIEWS]-(r2:Review)<-[:WROTE]-(u2:User) \\nWHERE u2.name <> 'Will' }\\nRETURN b.name, reviewsCount\\nORDER BY reviewsCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the last_name of the Author that is not related to the Topic with the cluster 1!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Topic {cluster: '1'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to UpdateDate where update_date contains 2009-10-31, along with the type of their relationship with UpdateDate!"}, {"role": "assistant", "content": "MATCH (d:UpdateDate)-[r]->(n)\\nWHERE d.update_date CONTAINS '2009-10-31'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 `categoryName` with the highest average `unitPrice` of their products."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS categoryName, avg(p.unitPrice) AS avgUnitPrice\\nORDER BY avgUnitPrice DESC\\nLIMIT 3\\nRETURN categoryName, avgUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have an 'average_vote' greater than 8."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote > 8\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of 3 businesses with reviews written in August 2015?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.date >= date('2015-08-01') AND r.date <= date('2015-08-31')\\nRETURN b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies by revenue that have a runtime greater than 120 minutes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 120\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where label is Riemannian geometry_4 and Categories, for which specifications is alg-geom?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'}), (b:Categories{specifications:'alg-geom'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the user names and their corresponding review texts."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nRETURN u.name AS userName, r.text AS reviewText"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 entities that have filed a transaction where the originator and beneficiary banks are from different countries?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.originator_bank_country <> f.beneficiary_bank_country\\nWITH e, f\\nORDER BY f.begin\\nLIMIT 3\\nRETURN e.name AS entity_name, f.sar_id AS transaction_id, f.begin AS transaction_begin_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2011-11-10 and the year of the update_date is 2010!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2011-11-10' AND date(n.update_date).year = 2010\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies released during the holidays?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE m.released IN [11, 12]\\nRETURN avg(r.rating) AS avg_holiday_movie_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the least votes and their release years?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.votes IS NOT NULL\\nRETURN m.title, m.released\\nORDER BY m.votes ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have chatters named 'itsbigchase'."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u:User {name: 'itsbigchase'})\\nRETURN s.name AS stream, s.url AS url\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List characters with a community of 795 and a pagerank below 0.2."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community = 795 AND c.pagerank < 0.2\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which racks are in zone 1 and have more than 5 machines?"}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 1})-[:HOLDS]->(m:Machine)\\nWITH r, count(m) AS machineCount\\nWHERE machineCount > 5\\nRETURN r.name, machineCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 characters by 'degree' who also have a 'book1PageRank' higher than 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 1\\nRETURN c.name, c.degree\\nORDER BY c.degree DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Identify movies with more than 10,000 IMDb votes and a runtime under 90 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdbVotes > 10000 AND m.runtime < 90\\nRETURN m.title, m.imdbVotes, m.runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 countries producing the most adult films with a runtime over 60 minutes?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE a.runtime > 60\\nRETURN c.name, count(a) AS AdultFilmCount\\nORDER BY AdultFilmCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 streams that are linked to the game 'Rust' and have been created after 2018."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: 'Rust'})\\nWHERE s.createdAt > datetime('2018-01-01T00:00:00Z')\\nRETURN s\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List entities that have an incorporation date and a struck-off date within the same year."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date IS NOT NULL AND e.struck_off_date IS NOT NULL\\nWITH e, toInteger(SPLIT(e.incorporation_date, \"-\")[2]) AS incorporation_year, toInteger(SPLIT(e.struck_off_date, \"-\")[2]) AS struck_off_year\\nWHERE incorporation_year = struck_off_year\\nRETURN e.name AS entity_name, e.incorporation_date, e.struck_off_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies that have undergone a title change after release?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.title <> m.original_title AND m.status = \"Released\"\\nRETURN m.title AS CurrentTitle, m.original_title AS OriginalTitle, m.release_date AS ReleaseDate\\nORDER BY m.release_date DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies that have a budget greater than their revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > m.revenue\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where meta is 213 and retrieve the abstract of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '213'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_address_id\": \"INTEGER\",\n \"first_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"cell_mobile_phone_number\": \"STRING\",\n \"amount_outstanding\": \"FLOAT\",\n \"date_became_customer\": \"STRING\",\n \"customer_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"email_address\": \"STRING\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"first_name\": \"STRING\",\n \"date_joined_staff\": \"STRING\",\n \"date_left_staff\": \"STRING\",\n \"nickname\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"last_name\": \"STRING\",\n \"staff_address_id\": \"INTEGER\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Lesson\": {\n \"properties\": {\n \"lesson_time\": \"STRING\",\n \"price\": \"FLOAT\",\n \"lesson_date\": \"STRING\",\n \"staff_id\": \"INTEGER\",\n \"lesson_id\": \"INTEGER\",\n \"vehicle_id\": \"INTEGER\",\n \"customer_id\": \"INTEGER\",\n \"lesson_status_code\": \"STRING\"\n }\n },\n \"CustomerPayment\": {\n \"properties\": {\n \"datetime_payment\": \"STRING\",\n \"payment_method_code\": \"STRING\",\n \"amount_payment\": \"FLOAT\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Vehicle\": {\n \"properties\": {\n \"vehicle_details\": \"STRING\",\n \"vehicle_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"WORKS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TAUGHT_BY\",\n \"to\": \"Staff\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n },\n {\n \"from\": \"CustomerPayment\",\n \"type\": \"PAID_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Lesson\",\n \"type\": \"TEACHES\",\n \"to\": \"Vehicle\"\n }\n ]\n}"}, {"role": "user", "content": "How many employees live in Georgia?"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.state_province_county = \"Georgia\"\\nRETURN count(*) as count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its title and the count of Journal linked via PUBLISHED_IN where pages is not '479-502', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '479-502'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to DOI where doi_id is 673313cb2dcde5d215a7e7ec2788f676 and list their properties, including those of DOI!"}, {"role": "assistant", "content": "MATCH (b:DOI)-[r]->(n)\\nWHERE b.doi_id = '673313cb2dcde5d215a7e7ec2788f676'\\nRETURN properties(b) AS DOI_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the name of the Keyword that is not related to the Keyword with the key_id c807a6943bac079cc85fda45518ea7f4!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Keyword {key_id: 'c807a6943bac079cc85fda45518ea7f4'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all businesses in 'Missoula' and their categories."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.city = 'Missoula'\\nRETURN b.name AS businessName, c.name AS categoryName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 countries where the beneficiary bank of the filing is located."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT c.name\\nORDER BY c.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Market\": {\n \"properties\": {\n \"Number_cities\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Country\": \"STRING\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"Gross_in_dollar\": \"INTEGER\",\n \"Studio\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"FilmMarketEstimation\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Low_Estimate\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"High_Estimate\": \"FLOAT\",\n \"Estimation_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n }\n ]\n}"}, {"role": "user", "content": "Please list the countries and years of film market estimations."}, {"role": "assistant", "content": "MATCH (fme:Film_Market_estimation)-[:ESTIMATES]->(f:Film), (fme)-[:ESTIMATES]->(m:Market)\\nRETURN m.Country, fme.Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Market\": {\n \"properties\": {\n \"Number_cities\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Country\": \"STRING\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"Gross_in_dollar\": \"INTEGER\",\n \"Studio\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"FilmMarketEstimation\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Low_Estimate\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"High_Estimate\": \"FLOAT\",\n \"Estimation_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n }\n ]\n}"}, {"role": "user", "content": "What are the countries of markets and their corresponding years of market estimation?"}, {"role": "assistant", "content": "MATCH (fm:Film_Market_estimation)-[:ESTIMATES]->(f:Film), (fm)-[:ESTIMATES]->(m:Market)\\nRETURN m.Country, fm.Year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most ordered products by quantity from orders shipped to France?"}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWHERE o.shipCountry = 'France'\\nRETURN p.productName, SUM(r.quantity) AS totalQuantity\\nORDER BY totalQuantity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies with the tagline containing the word \"limits\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'limits'\\nWITH avg(m.rating) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"singer\": {\n \"properties\": {\n \"singer_id\": \"STRING\",\n \"name\": \"STRING\",\n \"birth_year\": \"STRING\",\n \"net_worth_millions\": \"STRING\",\n \"citizenship\": \"STRING\"\n }\n },\n \"song\": {\n \"properties\": {\n \"song_id\": \"STRING\",\n \"title\": \"STRING\",\n \"singer_id\": \"STRING\",\n \"sales\": \"STRING\",\n \"highest_position\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names of the singers whose birth years are either 1948 or 1949?"}, {"role": "assistant", "content": "MATCH (singer:singer)\\nWHERE singer.Birth_Year = 1948 OR singer.Birth_Year = 1949\\nRETURN singer.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which abstract starts with I!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract STARTS WITH ' I'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 5 movies with a budget over 100 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nRETURN m.title AS MovieName\\nORDER BY m.budget DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are moderators in streams that play 'Rust'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)-[:PLAYS]->(:Game {name: 'Rust'})\\nRETURN u.name AS user, s.name AS stream"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where abstract is Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681]\nintroduced a model of the diversification of protein folds in a genome that we\nmay formulate as follows. Consider a multitype Yule process starting with one\nindividual in which there are no deaths and each individual gives birth to a\nnew individual at rate 1. When a new individual is born, it has the same type\nas its parent with probability $1-r$ and is a new type, different from all\npreviously observed types, with probability $r$. We refer to individuals with\nthe same type as families and provide an approximation to the joint\ndistribution of family sizes when the population size reaches $N$. We also show\nthat if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$\nis approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution\ndecays more rapidly than any power.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.abstract=' Qian, Luscombe and Gerstein [J. Molecular Biol. 313 (2001) 673--681] introduced a model of the diversification of protein folds in a genome that we may formulate as follows. Consider a multitype Yule process starting with one individual in which there are no deaths and each individual gives birth to a new individual at rate 1. When a new individual is born, it has the same type as its parent with probability $1-r$ and is a new type, different from all previously observed types, with probability $r$. We refer to individuals with the same type as families and provide an approximation to the joint distribution of family sizes when the population size reaches $N$. We also show that if $1\\ll S\\ll N^{1-r}$, then the number of families of size at least $S$ is approximately $CNS^{-1/(1-r)}$, while if $N^{1-r}\\ll S$ the distribution decays more rapidly than any power. '\\nRETURN m.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the filings that have an originator bank country as 'Singapore' and an amount over 1000000."}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank_country = 'Singapore' AND f.amount > 1000000\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Saving\": {\n \"properties\": {\n \"balance\": \"FLOAT\",\n \"custid\": \"INTEGER\"\n }\n },\n \"Checking\": {\n \"properties\": {\n \"balance\": \"FLOAT\",\n \"custid\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"custid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Saving\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Checking\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Checking\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Saving\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n }\n ]\n}"}, {"role": "user", "content": "Find the average checking balance."}, {"role": "assistant", "content": "MATCH (c:Checking)\\nRETURN AVG(c.balance)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have produced the most movies with a budget over $50 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE m.budget > 50000000\\nWITH pc, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 3\\nRETURN pc.name, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the movies directed by persons born in 'Burchard, Nebraska, USA'?"}, {"role": "assistant", "content": "MATCH (p:Person {bornIn: 'Burchard, Nebraska, USA'})-[:DIRECTED]->(m:Movie)\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which interfaces are connected to the egress node 'DC1-RE'?"}, {"role": "assistant", "content": "MATCH (e:Egress {name: 'DC1-RE'})-[:ROUTES]->(i:Interface)\\nRETURN i.ip AS InterfaceIP"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which users rated the movie with an IMDb ID '0787474'?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie {imdbId: '0787474'})\\nRETURN u.name AS userName, r.rating AS rating"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"The youngest actors that has been acting ok More than two movies, top 10\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 2\\nRETURN p.name AS actor, p.born AS birth_year, movies_count\\nORDER BY p.born DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Journal where journal_id is d3b321ed42589ea798c241aa7de23d2d and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total disk space of all machines in zone 1?"}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 1})-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN sum(t.disk)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "Show the number of projects."}, {"role": "assistant", "content": "MATCH (p:Project)\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which Network routes through the Interface with IP '10.4.8.254'?"}, {"role": "assistant", "content": "MATCH (i:Interface {ip: '10.4.8.254'})<-[:ROUTES]-(n:Network)\\nRETURN n.ip AS network_ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Categories where category_id is b1d13c8b6874949821d038a8a71379d1 and traversing through Journal with name Math. Nachr!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'b1d13c8b6874949821d038a8a71379d1'})-[*]->(d:Journal{name:'Math. Nachr'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have more than 4 words in their tagline?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE size(split(m.tagline, ' ')) > 4\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Article for which title is Solutions to congruences using sets with the property of Baire, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Solutions to congruences using sets with the property of Baire'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the top 3 streams that have the most chatters."}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:CHATTER]-(u:User)\\nWITH s, COUNT(u) AS chatterCount\\nORDER BY chatterCount DESC\\nLIMIT 3\\nRETURN s.name AS streamName, chatterCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have the shortest runtime and are in the 'Released' status?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released'\\nRETURN m.title, m.runtime\\nORDER BY m.runtime ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the most languages available?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.languages IS NOT NULL\\nRETURN m.title, m.languages, size(m.languages) AS languageCount\\nORDER BY languageCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has abstract I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies released in the last 5 years of the database have the highest imdbVotes?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2012 AND m.year <= 2016 AND m.imdbVotes IS NOT NULL\\nRETURN m.title, m.year, m.imdbVotes\\nORDER BY m.imdbVotes DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories where category_id contains eea47!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id CONTAINS 'eea47'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where specifications or category_id contains cs.CC!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'cs.CC'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'cs.CC'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA."}, {"role": "assistant", "content": "MATCH (c:College)\\nWHERE c.enr > 10000 AND c.state = \"LA\"\\nRETURN c.cName, c.enr"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 people to have reviewed a movie with the summary 'Silly, but fun'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.summary = 'Silly, but fun'\\nRETURN p.name\\nORDER BY r.timestamp ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Founder\": \"STRING\",\n \"Headquarter\": \"STRING\",\n \"Revenue\": \"FLOAT\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer\": \"INTEGER\",\n \"Price\": \"INTEGER\",\n \"Code\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ]\n}"}, {"role": "user", "content": "Find the total revenue created by the companies whose headquarter is located at Austin."}, {"role": "assistant", "content": "MATCH (m:Manufacturer)\\nWHERE m.Headquarter = 'Austin'\\nRETURN sum(m.Revenue)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the first_name from Author where either last_name is Chakrabarti or first_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name = 'Chakrabarti' OR n.first_name IS NOT NULL\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 movies with the most number of reviews."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:REVIEWED]-(r:Person)\\nWITH m, count(r) AS reviewCount\\nRETURN m.title AS movieTitle, reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where last_name is Polishchuk and traversing through Categories with specifications math.GT!"}, {"role": "assistant", "content": "MATCH (a:Author{last_name:'Polishchuk'})-[*]->(d:Categories{specifications:'math.GT'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "Take the average of the school enrollment."}, {"role": "assistant", "content": "MATCH (s:School)\\nRETURN avg(s.Enrollment)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 movies have the highest average vote and have been released?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'Released' AND m.average_vote IS NOT NULL\\nRETURN m\\nORDER BY m.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 89-106 and retrieve the comments of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '89-106'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 actors with roles in both movies and adult films?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie), (p)-[:CAST_FOR]->(a:Adult)\\nWITH p, count(DISTINCT m) AS moviesCount, count(DISTINCT a) AS adultCount\\nWHERE moviesCount > 0 AND adultCount > 0\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from UpdateDate for which update_date is 2017-07-11, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:UpdateDate{update_date:'2017-07-11'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 newest games introduced to streams."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nRETURN g.name AS game, min(s.createdAt) AS first_played\\nORDER BY first_played DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Keyword where name is discrete log problem, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Keyword{name:'discrete log problem'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "What are the distinct location names?"}, {"role": "assistant", "content": "MATCH (l:Location)\\nRETURN DISTINCT l.Location_Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the hashtags used in the tweets that mention users followed by 'Neo4j'. Limit to 9."}, {"role": "assistant", "content": "MATCH (n:User {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nMATCH (tweet:Tweet)-[:MENTIONS]->(followed)\\nMATCH (tweet)-[:TAGS]->(h:Hashtag)\\nRETURN DISTINCT h.name\\nLIMIT 9"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of votes for movies released in the 1980s?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released >= 1980 AND m.released <= 1989\\nRETURN avg(m.votes) AS average_votes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the highest budget."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"MatchSeason\": {\n \"properties\": {\n \"Draft_Class\": \"STRING\",\n \"Draft_Pick_Number\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Season\": \"FLOAT\",\n \"Position\": \"STRING\",\n \"Country\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"College\": \"STRING\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Years_Played\": \"STRING\",\n \"Total_WL\": \"STRING\",\n \"Player\": \"STRING\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"INTEGER\",\n \"Singles_WL\": \"STRING\",\n \"Doubles_WL\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"Official_native_language\": \"STRING\",\n \"Country_name\": \"STRING\",\n \"Capital\": \"STRING\",\n \"Country_id\": \"INTEGER\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Team_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"HELD_IN\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"MatchSeason\",\n \"type\": \"PARTICIPATES_IN\",\n \"to\": \"Team\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different positions for match season?"}, {"role": "assistant", "content": "MATCH (ms:MatchSeason)\\nRETURN DISTINCT ms.Position"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n },\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Topic and Categories, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*]-(n)-[*]-(b:Categories)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `unitPrice` of products supplied by suppliers located in the same country as the customer with `customerID` 'ALFKI'?"}, {"role": "assistant", "content": "MATCH (customer:Customer {customerID: 'ALFKI'})\\nMATCH (supplier:Supplier {country: customer.country})\\nMATCH (supplier)-[:SUPPLIES]->(product:Product)\\nWITH avg(product.unitPrice) AS avgUnitPrice\\nRETURN avgUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 products ordered by customers from Germany?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nWHERE c.country = 'Germany'\\nRETURN p.productName, COUNT(o) AS orderCount\\nORDER BY orderCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where comments is not no comments!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments <> 'no comments'\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many different colleges are there?"}, {"role": "assistant", "content": "MATCH (c:College)\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 users with the highest betweenness?"}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.name, u.betweenness\\nORDER BY u.betweenness DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Topic where cluster is 8 and Article, for which title equals The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra?"}, {"role": "assistant", "content": "MATCH p=(a:Topic{cluster:'8'})-[*]->(d:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the name from DOI where either name is 10.1007/s00220-004-1078-7 or name is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1007/s00220-004-1078-7' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from DOI where name is 10.1016/S0764-4442(00)00217-2?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0764-4442(00)00217-2'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the abstract from Article where either comments is 22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor\n revisions. This version should closely match the published version or abstract is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments = '22 pages, to appear in Topology. http://jdc.math.uwo.ca Lots of minor revisions. This version should closely match the published version' OR n.abstract IS NOT NULL\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "What are the maximum and minimum budget of the departments?"}, {"role": "assistant", "content": "MATCH (department:department)\\nRETURN max(department.budget_in_billions),min(department.budget_in_billions)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which top 5 users have asked the most questions?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nRETURN u.id, u.display_name, count(q) AS questions_asked\\nORDER BY questions_asked DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have been produced by 'Pixar Animation Studios' and have a budget over 50 million USD."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: 'Pixar Animation Studios'})\\nWHERE m.budget > 50000000\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the 3 highest amounts of filings that originated from the United Kingdom."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)-[:COUNTRY]->(c:Country {code: \"GBR\"})\\nRETURN f.id AS FilingID, f.amount AS Amount\\nORDER BY f.amount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 countries associated with entities that have filed more than 10 filings."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWITH e, count(f) AS filingsCount\\nWHERE filingsCount > 10\\nMATCH (e)-[:COUNTRY]->(c:Country)\\nRETURN DISTINCT c.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with DOI where doi_id is 0ef3b1eb742dfb0bc64bdfab8ed422f1 and share a common property with Keyword, for which key_id equals d8ed805e2dd529e548ead28198edd980?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'0ef3b1eb742dfb0bc64bdfab8ed422f1'})-[r]->(n), (d:Keyword{key_id:'d8ed805e2dd529e548ead28198edd980'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many streams have a description containing the word 'strategy'?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.description CONTAINS 'strategy'\\nRETURN count(s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams are part of a team with the most streams associated?"}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)\\nWITH t, count(s) AS streamCount\\nORDER BY streamCount DESC\\nLIMIT 1\\nMATCH (s2:Stream)-[:HAS_TEAM]->(t)\\nRETURN s2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 1008 and are WRITTEN_BY linked to a Author?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'1008'})-[r:WRITTEN_BY]->(b:Author)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomersCard\": {\n \"properties\": {\n \"card_type_code\": \"STRING\",\n \"card_number\": \"STRING\",\n \"other_card_details\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"date_valid_to\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"date_valid_from\": \"STRING\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"previous_transaction_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"card_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAYS\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"PAID_WITH\",\n \"to\": \"CustomersCard\"\n }\n ]\n}"}, {"role": "user", "content": "What are card ids, customer ids, card types, and card numbers for each customer card?"}, {"role": "assistant", "content": "MATCH (cc:Customer_Cards)\\nRETURN cc.card_id, cc.customer_id, cc.card_type_code, cc.card_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\"."}, {"role": "assistant", "content": "MATCH (T1:actor)-[]-(T2:musical)\\nWHERE T2.Name = 'The Phantom of the Opera'\\nRETURN T1.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all actors who have acted in more than 5 movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_acted_in\\nWHERE movies_acted_in > 5\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the business names and their corresponding city that have been reviewed by 'Jenny'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName, b.city AS city"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"The youngest actors that has been acting ok More than two movies\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH p, count(m) AS movies_count\\nWHERE movies_count > 2\\nRETURN p.name AS actor_name, p.born AS birth_year\\nORDER BY p.born DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Article for which abstract= A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wrestler\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Wrestler_ID\": \"INTEGER\",\n \"Reign\": \"STRING\",\n \"Event\": \"STRING\",\n \"Location\": \"STRING\",\n \"Days_held\": \"STRING\"\n }\n },\n \"Elimination\": {\n \"properties\": {\n \"Elimination_ID\": \"STRING\",\n \"Wrestler_ID\": \"STRING\",\n \"Time\": \"STRING\",\n \"Eliminated_By\": \"STRING\",\n \"Team\": \"STRING\",\n \"Elimination_Move\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Give the different reigns of wrestlers who are not located in Tokyo, Japan."}, {"role": "assistant", "content": "MATCH (w:Wrestler)\\nWHERE w.Location <> \"Tokyo , Japan\"\\nRETURN DISTINCT w.Reign"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies where the director has directed more than 5 movies."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWITH d, count(m) AS num_directed\\nWHERE num_directed > 5\\nMATCH (d)-[:DIRECTED]->(movie:Movie)\\nRETURN d.name AS director, collect(movie.title) AS movies"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are moderators for the stream with name \"9linda\"?"}, {"role": "assistant", "content": "MATCH (s:Stream {name: \"9linda\"})<-[:MODERATOR]-(u:User)\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has abstract Using a contraction procedure, we construct a twist operator that satisfies a\nshifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2))\nalgebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a\nGervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a\nclass of representations, the dynamical Yang-Baxter equation may be expressed\nas a compatibility condition for the algebra of the Lax operators.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Using a contraction procedure, we construct a twist operator that satisfies a shifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a Gervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a class of representations, the dynamical Yang-Baxter equation may be expressed as a compatibility condition for the algebra of the Lax operators. '}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 applications with the highest number of running instances."}, {"role": "assistant", "content": "MATCH (app:Application)\\nWITH app.name AS appName, count(app) AS instanceCount\\nORDER BY instanceCount DESC\\nRETURN appName, instanceCount\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the key_id of the Keyword that is not related to the Topic with the label Mathematics_9!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Topic {label: 'Mathematics_9'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 movies that are part of a collection."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection)\\nRETURN m.title AS MovieTitle, c.name AS CollectionName\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which beers the top 5 customers ordered from Supplier Exotic Liquids?\""}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: \"Exotic Liquids\"})-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category {categoryName: \"Beers\"}), (cust:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p)\\nRETURN cust.companyName, p.productName, SUM(o.quantity) AS TotalQuantityOrdered\\nORDER BY TotalQuantityOrdered DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where affiliation is unspecified and share a common property with Journal, for which name equals Topology?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->(n), (d:Journal{name:'Topology'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 highest grossing movies that have been released on or after January 1, 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date >= date('2000-01-01') AND m.revenue IS NOT NULL\\nRETURN m.title, m.release_date, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the report_no and the report_id for those Report where report_no starts with S!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no STARTS WITH 'S'\\nRETURN n.report_no AS report_no, n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with article_id equal to 603382, passing through Keyword via HAS_KEY?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'603382'})-[:HAS_KEY]->(c:Keyword)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 businesses with reviews that have a star rating of exactly 4.5?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]->(r:Review)\\nWHERE r.stars = 4.5\\nRETURN b.name, count(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many users have VIP status in more than one stream?"}, {"role": "assistant", "content": "MATCH (u:User)-[:VIP]->(s1:Stream)\\nWITH u, COUNT(DISTINCT s1) AS streamCount\\nWHERE streamCount > 1\\nRETURN COUNT(u) AS vipUsersInMultipleStreams"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the affiliation of the Author that is not related to the Article with the article_id 1010!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Article {article_id: '1010'})\\nWHERE NOT (n) --> (:Article)\\nRETURN n.affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List characters with a community above 750 and a pagerank below 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community > 750 AND c.pagerank < 1\\nRETURN c.name, c.community, c.pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find abstract of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 263-281!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '263-281'\\nRETURN n.abstract AS abstract, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses are located at '716 N San Mateo Dr'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '716 N San Mateo Dr'})\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies produced in the United States."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: \"United States of America\"})\\nRETURN m.title AS MovieTitle\\nORDER BY m.release_date\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 countries with the most movies produced in the genre 'Drama'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nMATCH (m)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWITH c, count(m) AS movies_count\\nORDER BY movies_count DESC\\nLIMIT 3\\nRETURN c.name AS Country, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which category_id starts with f20!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id STARTS WITH 'f20'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"VotingRecord\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Vice_President_Vote\": \"INTEGER\",\n \"Class_Senator_Vote\": \"INTEGER\",\n \"Class_President_Vote\": \"INTEGER\",\n \"President_Vote\": \"INTEGER\",\n \"Treasurer_Vote\": \"INTEGER\",\n \"Secretary_Vote\": \"INTEGER\",\n \"Election_Cycle\": \"STRING\",\n \"Registration_Date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n }\n ]\n}"}, {"role": "user", "content": "How many voting records do we have?"}, {"role": "assistant", "content": "MATCH (v:VotingRecord)\\nRETURN count(v)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Keyword for which name is super-population viewpoint, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{name:'super-population viewpoint'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2021-02-09 and the year of the update_date is 2011!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2021-02-09' AND date(n.update_date).year = 2011\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 questions that have a score of zero and no favorites?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score = 0 AND q.favorites = 0\\nRETURN q.title, q.link, q.createdAt\\nORDER BY q.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the cluster for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.cluster AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the update_date for those UpdateDates where update_date is 2007-05-23 and the year of the update_date is 2017!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nWHERE n.update_date = '2007-05-23' AND date(n.update_date).year = 2017\\nRETURN n.update_date AS update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Topic where description is The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria. and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 sources from tweets retweeted by 'Neo4j'?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweet:Tweet)-[:USING]->(source:Source)\\nRETURN source.name AS source_name, COUNT(*) AS retweet_count\\nORDER BY retweet_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the title values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 521-554, and return title along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='521-554'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report for which report_no starts with JNM!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no STARTS WITH 'JNM'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Provide the names of 3 actors who have also directed movies."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:DIRECTED]->(:Movie)\\nRETURN DISTINCT a.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have moderated the most streams and users combined?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->()\\nWITH u, count(*) AS total_moderations\\nORDER BY total_moderations DESC\\nLIMIT 3\\nRETURN u.name, total_moderations"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where meta is 227 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '227'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 57aa19619324dcd39039c52e67002af3 and Author, for which author_id is a95ff40457bf3cae9c6852c6a14937fa?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'57aa19619324dcd39039c52e67002af3'}), (b:Author{author_id:'a95ff40457bf3cae9c6852c6a14937fa'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Is there movie with 5 directors?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH m, count(p) AS directorCount\\nWHERE directorCount = 5\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where title is Subexponential groups in 4-manifold topology and Article, for which comments equals 16 pages To be published in Journal of Geometry and Physics?"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Subexponential groups in 4-manifold topology'})-[*]->(d:Article{comments:'16 pages To be published in Journal of Geometry and Physics'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the label from Topic where label is not Geometry_7!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label <> 'Geometry_7'\\nRETURN DISTINCT n.label AS label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at DOI where name is 10.1016/S0040-9383(00)00015-X and traversing through Report with report_no SISSA: 39/99/FM/GEO!"}, {"role": "assistant", "content": "39/99/FM/GEO!\nA: MATCH (a:DOI{name:'10.1016/S0040-9383(00)00015-X'})-[*]->(d:Report{report_no:'SISSA: 39/99/FM/GEO'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have no revenue reported."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue IS NULL OR m.revenue = 0\\nRETURN m.title, m.release_date\\nORDER BY m.release_date\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 beneficiary banks by the number of filings involving transactions from Europe?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWHERE c.name IN [\"Albania\", \"Andorra\", \"Armenia\", \"Austria\", \"Azerbaijan\", \"Belarus\", \"Belgium\", \"Bosnia and Herzegovina\", \"Bulgaria\", \"Croatia\", \"Cyprus\", \"Czech Republic\", \"Denmark\", \"Estonia\", \"Finland\", \"France\", \"Georgia\", \"Germany\", \"Greece\", \"Hungary\", \"Iceland\", \"Ireland\", \"Italy\", \"Kazakhstan\", \"Kosovo\", \"Latvia\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\", \"Malta\", \"Moldova\", \"Monaco\", \"Montenegro\", \"Netherlands\", \"North Macedonia\", \"Norway\", \"Poland\", \"Portugal\", \"Romania\", \"Russia\", \"San Marino\", \"Serbia\", \"Slovakia\", \"Slovenia\", \"Spain\", \"Sweden\", \"Switzerland\", \"Turkey\", \"Ukraine\", \"United Kingdom\", \"Vatican City\"]\\nRETURN f.beneficiary_bank AS BeneficiaryBank, COUNT(f) AS NumberOfFilings\\nORDER BY NumberOfFilings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Report where report_no ends with SP!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no =~'SP.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n },\n \"Article\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Topic and Article?"}, {"role": "assistant", "content": "MATCH (a:Topic)-[r]->(n), (d:Article)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the difference between the highest and lowest scores of questions?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWITH max(q.score) AS max_score, min(q.score) AS min_score\\nRETURN max_score - min_score AS score_difference"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' retweets?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:POSTS]->(t:Tweet)-[:RETWEETS]->(rt:Tweet)-[:POSTS]-(retweetUser:User)\\nRETURN retweetUser.name AS UserName, COUNT(rt) AS RetweetCount\\nORDER BY RetweetCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Name the Egress points from the DataCenter 'DC1'."}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(e:Egress)\\nRETURN e.name AS EgressPoints"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 persons have reviewed the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3\\nRETURN p.name, reviewCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where last_name or first_name contains Neeman!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name CONTAINS 'Neeman'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS 'Neeman'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Ship\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Flag\": \"STRING\",\n \"Type\": \"STRING\",\n \"Built_Year\": \"FLOAT\",\n \"Class\": \"STRING\",\n \"Ship_ID\": \"INTEGER\"\n }\n },\n \"Captain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Class\": \"STRING\",\n \"age\": \"STRING\",\n \"Captain_ID\": \"INTEGER\",\n \"Ship_ID\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Count the number of captains that have each rank."}, {"role": "assistant", "content": "MATCH (c:Captain)\\nWITH c.Rank AS rank, COUNT(c) AS count\\nRETURN rank, count\\nORDER BY rank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find entities with incorporation dates in January 2006."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.incorporation_date STARTS WITH 'JAN-2006'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are most similar to 'Neo4j' based on the SIMILAR_TO relationship score? Show the top 5."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})<-[s:SIMILAR_TO]-(u:User)\\nRETURN u.screen_name AS similar_user, s.score AS similarity\\nORDER BY s.score DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the teams associated with streams that have \"Resident Evil Village\" as a played game."}, {"role": "assistant", "content": "MATCH (g:Game {name: \"Resident Evil Village\"})<-[:PLAYS]-(s:Stream)\\nWITH s\\nMATCH (s)-[:HAS_TEAM]->(t:Team)\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Market\": {\n \"properties\": {\n \"Number_cities\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Country\": \"STRING\"\n }\n },\n \"Film\": {\n \"properties\": {\n \"Gross_in_dollar\": \"INTEGER\",\n \"Studio\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"Director\": \"STRING\",\n \"Title\": \"STRING\"\n }\n },\n \"FilmMarketEstimation\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Market_ID\": \"INTEGER\",\n \"Low_Estimate\": \"FLOAT\",\n \"Type\": \"STRING\",\n \"Film_ID\": \"INTEGER\",\n \"High_Estimate\": \"FLOAT\",\n \"Estimation_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Market\"\n },\n {\n \"from\": \"FilmMarketEstimation\",\n \"type\": \"ESTIMATES\",\n \"to\": \"Film\"\n }\n ]\n}"}, {"role": "user", "content": "What are the low and high estimates of film markets?"}, {"role": "assistant", "content": "MATCH (fm:Film_Market_estimation)-[:ESTIMATES]->(f:Film)\\nRETURN fm.Low_Estimate, fm.High_Estimate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "How many accounts do we have?"}, {"role": "assistant", "content": "MATCH (a:Account)\\nRETURN COUNT(a)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List all the different 'community' values of characters who have a path to \"Cersei-Lannister\" in the interaction network."}, {"role": "assistant", "content": "MATCH (c:Character {name: \"Cersei-Lannister\"})-[:INTERACTS*0..]->(other)\\nWITH collect(DISTINCT other.community) AS communities\\nUNWIND communities AS community\\nRETURN DISTINCT community"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {}\n },\n \"Report\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Keyword and Report, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*]-(n)-[*]-(b:Report)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person has the highest number of followers?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nRETURN p, count{(p)<-[:FOLLOWS]-(:Person)} AS followers\\nORDER BY followers DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the label for Topic combined with the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.article_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where title is Hyper-K{\\\"a}hler Hierarchies and their twistor theory and Journal, for which name is Journal of Mathematical Logic?"}, {"role": "assistant", "content": "MATCH (a:Article{title:'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'}), (b:Journal{name:'Journal of Mathematical Logic'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic where description is The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description = 'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have directed a movie they acted in? Limit to 5 actors."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(a)\\nRETURN a.name AS actor, m.title AS movie\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where name is Commun.Math.Phys and Report, with report_id equal 9301481d98615f874763a17d18e2dc92, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{name:'Commun.Math.Phys'})-[*]-(e:Report{report_id:'9301481d98615f874763a17d18e2dc92'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the complete addresses of businesses named 'Zootown Brew'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'Zootown Brew'})\\nRETURN b.address AS Address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have a follower count between 200,000 and 500,000, listing the first 5?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers >= 200000 AND s.followers <= 500000\\nRETURN s.name, s.followers\\nORDER BY s.followers DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the total number of Author that have the last_name recorded!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.last_name IS NOT NULL\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"flno\": \"INTEGER\",\n \"arrival_date\": \"STRING\",\n \"distance\": \"INTEGER\",\n \"price\": \"FLOAT\",\n \"origin\": \"STRING\",\n \"departure_date\": \"STRING\",\n \"aid\": \"INTEGER\",\n \"destination\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"name\": \"STRING\",\n \"aid\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"salary\": \"INTEGER\",\n \"eid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "Show the id and name of the aircraft with the maximum distance."}, {"role": "assistant", "content": "MATCH (a:Aircraft)\\nRETURN a.aid, a.name\\nORDER BY a.distance DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\n },\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Article and Topic?"}, {"role": "assistant", "content": "MATCH (a:Article)-[r]->(n), (d:Topic)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the smallest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget IS NOT NULL\\nRETURN m.title, m.budget\\nORDER BY m.budget\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the cluster from Topic where label is not Riemannian geometry_4!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label <> 'Riemannian geometry_4'\\nRETURN DISTINCT n.cluster AS cluster"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Report for which report_no is JNMP 4/2002 (Letter), and what are their relationships to Report?"}, {"role": "assistant", "content": "MATCH (c:Report)<-[r]-(n)\\nWHERE c.report_no = 'JNMP 4/2002 (Letter)'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average reorder level of products supplied by 'Exotic Liquids'?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: 'Exotic Liquids'})-[:SUPPLIES]->(p:Product)\\nRETURN avg(p.reorderLevel) AS averageReorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions with a link that includes 'apollo' and their corresponding tags."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.link CONTAINS 'apollo'\\nRETURN q.title AS question_title, q.link AS question_link, collect(t.name) AS tags"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"other_customer_details\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"payment_method\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomerAddress\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\",\n \"address_type\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_quantity\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"CustomerContactChannel\": {\n \"properties\": {\n \"contact_number\": \"STRING\",\n \"active_from_date\": \"STRING\",\n \"channel_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"active_to_date\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_details\": \"STRING\",\n \"product_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_content\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_details\": \"STRING\",\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n }\n ]\n}"}, {"role": "user", "content": "What are the state and country of all the cities that have post codes starting with 4.\\"}, {"role": "assistant", "content": "MATCH (a:Address)\\nWHERE a.zip_postcode STARTS WITH \"4\"\\nRETURN a.state_province_county, a.country"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 movies with revenues exceeding 1 billion dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 1000000000\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 5 movies that have a homepage URL associated."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.homepage IS NOT NULL\\nRETURN m.title, m.homepage\\nORDER BY m.id\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Topic where label is Riemannian geometry_4?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Author for which author_id is f6bcab8e721fbec0f293fee49d73c9c4!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of followers for users who are VIPs for streams created before 2019?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:VIP]-(u:User)\\nWHERE s.createdAt < datetime('2019-01-01T00:00:00.000000Z')\\nWITH avg(u.followers) AS average_followers\\nRETURN average_followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most recent review date for 'KettleHouse Brewing Co.'?"}, {"role": "assistant", "content": "MATCH (b:Business {name: 'KettleHouse Brewing Co.'})<-[:REVIEWS]-(r:Review)\\nRETURN max(r.date) AS mostRecentReviewDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 most recent movies in the database?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic where label is Topology_5, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Topic{label:'Topology_5'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Article for which comments is 20 pages, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'20 pages'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which services are instances of version '9.4'?"}, {"role": "assistant", "content": "MATCH (v:Version {name: '9.4'})<-[:INSTANCE]-(s:Service)\\nRETURN s.name AS service_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who wrote 'Something's Gotta Give' and what is the movie's release year?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie {title: \"Something's Gotta Give\"})\\nRETURN p.name AS writer, m.released AS releaseYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which directors have directed more than one movie in the 'Drama' genre?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nWITH d, count(m) AS movies_count\\nWHERE movies_count > 1\\nRETURN d.name, movies_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies that were written and directed by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)\\nMATCH (p)-[:DIRECTED]->(m)\\nRETURN m.title AS MovieTitle, p.name AS PersonName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 businesses that have reviews with text mentioning 'world's leading'."}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS \"world's leading\"\\nRETURN b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have acted in movies with a rating equal to 45?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[r:REVIEWED]-()\\nWHERE r.rating = 45\\nRETURN p.name, m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where comments is 22 pages, LaTeX, through Journal via PUBLISHED_IN with meta 220?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'22 pages, LaTeX'})-[:PUBLISHED_IN {meta: '220'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 directors who have directed the most successful movies in terms of revenue."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.revenue IS NOT NULL\\nWITH d, sum(m.revenue) AS total_revenue\\nORDER BY total_revenue DESC\\nLIMIT 3\\nRETURN d.name AS director, total_revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has title Open sets satisfying systems of congruences!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Open sets satisfying systems of congruences'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the categories of businesses on 'Broadway St'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category)\\nWHERE b.address CONTAINS 'Broadway St'\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users mentioned in the tweets that 'Me' retweets?"}, {"role": "assistant", "content": "MATCH (me:Me)-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)-[:MENTIONS]->(mentionedUser:User)\\nRETURN mentionedUser.name, count(mentionedUser) AS mentionsCount\\nORDER BY mentionsCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is q-fin.RM and Categories, for which specifications is math.CA?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'q-fin.RM'}), (b:Categories{specifications:'math.CA'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the abstract for Article combined with the report_id for Report, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.abstract AS Records\\nUNION\\nMATCH (m:Report)\\nRETURN m.report_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Categories for which specifications is cs.CC!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'cs.CC'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 directors have the longest bios on their profile?"}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.bio IS NOT NULL\\nRETURN d.name, d.bio\\nORDER BY size(d.bio) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 shortest movies."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.runtime\\nORDER BY m.runtime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the three highest budget movies produced by 'Disney'?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany {name: 'Disney'})<-[:PRODUCED_BY]-(m:Movie)\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Categories for which specifications is alg-geom, and what are their relationships to Categories?"}, {"role": "assistant", "content": "MATCH (c:Categories)<-[r]-(n)\\nWHERE c.specifications = 'alg-geom'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the products that have a 'unitsInStock' value lower than their 'reorderLevel'."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock < p.reorderLevel\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 521-554 and retrieve the title of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '521-554'\\nWITH DISTINCT n, m\\nRETURN n.title AS title, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 machines that run services in zone 2."}, {"role": "assistant", "content": "MATCH (z:Zone {zone: 2})-[:ROUTES]->(i:Interface)<-[:ROUTES]-(m:Machine)-[:RUNS]->(s:Service)\\nRETURN m.name, s.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 46c2037fac5c38acd01bee5dde73c8e0 and Article, for which abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'46c2037fac5c38acd01bee5dde73c8e0'}), (b:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"company_type\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"status\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"note\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\",\n \"status\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"note\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"incorporation_date\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"type\": \"STRING\",\n \"note\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n },\n \"registered_address\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"intermediary_of\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"end_date\": \"STRING\",\n \"start_date\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"officer_of\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"start_date\": \"STRING\",\n \"end_date\": \"STRING\",\n \"status\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"underlying\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"similar\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_as\": {\n \"properties\": {\n \"link\": \"STRING\"\n }\n },\n \"same_name_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\"\n }\n },\n \"same_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"same_intermediary_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"similar_company_as\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\"\n }\n },\n \"probably_same_officer_as\": {\n \"properties\": {\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n },\n \"same_id_as\": {\n \"properties\": {\n \"sourceID\": \"STRING\",\n \"link\": \"STRING\",\n \"valid_until\": \"STRING\"\n }\n },\n \"connected_to\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"link\": \"STRING\",\n \"sourceID\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Finds all entities whose service_provider is 'ABC Corp' and which have intermediaries similar to 'XYZ Ltd', with their associated officers and addresses."}, {"role": "assistant", "content": "MATCH (e:Entity)-[r1:similar]->(i:Intermediary)-[r2:officer_of]->(o:Officer)-[r3:registered_address]->(a:Address)\\nWHERE toLower(e.service_provider) = 'abc corp' AND toLower(i.name) = 'xyz ltd'\\nRETURN e, r1, i, r2, o, r3, a"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the 3 streams that have a 'CHATTER' relationship with users who are not streamers."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWHERE NOT EXISTS {(u)-[:CHATTER]->(:Stream)}\\nRETURN s, u\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 latest services started in DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(:Rack)-[:HOLDS]->(m:Machine)-[:RUNS]->(s:Service)\\nRETURN s.name, s.startTime\\nORDER BY s.startTime DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a name which begins with d, and is linked to Article via HAS_DOI relationship, where Article has title Maslov class and minimality in Calabi-Yau manifolds!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Maslov class and minimality in Calabi-Yau manifolds'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.name STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 actors have a poster listed and acted in at least two movies?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.poster IS NOT NULL\\nWITH a, COUNT(m) AS movieCount\\nWHERE movieCount >= 2\\nRETURN a.name, a.poster, movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Driver\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"license\": \"STRING\"\n }\n },\n \"Route\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"start\": \"STRING\",\n \"end\": \"STRING\"\n }\n },\n \"Maintenance\": {\n \"properties\": {\n \"type\": \"STRING\",\n \"cost\": \"INTEGER\"\n }\n },\n \"Vehicle\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"capacity\": \"INTEGER\",\n \"type\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Vehicle\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Driver\"\n },\n {\n \"from\": \"Vehicle\",\n \"type\": \"ROUTED_TO\",\n \"to\": \"Route\"\n },\n {\n \"from\": \"Vehicle\",\n \"type\": \"MAINTAINED_BY\",\n \"to\": \"Maintenance\"\n },\n {\n \"from\": \"Vehicle\",\n \"type\": \"MAINTAINED_BY\",\n \"to\": \"Maintenance\"\n },\n {\n \"from\": \"Vehicle\",\n \"type\": \"ASSIGNED_TO\",\n \"to\": \"Driver\"\n },\n {\n \"from\": \"Vehicle\",\n \"type\": \"ROUTED_TO\",\n \"to\": \"Route\"\n }\n ],\n \"relationshipProperties\": {\n \"MAINTAINED_BY\": {\n \"date\": \"STRING\",\n \"cost\": \"INTEGER\"\n },\n \"ASSIGNED_TO\": {\n \"since\": \"STRING\"\n },\n \"ROUTED_TO\": {\n \"distance\": \"INTEGER\",\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Who is the driver of 'Truck 1'?"}, {"role": "assistant", "content": "MATCH (vehicle:Vehicle {name: 'Truck 1'})-[:ASSIGNED_TO]->(driver:Driver)\\nRETURN driver"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where meta is 18 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '18'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that have an average vote of exactly 7.7."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote = 7.7\\nRETURN m.title AS title, m.average_vote AS average_vote"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Article where abstract is I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n and traversing through Author with affiliation Nice - Sophia Antipolis!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[*]->(d:Author{affiliation:'Nice - Sophia Antipolis'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the products with quantities per unit described as 'boxes'."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.quantityPerUnit CONTAINS 'boxes'\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the key_id for Keyword combined with the description for Topic, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.key_id AS Records\\nUNION\\nMATCH (m:Topic)\\nRETURN m.description AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters who have interacted with 'Roose-Bolton' in 'book 1'. List the top 5."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS1]->(target:Character {name: 'Roose-Bolton'})\\nRETURN c.name, r.weight\\nORDER BY r.weight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many entities have a former_name that is the same as the name of another entity?"}, {"role": "assistant", "content": "MATCH (e1:Entity)-[r:same_as]->(e2:Entity)\\nWHERE e1.former_name <> \"\" AND e1.former_name = e2.name\\nWITH DISTINCT e1, e2\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating given by the user with id 27490cf6-22eb-495d-9dd6-902c0f89c627?"}, {"role": "assistant", "content": "MATCH (u:User {id: '27490cf6-22eb-495d-9dd6-902c0f89c627'})-[:RATED]->(m:Movie)\\nWITH avg(m.average_vote) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Saving\": {\n \"properties\": {\n \"balance\": \"FLOAT\",\n \"custid\": \"INTEGER\"\n }\n },\n \"Checking\": {\n \"properties\": {\n \"balance\": \"FLOAT\",\n \"custid\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"custid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Saving\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Checking\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Checking\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Saving\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Account\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of accounts."}, {"role": "assistant", "content": "MATCH (a:Account)\\nRETURN count(a)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 entities with the most filings as a beneficiary in the financial sector."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)-[:BENEFITS]->(beneficiary:Entity)\\nWHERE exists{ (e)-[:COUNTRY]->(:Country {name: 'Financial Sector'}) }\\nWITH beneficiary, count(f) AS filingsCount\\nORDER BY filingsCount DESC\\nLIMIT 5\\nRETURN beneficiary.name, filingsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of applications running on machines in zone 4?"}, {"role": "assistant", "content": "MATCH (r:Rack {zone: 4})-[:HOLDS]->(m:Machine)-[:RUNS]->(application:Application)\\nRETURN count(DISTINCT application) AS total_applications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies produced by a person born in the 1950s."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE p.born >= 1950 AND p.born < 1960\\nRETURN m.title AS MovieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with an average vote higher than 8."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.average_vote > 8\\nRETURN m.title\\nORDER BY m.average_vote DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"similar_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which address has the most entities?\""}, {"role": "assistant", "content": "MATCH (a:Address)<-[:registered_address]-(e:Entity)\\nWITH a, count(e) AS entityCount\\nORDER BY entityCount DESC\\nLIMIT 1\\nRETURN a.address AS address, entityCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"StudentTestsTaken\": {\n \"properties\": {\n \"registration_id\": \"INTEGER\",\n \"test_result\": \"STRING\",\n \"date_test_taken\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"personal_name\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"date_of_registration\": \"STRING\",\n \"family_name\": \"STRING\",\n \"password\": \"STRING\",\n \"date_of_latest_logon\": \"STRING\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"subject_id\": \"INTEGER\",\n \"course_name\": \"STRING\",\n \"author_id\": \"INTEGER\",\n \"course_id\": \"INTEGER\",\n \"course_description\": \"STRING\"\n }\n },\n \"CourseAuthorsAndTutor\": {\n \"properties\": {\n \"address_line_1\": \"STRING\",\n \"personal_name\": \"STRING\",\n \"gender_mf\": \"STRING\",\n \"middle_name\": \"STRING\",\n \"login_name\": \"STRING\",\n \"family_name\": \"STRING\",\n \"author_id\": \"INTEGER\",\n \"author_tutor_ATB\": \"STRING\",\n \"password\": \"STRING\"\n }\n },\n \"Subject\": {\n \"properties\": {\n \"subject_name\": \"STRING\",\n \"subject_id\": \"INTEGER\"\n }\n },\n \"StudentCourseEnrolment\": {\n \"properties\": {\n \"registration_id\": \"INTEGER\",\n \"date_of_enrolment\": \"STRING\",\n \"student_id\": \"INTEGER\",\n \"course_id\": \"INTEGER\",\n \"date_of_completion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"StudentTestsTaken\",\n \"type\": \"RELATES_TO\",\n \"to\": \"StudentCourseEnrolment\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_AUTHORS_AND_TUTOR\",\n \"to\": \"CourseAuthorsAndTutor\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TEACHES\",\n \"to\": \"Subject\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"HAS_AUTHORS_AND_TUTOR\",\n \"to\": \"CourseAuthorsAndTutor\"\n },\n {\n \"from\": \"Course\",\n \"type\": \"TEACHES\",\n \"to\": \"Subject\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Course\"\n },\n {\n \"from\": \"StudentCourseEnrolment\",\n \"type\": \"ENROLLED_IN\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"StudentTestsTaken\",\n \"type\": \"RELATES_TO\",\n \"to\": \"StudentCourseEnrolment\"\n }\n ]\n}"}, {"role": "user", "content": "Return the description for the courses named \"database\"."}, {"role": "assistant", "content": "MATCH (c:Course {course_name: \"database\"})\\nRETURN c.course_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 movies based on popularity that were released in the 1990s?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date >= date('1990-01-01') AND m.release_date <= date('1999-12-31')\\nRETURN m\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have chatters with a total view count over 10,000."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(u:User)\\nWHERE s.total_view_count > 10000\\nRETURN s.name, s.total_view_count\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Journal where journal_id is 904b65f98bb6823aaf3f72721984560a and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'904b65f98bb6823aaf3f72721984560a'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Categories where specifications ends with ma!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications =~'ma.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' retweets mentions from?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweet:Tweet)-[:MENTIONS]->(user:User)\\nRETURN user.screen_name, COUNT(*) AS mention_count\\nORDER BY mention_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 most reviewed movies by the number of reviews."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH m, count(r) AS reviews\\nORDER BY reviews DESC\\nLIMIT 5\\nRETURN m.title, reviews"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1069 or article_id is less than 1071!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1069 OR n.article_id < 1071\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find four Article that have HAS_DOI links!"}, {"role": "assistant", "content": "MATCH (p:Article)\\nWHERE EXISTS ((p)-[:HAS_DOI]->())\\nRETURN p\\nLIMIT 4"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the doi_id of the DOI that is not related to the UpdateDate with the update_date 2016-11-23!"}, {"role": "assistant", "content": "MATCH (n:DOI), (:UpdateDate {update_date: '2016-11-23'})\\nWHERE NOT (n) --> (:UpdateDate)\\nRETURN n.doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 5 originator banks in filings that ended in the year 2014?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.end_date_format STARTS WITH \"2014\"\\nRETURN e.name AS originator_bank, COUNT(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the title of the Article that are linked via PUBLISHED_IN to more than three Journal, and list Journal journal_id and Journal counts, ordering by Journal count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN]->(m:Journal)\\nWITH DISTINCT n, m\\nWITH n.title AS title, count(m) AS count, COLLECT(m.journal_id) as journal_id\\nWHERE count > 3\\nRETURN title, count, journal_id\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average discount applied to orders placed by customers in 'Argentina'?"}, {"role": "assistant", "content": "MATCH (c:Customer {country: 'Argentina'})-[:PURCHASED]->(o:Order)\\nWITH o.discount AS discounts\\nRETURN avg(toFloat(discounts)) AS average_discount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person reviewed the most movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, count(r) AS num_reviews\\nORDER BY num_reviews DESC\\nLIMIT 1\\nRETURN p.name AS person, num_reviews"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the filings with the top 3 highest amounts where the originator bank is located in the same country as the beneficiary bank."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)-[:COUNTRY]->(oc:Country), (f)-[:BENEFITS]->(b:Entity)-[:COUNTRY]->(bc:Country)\\nWHERE oc.code = bc.code\\nWITH f\\nORDER BY f.amount DESC\\nLIMIT 3\\nRETURN f.id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Customer_ID\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"FLOAT\",\n \"Workshop_Group_ID\": \"INTEGER\",\n \"Service_Type_Code\": \"STRING\"\n }\n },\n \"RefPaymentMethod\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"payment_method_description\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Product_Name\": \"STRING\",\n \"Product_Price\": \"INTEGER\",\n \"Product_ID\": \"STRING\"\n }\n },\n \"Store\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Store_Email_Address\": \"STRING\",\n \"Store_Phone\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Store_ID\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"InvoiceItem\": {\n \"properties\": {\n \"Invoice_Item_ID\": \"INTEGER\",\n \"Order_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Quantity\": \"INTEGER\",\n \"Invoice_ID\": \"INTEGER\",\n \"Other_Item_Details\": \"STRING\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"Order_Date\": \"STRING\",\n \"Actual_Delivery_Date\": \"STRING\",\n \"Order_ID\": \"INTEGER\",\n \"Planned_Delivery_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"Order_ID\": \"INTEGER\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Quantity\": \"STRING\",\n \"Invoice_ID\": \"INTEGER\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"MarketingRegion\": {\n \"properties\": {\n \"Marketing_Region_Name\": \"STRING\",\n \"Marketing_Region_Descriptrion\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"Booking\": {\n \"properties\": {\n \"Order_Date\": \"STRING\",\n \"Actual_Delivery_Date\": \"STRING\",\n \"Workshop_Group_ID\": \"STRING\",\n \"Booking_ID\": \"INTEGER\",\n \"Status_Code\": \"STRING\",\n \"Planned_Delivery_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Store_ID\": \"INTEGER\"\n }\n },\n \"Performer\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Performer_ID\": \"INTEGER\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n },\n \"RefServiceType\": {\n \"properties\": {\n \"Service_Type_Description\": \"STRING\",\n \"Parent_Service_Type_Code\": \"STRING\",\n \"Service_Type_Code\": \"STRING\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"Order_ID\": \"INTEGER\",\n \"Order_Quantity\": \"STRING\",\n \"Product_ID\": \"INTEGER\",\n \"Order_Item_ID\": \"INTEGER\"\n }\n },\n \"DramaWorkshopGroup\": {\n \"properties\": {\n \"Address_ID\": \"INTEGER\",\n \"Currency_Code\": \"STRING\",\n \"Workshop_Group_ID\": \"INTEGER\",\n \"Store_Email_Address\": \"STRING\",\n \"Store_Phone\": \"STRING\",\n \"Store_Name\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Marketing_Region_Code\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"State_County\": \"STRING\",\n \"City_Town\": \"STRING\",\n \"Address_ID\": \"STRING\",\n \"Line_2\": \"STRING\",\n \"Line_1\": \"STRING\"\n }\n },\n \"Client\": {\n \"properties\": {\n \"Customer_Name\": \"STRING\",\n \"Client_ID\": \"INTEGER\",\n \"Address_ID\": \"INTEGER\",\n \"Customer_Phone\": \"STRING\",\n \"Other_Details\": \"STRING\",\n \"Customer_Email_Address\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDES\",\n \"to\": \"DramaWorkshopGroup\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefServiceType\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Performer\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"BOOKED_IN\",\n \"to\": \"Booking\"\n },\n {\n \"from\": \"Booking\",\n \"type\": \"MADE_BY\",\n \"to\": \"Performer\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefServiceType\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"PROVIDES\",\n \"to\": \"DramaWorkshopGroup\"\n }\n ]\n}"}, {"role": "user", "content": "What is the order date of each booking?"}, {"role": "assistant", "content": "MATCH (b:Booking)\\nRETURN b.Order_Date"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What department is responsible for the 'Simpson' product?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:FROM_DEPARTMENT]->(d:Department)\\nWHERE a.prodName = 'Simpson'\\nRETURN d"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 most voted movies on IMDb released after 2010."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year > 2010 AND m.imdbVotes IS NOT NULL\\nRETURN m.title, m.imdbVotes\\nORDER BY m.imdbVotes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the specifications for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Driver\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Home_city\": \"STRING\",\n \"Party\": \"STRING\",\n \"Driver_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Grade\": \"STRING\",\n \"Type\": \"STRING\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Driver\",\n \"type\": \"ATTENDS\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Driver\",\n \"type\": \"ATTENDS\",\n \"to\": \"School\"\n }\n ],\n \"relationshipProperties\": {\n \"ATTENDS\": {\n \"Years_Working\": \"INTEGER\",\n \"If_full_time\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many drivers are from Hartford city or younger than 40?"}, {"role": "assistant", "content": "MATCH (d:Driver)\\nWHERE d.Home_city = 'Hartford' OR d.Age < 40\\nWITH COUNT(d) AS count\\nRETURN count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Topic for which description is The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations., and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{description:'The study of geometric structures on smooth manifolds equipped with Riemannian metrics, focusing on properties such as curvature, foliations, and laminations. Emphasis is placed on understanding the behavior of geodesics, lengths, and curvature constraints in various settings, including constant mean curvature, negative curvature, and bounded holomorphic bisectional curvature. Topics include prescribed Gauss curvature, quasi-constant holomorphic sectional curvatures, and taut foliations.'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the title for Article combined with the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.title AS Records\\nUNION ALL\\nMATCH (m:DOI)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 cities where the most products have been shipped."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)-[:ORDERS]->(p:Product)\\nRETURN o.shipCity AS City, count(p) AS NumberOfProductsShipped\\nORDER BY NumberOfProductsShipped DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where pages is 131-170 and retrieve the comments of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '131-170'\\nWITH DISTINCT n, m\\nRETURN n.comments AS comments, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with pages equal to 521-554, connected to Article that has article_id equal to 2007?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '521-554'}]->(m:Journal)\\nWHERE n.article_id = '2007'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the productName of the first 3 products with unitsOnOrder greater than 30 and unitsInStock less than 20."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 30 AND p.unitsInStock < 20\\nWITH p\\nLIMIT 3\\nRETURN p.productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products that have been reordered (units on order > 0) and are not discontinued."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsOnOrder > 0 AND p.discontinued = false\\nRETURN p.productName, p.unitsOnOrder\\nORDER BY p.productName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a doi_id which begins with d, and is linked to Article via HAS_DOI relationship, where Article has title Hyper-K{\\\"a}hler Hierarchies and their twistor theory!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Hyper-K{\\\"a}hler Hierarchies and their twistor theory'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.doi_id STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Keyword with the key_id 6ded85146e3dbfb1bb866831b8948f5b!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Keyword {key_id: '6ded85146e3dbfb1bb866831b8948f5b'})\\nWHERE NOT (n) --> (:Keyword)\\nRETURN n.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Topic with cluster equal to 1!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'1'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 categories by the average units in stock of their products."}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS category, avg(p.unitsInStock) AS avgUnitsInStock\\nRETURN category, avgUnitsInStock\\nORDER BY avgUnitsInStock DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List all users who have asked a question about 'graphql' according to the tags."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag {name: 'graphql'})\\nRETURN u.display_name AS user_name, u.id AS user_id, u.link AS user_profile_link"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Article for which article_id is 1063, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1063'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users followed by 'neo4j' have the highest betweenness values?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN user.name, user.betweenness\\nORDER BY user.betweenness DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the genres associated with movies that have an IMDb rating exactly 6.5?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.imdbRating = 6.5\\nRETURN DISTINCT g.name AS Genre"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Journal where journal_id contains d41d8cd98f00b204e9800998ecf8427e, along with the type of their relationship with Journal!"}, {"role": "assistant", "content": "MATCH (d:Journal)-[r]->(n)\\nWHERE d.journal_id CONTAINS 'd41d8cd98f00b204e9800998ecf8427e'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 movies by vote count."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.vote_count\\nORDER BY m.vote_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify all services that a process named '9.4' depends on."}, {"role": "assistant", "content": "MATCH (p:Process {name: '9.4'})-[:DEPENDS_ON]->(s:Service)\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 businesses have reviews from 'Jenny' with a star rating above 4.5?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)\\nWHERE r.stars > 4.5\\nMATCH (r)-[:REVIEWS]->(b:Business)\\nRETURN b.name AS businessName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List three movies reviewed with a rating above 90."}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 90\\nRETURN m.title AS MovieTitle, r.rating AS Rating\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List top 3 people who have directed, produced, and acted in the same movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:PRODUCED]-(p)-[:ACTED_IN]->(m)\\nRETURN p.name, collect(m.title) AS movies\\nORDER BY size(movies) DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find the question with the most recent creation date."}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.createdAt DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Display the top 5 services that started after timestamp 1606165629748 and are running on machine 'DC1-RCK-1-1-M-1'."}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-1-1-M-1'})-[:RUNS]->(s:Service)\\nWHERE s.startTime > 1606165629748\\nRETURN s.name, s.startTime\\nORDER BY s.startTime DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show me the movies with a tagline containing the word \"journey\"."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'journey'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with the most revenue that were released after the year 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date > date('2000-01-01')\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between DOI where doi_id is 673313cb2dcde5d215a7e7ec2788f676 and UpdateDate, for which update_date equals 2011-11-10?"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'673313cb2dcde5d215a7e7ec2788f676'})-[*]->(d:UpdateDate{update_date:'2011-11-10'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Keyword where key_id is a87e17d3c9befeb236f46bf77da29d6d and are HAS_TOPIC linked to a Topic?"}, {"role": "assistant", "content": "MATCH (a:Keyword {key_id:'a87e17d3c9befeb236f46bf77da29d6d'})-[r:HAS_TOPIC]->(b:Topic)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which intermediary has the name 'MICHAEL PAPAGEORGE, MR.'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: 'MICHAEL PAPAGEORGE, MR.'})\\nRETURN i"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"highschooler\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\",\n \"grade\": \"STRING\"\n }\n },\n \"friend\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"friend_id\": \"STRING\"\n }\n },\n \"likes\": {\n \"properties\": {\n \"student_id\": \"STRING\",\n \"liked_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the names and grades of each high schooler."}, {"role": "assistant", "content": "MATCH (highschooler:Highschooler)\\nRETURN highschooler.name,highschooler.grade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"breeds\": {\n \"properties\": {\n \"breed_code\": \"STRING\",\n \"breed_name\": \"STRING\"\n }\n },\n \"charges\": {\n \"properties\": {\n \"charge_id\": \"STRING\",\n \"charge_type\": \"STRING\",\n \"charge_amount\": \"STRING\"\n }\n },\n \"sizes\": {\n \"properties\": {\n \"size_code\": \"STRING\",\n \"size_description\": \"STRING\"\n }\n },\n \"treatment_types\": {\n \"properties\": {\n \"treatment_type_code\": \"STRING\",\n \"treatment_type_description\": \"STRING\"\n }\n },\n \"owners\": {\n \"properties\": {\n \"owner_id\": \"STRING\",\n \"first_name\": \"STRING\",\n \"last_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"dogs\": {\n \"properties\": {\n \"dog_id\": \"STRING\",\n \"owner_id\": \"STRING\",\n \"abandoned_yn\": \"STRING\",\n \"breed_code\": \"STRING\",\n \"size_code\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"date_of_birth\": \"STRING\",\n \"gender\": \"STRING\",\n \"weight\": \"STRING\",\n \"date_arrived\": \"STRING\",\n \"date_adopted\": \"STRING\",\n \"date_departed\": \"STRING\"\n }\n },\n \"professionals\": {\n \"properties\": {\n \"professional_id\": \"STRING\",\n \"role_code\": \"STRING\",\n \"first_name\": \"STRING\",\n \"street\": \"STRING\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"zip_code\": \"STRING\",\n \"last_name\": \"STRING\",\n \"email_address\": \"STRING\",\n \"home_phone\": \"STRING\",\n \"cell_number\": \"STRING\"\n }\n },\n \"treatments\": {\n \"properties\": {\n \"treatment_id\": \"STRING\",\n \"dog_id\": \"STRING\",\n \"professional_id\": \"STRING\",\n \"treatment_type_code\": \"STRING\",\n \"date_of_treatment\": \"STRING\",\n \"cost_of_treatment\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show me the cost of the most recently performed treatment."}, {"role": "assistant", "content": "MATCH (treatments:Treatments)\\nRETURN treatments.cost_of_treatment\\nORDER BY treatments.date_of_treatment DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most common tweet sources for the user 'neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:USING]->(s:Source)\\nRETURN s.name, count(t) AS tweets_count\\nORDER BY tweets_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the categories where the average unit price of products is above 50?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWITH c.categoryName AS categoryName, avg(p.unitPrice) AS avgUnitPrice\\nWHERE avgUnitPrice > 50\\nRETURN categoryName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 tweets by the total interaction (mentions, retweets, replies)."}, {"role": "assistant", "content": "MATCH (t:Tweet)\\nWITH t, count{(t)-[:MENTIONS]->()} + count{(t)-[:RETWEETS]->()} + count{(t)-[:REPLY_TO]->()} AS totalInteractions\\nORDER BY totalInteractions DESC\\nLIMIT 5\\nRETURN t, totalInteractions"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List characters with a louvain value of 3 and a degree below 5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 3 AND c.degree < 5\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?"}, {"role": "assistant", "content": "MATCH (a:Account)-[:PLACED_BY]->(c:Customer)\\nWHERE c.customer_first_name = \"Meaghan\" AND c.customer_last_name = \"Keeling\"\\nRETURN a.account_name, a.other_account_details"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Report where report_no is PUMA 566 and Author, with author_id equal ee24bab93b9531431f442226dd453745, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Report{report_no:'PUMA 566'})-[*]-(e:Author{author_id:'ee24bab93b9531431f442226dd453745'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the first_name from Author where author_id is not a95ff40457bf3cae9c6852c6a14937fa!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id <> 'a95ff40457bf3cae9c6852c6a14937fa'\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 genres that have movies with no keywords associated."}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nWHERE NOT exists{ (m)-[:HAS_KEYWORD]->(:Keyword) }\\nRETURN g\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Who asked the question titled 'GraphQL subscription delay on first time'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question {title: 'GraphQL subscription delay on first time'})\\nRETURN u.display_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters with a pagerank above 0.5 and an INTERACTS weight over 200."}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS]->(c2:Character)\\nWHERE c.pagerank > 0.5 AND r.weight > 200\\nRETURN c.name AS CharacterName, c.pagerank AS PageRank, r.weight AS InteractionWeight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a book1PageRank greater than 3?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 3\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many businesses are reviewed by users named 'Bob'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Bob'})-[:WROTE]->(:Review)-[:REVIEWS]->(b:Business)\\nRETURN count(DISTINCT b) AS NumberOfBusinessesReviewedByBob"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Flight\": {\n \"properties\": {\n \"flno\": \"INTEGER\",\n \"arrival_date\": \"STRING\",\n \"distance\": \"INTEGER\",\n \"price\": \"FLOAT\",\n \"origin\": \"STRING\",\n \"departure_date\": \"STRING\",\n \"aid\": \"INTEGER\",\n \"destination\": \"STRING\"\n }\n },\n \"Aircraft\": {\n \"properties\": {\n \"distance\": \"INTEGER\",\n \"name\": \"STRING\",\n \"aid\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"salary\": \"INTEGER\",\n \"eid\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Aircraft\",\n \"type\": \"EMPLOYED_BY\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "Show the id and name of the employee with maximum salary."}, {"role": "assistant", "content": "MATCH (e:Employee)\\nRETURN e.eid, e.name\\nORDER BY e.salary DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Categories for which category_id is f294e61ea01b3678d7cd02b973bb71da!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'f294e61ea01b3678d7cd02b973bb71da'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have been produced and directed by the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where comments is 19 pages, AMSLatex, references added and Author, with last_name equal Warnaar, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{comments:'19 pages, AMSLatex, references added'})-[*]-(e:Author{last_name:'Warnaar'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Find Author that has a affiliation which begins with a, and is linked to Article via WRITTEN_BY relationship, where Article has comments 19 pages, AMSLatex, references added!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '19 pages, AMSLatex, references added'}) -[:WRITTEN_BY]- (m:Author)\\nWHERE m.affiliation STARTS WITH 'a'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the Games played by the stream with id \"129004176\"?"}, {"role": "assistant", "content": "MATCH (s:Stream {id: \"129004176\"})-[:PLAYS]->(g:Game)\\nRETURN g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 streams with the highest number of games played."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nRETURN s.name AS stream, count(g) AS num_games\\nORDER BY num_games DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a cast member who has also worked in the crew of the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)<-[:CREW_FOR]-(p)\\nRETURN m.title AS MovieTitle, p.name AS PersonName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 entities that have filed transactions where the originator bank is located in 'Angola'?"}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.originator_bank_country = 'Angola'\\nRETURN e\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average author_id for Author that are linked to Article via WRITTEN_BY and have comments date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:WRITTEN_BY]->(m:Author)\\nWHERE m.comments < date('2020-12-31')\\nRETURN avg(m.author_id) AS avg_author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Author where author_id is 1184638302ce384c7549eeead253af2d?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'1184638302ce384c7549eeead253af2d'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with article_id equal to 1010, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1010'})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and are PUBLISHED_IN linked to Journal, where meta is 213?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[r:PUBLISHED_IN {meta :'213'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 actors have the highest average imdbRating for movies they acted in?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.imdbRating IS NOT NULL\\nWITH a, avg(m.imdbRating) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 3\\nRETURN a.name, avgRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the average number of hours spent practicing for students who got rejected?"}, {"role": "assistant", "content": "MATCH (c:College)-[t:EDUCATES]->(p:Player)\\nWHERE t.decision = 'no'\\nRETURN avg(p.HS)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 directors of movies released in the 2000s?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWHERE m.released >= 2000 AND m.released < 2010\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies that have been directed by directors born in Nebraska?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn = \"Nebraska, USA\"\\nRETURN m.title, m.year, m.imdbRating\\nORDER BY m.imdbRating DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 orders had a required date in 1996?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.requiredDate STARTS WITH '1996'\\nRETURN o\\nORDER BY o.requiredDate\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the doi_id for DOI combined with the name for Keyword, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.doi_id AS Records\\nUNION\\nMATCH (m:Keyword)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Return the different nominees of musicals that have an award that is not the Tony Award."}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWHERE musical.Award <> 'Tony Award'\\nRETURN DISTINCT musical.Nominee"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters with INTERACTS2 relationships in book 2 with a weight less than 20."}, {"role": "assistant", "content": "MATCH (c1:Character)-[i2:INTERACTS2]->(c2:Character)\\nWHERE i2.book = 2 AND i2.weight < 20\\nRETURN c1, i2, c2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Categories where specifications is math.IT and list their properties, including those of Categories!"}, {"role": "assistant", "content": "MATCH (b:Categories)-[r]->(n)\\nWHERE b.specifications = 'math.IT'\\nRETURN properties(b) AS Categories_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with pages equal to 527-551, connected to Article that has title equal to $A_{\\infty}$-structures on an elliptic curve?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '527-551'}]->(m:Journal)\\nWHERE n.title = '$A_{\\infty}$-structures on an elliptic curve'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"installation_date\": \"STRING\",\n \"long\": \"FLOAT\",\n \"lat\": \"FLOAT\",\n \"city\": \"STRING\",\n \"dock_count\": \"INTEGER\"\n }\n },\n \"Status\": {\n \"properties\": {\n \"time\": \"STRING\",\n \"docks_available\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"bikes_available\": \"INTEGER\"\n }\n },\n \"Weather\": {\n \"properties\": {\n \"wind_dir_degrees\": \"INTEGER\",\n \"precipitation_inches\": \"INTEGER\",\n \"mean_sea_level_pressure_inches\": \"FLOAT\",\n \"zip_code\": \"INTEGER\",\n \"events\": \"STRING\",\n \"max_humidity\": \"INTEGER\",\n \"min_sea_level_pressure_inches\": \"FLOAT\",\n \"max_sea_level_pressure_inches\": \"INTEGER\",\n \"max_gust_speed_mph\": \"INTEGER\",\n \"date\": \"STRING\",\n \"max_visibility_miles\": \"INTEGER\",\n \"max_wind_Speed_mph\": \"INTEGER\",\n \"mean_wind_speed_mph\": \"INTEGER\",\n \"mean_humidity\": \"INTEGER\",\n \"mean_dew_point_f\": \"INTEGER\",\n \"mean_temperature_f\": \"INTEGER\",\n \"min_humidity\": \"INTEGER\",\n \"min_temperature_f\": \"INTEGER\",\n \"min_dew_point_f\": \"INTEGER\",\n \"mean_visibility_miles\": \"INTEGER\",\n \"min_visibility_miles\": \"INTEGER\",\n \"max_temperature_f\": \"INTEGER\",\n \"max_dew_point_f\": \"INTEGER\",\n \"cloud_cover\": \"INTEGER\"\n }\n },\n \"Trip\": {\n \"properties\": {\n \"start_station_name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"duration\": \"INTEGER\",\n \"end_date\": \"STRING\",\n \"bike_id\": \"INTEGER\",\n \"zip_code\": \"INTEGER\",\n \"end_station_id\": \"INTEGER\",\n \"subscription_type\": \"STRING\",\n \"end_station_name\": \"STRING\",\n \"start_station_id\": \"INTEGER\",\n \"start_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "What are the ids of the trips that lasted the longest and how long did they last?"}, {"role": "assistant", "content": "MATCH (t:Trip)\\nRETURN t.id, t.duration\\nORDER BY t.duration DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have a betweenness higher than 1000000?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.betweenness > 1000000\\nRETURN u"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Categories where specifications or category_id contains q-fin.RM!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'q-fin.RM'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Categories)\\nWHERE m.category_id CONTAINS 'q-fin.RM'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common status for Intermediaries registered in South Africa?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {countries: 'South Africa'})\\nWITH i.status AS status, count(*) AS count\\nORDER BY count DESC\\nRETURN status, count\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of people who have directed movies with a budget over 50 million USD?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CREW_FOR {job: \"Director\"}]->(m:Movie)\\nWHERE m.budget > 50000000\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the total CPU resources allocated to machines in rack 'DC1-RCK-1-1'?"}, {"role": "assistant", "content": "MATCH (r:Rack {name: 'DC1-RCK-1-1'})-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN sum(t.cpu) AS TotalCPU"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all the streams that have a 'HAS_TEAM' relationship with a team whose name contains the word 'Stream'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE t.name CONTAINS 'Stream'\\nRETURN s.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 5 questions with the most favorites that have been answered."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.answered = true\\nRETURN q\\nORDER BY q.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 1006 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '1006'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies that have a keyword in common with \"Toy Story\"."}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: 'Toy Story'})\\nMATCH (toyStory)-[:HAS_KEYWORD]->(keyword)\\nMATCH (otherMovie:Movie)-[:HAS_KEYWORD]->(keyword)\\nWHERE otherMovie <> toyStory\\nRETURN DISTINCT otherMovie.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which racks are located in zone 1 of the DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(r:Rack {zone: 1})\\nRETURN r.name AS rackName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 7 and Keyword, for which key_id is 1af2a68bafbcdcb0f3329c5793163154?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'7'}), (b:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 most recent movies in the graph."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.released\\nORDER BY m.released DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget for movies in the same genre as \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Toy Story\"})-[:IN_GENRE]->(g:Genre)\\nWITH collect(g.id) AS toyStoryGenres\\nMATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE g.id IN toyStoryGenres\\nRETURN avg(m.budget)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of movies with a budget greater than 100000000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 100000000\\nRETURN avg(m.runtime)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Enzyme\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Product\": \"STRING\",\n \"name\": \"STRING\",\n \"Chromosome\": \"STRING\",\n \"Location\": \"STRING\",\n \"Porphyria\": \"STRING\",\n \"OMIM\": \"INTEGER\"\n }\n },\n \"Medicine\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Trade_Name\": \"STRING\",\n \"FDA_approved\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n },\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n }\n ],\n \"relationshipProperties\": {\n \"INTERACTS_WITH\": {\n \"interaction_type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What is the total count of enzymes?"}, {"role": "assistant", "content": "MATCH (e:Enzyme)\\nRETURN count(e)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of 'followers' for users who have mentioned 'neo4j' in their tweets?"}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(mentioned:User {screen_name: 'neo4j'})\\nWITH avg(u.followers) AS average_followers\\nRETURN average_followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 users who have interacted with 'chromevoid.bsky.social'."}, {"role": "assistant", "content": "MATCH (u:User {label: 'chromevoid.bsky.social'})-[:INTERACTED]->(interactedUser:User)\\nRETURN interactedUser\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 filings by the number of originators."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWITH f, count(e) AS originator_count\\nORDER BY originator_count DESC\\nLIMIT 5\\nRETURN f.sar_id AS filing_id, originator_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the dates when questions tagged with 'aws-lambda' were created."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nRETURN q.createdAt AS creationDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have an IMDb ID that starts with 'tt00'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.imdb_id STARTS WITH 'tt00'\\nRETURN m.title, m.imdb_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters who have a 'louvain' value of 1."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain = 1\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Topic for which description is The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics., and what are their relationships to Topic?"}, {"role": "assistant", "content": "MATCH (c:Topic)<-[r]-(n)\\nWHERE c.description = 'The study of geometric shapes and their properties, focusing on the structure and behavior of spaces rather than their physical characteristics.'\\nRETURN properties(n) AS props, r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a 'fastrf_embedding' value greater than 0.8 in the 5th position?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[4] > 0.8\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the label for Topic combined with the update_date for UpdateDate!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nRETURN n.label AS Records\\nUNION ALL\\nMATCH (m:UpdateDate)\\nRETURN m.update_date AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the persons who have written, directed, and produced the same movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:WROTE]->(m:Movie)\\nMATCH (p)-[:DIRECTED]->(m)\\nMATCH (p)-[:PRODUCED]->(m)\\nRETURN p.name, m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where article_id is 1013 and DOI, for which doi_id equals abce5ed79c520bdb8fd79a61a852648d?"}, {"role": "assistant", "content": "MATCH p=(a:Article{article_id:'1013'})-[*]->(d:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 genres by the number of movies associated with them?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS Genre, count(m) AS NumberOfMovies\\nORDER BY NumberOfMovies DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at UpdateDate where update_date is 2011-11-10 and traversing through Article with title Subexponential groups in 4-manifold topology!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2011-11-10'})-[*]->(d:Article{title:'Subexponential groups in 4-manifold topology'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 questions with a creation date on a weekend."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE date(q.createdAt).weekday IN [6, 7]\\nRETURN q\\nORDER BY q.createdAt\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Article for which title is Summation and transformation formulas for elliptic hypergeometric series, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Article{title:'Summation and transformation formulas for elliptic hypergeometric series'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Wrestler\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Wrestler_ID\": \"INTEGER\",\n \"Reign\": \"STRING\",\n \"Event\": \"STRING\",\n \"Location\": \"STRING\",\n \"Days_held\": \"STRING\"\n }\n },\n \"Elimination\": {\n \"properties\": {\n \"Elimination_ID\": \"STRING\",\n \"Wrestler_ID\": \"STRING\",\n \"Time\": \"STRING\",\n \"Eliminated_By\": \"STRING\",\n \"Team\": \"STRING\",\n \"Elimination_Move\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the teams that have both wrestlers eliminated by \"Orton\" and wrestlers eliminated by \"Benjamin\"."}, {"role": "assistant", "content": "MATCH (e:Elimination)\\nWHERE e.Eliminated_By = \"Orton\" OR e.Eliminated_By = \"Benjamin\"\\nRETURN DISTINCT e.Team"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name genres in which Harold Lloyd has directed movies."}, {"role": "assistant", "content": "MATCH (d:Director {name: 'Harold Lloyd'})-[:DIRECTED]->(m:Movie)-[:IN_GENRE]->(g:Genre)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies where the producer and director are the same person."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:PRODUCED]-(p)\\nRETURN m.title AS movieTitle"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the journal_id for Journal that is linked through a PUBLISHED_IN relationship with the Article where comments is 22 pages, LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.comments='22 pages, LaTeX'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where first_name is Randall and share a common property with Topic, for which cluster equals 5?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'Randall'})-[r]->(n), (d:Topic{cluster:'5'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten Author that have affiliation and return their records!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.affiliation IS NOT NULL\\nRETURN n.affiliation\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the address of the business reviewed by the user named 'Angie'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Angie'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nRETURN b.address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the UpdateDate for which update_date is 2017-07-11!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate {update_date:'2017-07-11'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"HasAllergy\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Allergy\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"AllergyType\": {\n \"properties\": {\n \"Allergy\": \"STRING\",\n \"AllergyType\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the type of allergy Cat?"}, {"role": "assistant", "content": "MATCH (a:AllergyType)\\nWHERE a.Allergy = \"Cat\"\\nRETURN a.AllergyType"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the names of people who have worked at Microsoft and have a skill level of 'intermediate' in Java"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_POSITION]->(:Position)-[:AT_COMPANY]->(c:Company), (p)-[:HAS_SKILL]->(s:Skill)\\nWHERE toLower(c.name) CONTAINS 'microsoft' AND toLower(s.name) CONTAINS 'java' AND toLower(s.level) CONTAINS 'intermediate'\\nRETURN p.id, p.role, p.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products with a unit price less than $5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitPrice < 5\\nRETURN p.productName, p.unitPrice\\nORDER BY p.unitPrice ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "How many actors have appeared in each musical?"}, {"role": "assistant", "content": "MATCH (T1:actor)-[]-(T2:musical)\\nWITH count(T1.Musical_ID) AS count, T2.Name AS Name\\nRETURN Name,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the specifications from Categories where either category_id is eea477d68b70c3a05be12567240033ef or specifications is not null!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.category_id = 'eea477d68b70c3a05be12567240033ef' OR n.specifications IS NOT NULL\\nRETURN DISTINCT n.specifications AS specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 customers based on the number of orders placed."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nRETURN c.companyName, count(o) AS NumberOfOrders\\nORDER BY NumberOfOrders DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Article where comments is 23 pages, 1 figure and Article, for which abstract equals The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2)\nadmits a reduction to the q-deformed parafermion algebras. We interpret the\nlatter theory as a free field realization of the Andrews-Baxter-Forrester\nmodels in regime II. We give multi-particle form factors of some local\noperators on the lattice and compute their scaling limit, where the models are\ndescribed by a massive field theory with Z_k symmetric minimal scattering\nmatrices.\n?"}, {"role": "assistant", "content": "MATCH p=(a:Article{comments:'23 pages, 1 figure'})-[*]->(d:Article{abstract:' The Wakimoto construction for the quantum affine algebra U_q(\\hat{sl}_2) admits a reduction to the q-deformed parafermion algebras. We interpret the latter theory as a free field realization of the Andrews-Baxter-Forrester models in regime II. We give multi-particle form factors of some local operators on the lattice and compute their scaling limit, where the models are described by a massive field theory with Z_k symmetric minimal scattering matrices. '})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 videos by vote count?"}, {"role": "assistant", "content": "MATCH (v:Video)\\nRETURN v.title, v.vote_count\\nORDER BY v.vote_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where category_id is 0131645b590b64c1a0cf13a4fceeb000 and share a common property with Categories, for which category_id equals 978aee6db23fc939cec71ac05eb15b7a?"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'0131645b590b64c1a0cf13a4fceeb000'})-[r]->(n), (d:Categories{category_id:'978aee6db23fc939cec71ac05eb15b7a'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the first 3 businesses located in 'MT'?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.state = 'MT'\\nRETURN b.name\\nORDER BY b.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average CPU core count for machines running the 'cms' application?"}, {"role": "assistant", "content": "MATCH (app:Application {name: 'cms'})-[:RUNS]->(machine:Machine)-[:TYPE]->(type:Type)\\nWITH avg(type.cpu) AS average_cpu_cores\\nRETURN average_cpu_cores"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "\"get the histogram of amounts by country\""}, {"role": "assistant", "content": "MATCH (c:Country)<-[:COUNTRY]-(e:Entity)-[:FILED]->(f:Filing)\\nRETURN c.name AS Country, f.amount AS Amount, COUNT(*) AS Frequency\\nORDER BY Amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find 8 Article that are missing the article_id!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id IS NULL\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average IMDB rating of movies released in the same year as \"Finding Nemo\"?"}, {"role": "assistant", "content": "MATCH (nemo:Movie {title: \"Finding Nemo\"})\\nWITH nemo.year AS releaseYear\\nMATCH (m:Movie {year: releaseYear})\\nWITH avg(m.imdbRating) AS averageRating\\nRETURN averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the category_id of the Categories and the label for Topic!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nMATCH (m:Topic)\\nRETURN n.category_id, m.label\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"area_code_state\": {\n \"properties\": {\n \"area_code\": \"STRING\",\n \"state\": \"STRING\"\n }\n },\n \"contestants\": {\n \"properties\": {\n \"contestant_number\": \"STRING\",\n \"contestant_name\": \"STRING\"\n }\n },\n \"votes\": {\n \"properties\": {\n \"vote_id\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state\": \"STRING\",\n \"contestant_number\": \"STRING\",\n \"created\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the vote ids, phone numbers and states of all votes."}, {"role": "assistant", "content": "MATCH (votes:VOTES)\\nRETURN votes.vote_id,votes.phone_number,votes.state"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tweets by 'neo4j' that have been tagged with a hashtag and mention another user."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)\\nWHERE exists{ (tweet)-[:TAGS]->(:Hashtag) } AND exists{ (tweet)-[:MENTIONS]->(:User) }\\nRETURN tweet.text\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which five entities have the highest transaction volume?\""}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nRETURN e.name, SUM(f.amount) as total_volume\\nORDER BY total_volume DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the different types of companies listed under the 'Other' node category?"}, {"role": "assistant", "content": "MATCH (o:Other)\\nRETURN DISTINCT o.type AS company_types"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Topic where cluster is 8 and Keyword, for which key_id is 1af2a68bafbcdcb0f3329c5793163154?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'8'}), (b:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List 5 movies that have a runtime longer than 120 minutes."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime > 120\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies with a budget under 10 million that have generated over 100 million in revenue."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget < 10000000 AND m.revenue > 100000000\\nRETURN m\\nORDER BY m.revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the 3 streams that play the least common games based on follower count."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nWITH g, count(s) AS streamCount, max(s.followers) AS maxFollowers\\nORDER BY streamCount ASC\\nLIMIT 3\\nMATCH (s:Stream)-[:PLAYS]->(g)\\nRETURN s.name AS streamName, s.followers, g.name AS gameName\\nORDER BY s.followers DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies with the most countries available in their languages list."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.languages IS NOT NULL\\nRETURN m.title, m.languages\\nORDER BY size(m.languages) DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of DOI that is HAS_DOI connected to Article that has article_id equal to 1048?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE n.article_id = 1048\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average age of directors of the top 5 voted movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:DIRECTED]-(p:Person)\\nWITH m, p\\nORDER BY m.votes DESC\\nLIMIT 5\\nWITH p, m.released AS movieReleasedYear\\nRETURN AVG(movieReleasedYear - p.born) AS averageAgeOfDirectors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {}\n },\n \"Author\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Topic and Author?"}, {"role": "assistant", "content": "MATCH (a:Topic)-[r]->(n), (d:Author)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie has the lowest number of votes and was released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released > 2000\\nRETURN m\\nORDER BY m.votes ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List characters with a book45PageRank above 5 and a community of 584."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book45PageRank > 5 AND c.community = 584\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the most common tags for questions asked by users with a reputation over 50000?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE u.reputation > 50000\\nRETURN t.name AS tag, COUNT(*) AS tag_count\\nORDER BY tag_count DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average score of questions tagged with 'apollo'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'apollo'})\\nWITH avg(q.score) AS averageScore\\nRETURN averageScore"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 genres that have more than 50 movies associated with them."}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nWITH g, count(m) as movieCount\\nWHERE movieCount > 50\\nRETURN g.name AS genre, movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which persons have the name 'Joel' and have produced a movie with more than 100 votes?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nWHERE p.name = 'Joel' AND m.votes > 100\\nRETURN p, m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DocumentsWithExpense\": {\n \"properties\": {\n \"Document_Details\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"Document\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Document_Date\": \"STRING\",\n \"Document_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_ID\": \"INTEGER\"\n }\n },\n \"RefDocumentType\": {\n \"properties\": {\n \"Document_Type_Name\": \"STRING\",\n \"Document_Type_Code\": \"STRING\",\n \"Document_Type_Description\": \"STRING\"\n }\n },\n \"Statement\": {\n \"properties\": {\n \"Statement_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"Account_ID\": \"INTEGER\",\n \"Account_Details\": \"STRING\",\n \"Statement_ID\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"Project_ID\": \"INTEGER\",\n \"Project_Details\": \"STRING\"\n }\n },\n \"RefBudgetCode\": {\n \"properties\": {\n \"Budget_Type_Description\": \"STRING\",\n \"Budget_Type_Code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"HAS_TYPE\",\n \"to\": \"RefDocumentType\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Statement\",\n \"type\": \"HAS_EXPENSE\",\n \"to\": \"Document\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"HAS\",\n \"to\": \"Statement\"\n },\n {\n \"from\": \"Document\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"DocumentsWithExpense\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"RefBudgetCode\"\n }\n ]\n}"}, {"role": "user", "content": "Show all document type codes, document type names, document type descriptions."}, {"role": "assistant", "content": "MATCH (d:RefDocumentType)\\nRETURN d.Document_Type_Code, d.Document_Type_Name, d.Document_Type_Description"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which is the most upvoted question?\""}, {"role": "assistant", "content": "MATCH (q:Question)\\nRETURN q\\nORDER BY q.upVotes DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average star rating for businesses in each state?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(review:Review)\\nWITH b.state AS state, avg(review.stars) AS averageRating\\nRETURN state, averageRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where author_id is d83c43e5b1cf398c4e549843f497694b and share a common property with Report, for which report_id equals dd0a54fea06e7b7a384741aac9313d65?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'d83c43e5b1cf398c4e549843f497694b'})-[r]->(n), (d:Report{report_id:'dd0a54fea06e7b7a384741aac9313d65'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What type of machine is 'DC1-RCK-4-9-M-103'?"}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-4-9-M-103'})-[:TYPE]->(t:Type)\\nRETURN t.type AS machineType"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Article where abstract is We present a new, more elementary proof of the Freedman-Teichner result that\nthe geometric classification techniques (surgery, s-cobordism, and\npseudoisotopy) hold for topological 4-manifolds with groups of subexponential\ngrowth. In an appendix Freedman and Teichner give a correction to their\noriginal proof, and reformulate the growth estimates in terms of coarse\ngeometry.\n?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' We present a new, more elementary proof of the Freedman-Teichner result that the geometric classification techniques (surgery, s-cobordism, and pseudoisotopy) hold for topological 4-manifolds with groups of subexponential growth. In an appendix Freedman and Teichner give a correction to their original proof, and reformulate the growth estimates in terms of coarse geometry. '})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 users based on the number of posts they have made."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)\\nWITH u, count(t) AS num_posts\\nORDER BY num_posts DESC\\nLIMIT 5\\nRETURN u.screen_name AS user, num_posts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many distinct louvain values are present in the graph?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN count(DISTINCT c.louvain)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Keyword where key_id ends with 0e!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.key_id =~'0e.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actor has the most movies with a rating higher than 8.0 on IMDB?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWHERE m.imdbRating > 8.0\\nWITH a, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN a.name AS actorName, movieCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tags have been used more than twice in the database?"}, {"role": "assistant", "content": "MATCH (:Question)-[:TAGGED]->(t:Tag)\\nWITH t.name AS tagName, COUNT(*) AS tagCount\\nWHERE tagCount > 2\\nRETURN tagName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 actors with roles in the most diverse genres (based on taglines)?"}, {"role": "assistant", "content": "MATCH (a:Person)-[:ACTED_IN]->(m:Movie)\\nWITH a, count(DISTINCT m.tagline) AS num_genres\\nORDER BY num_genres DESC\\nLIMIT 3\\nRETURN a.name AS actor, num_genres"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Classification of Subsystems for Local Nets with Trivial Superselection\n Structure and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Classification of Subsystems for Local Nets with Trivial Superselection Structure'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movie had the largest number of actors participating?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:ACTED_IN]-(a:Actor)\\nWITH m, count(a) as actorCount\\nRETURN m.title as movieTitle, actorCount\\nORDER BY actorCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to UpdateDate for which update_date is 2017-07-11, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2017-07-11'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is 28 pages, LaTex and are PUBLISHED_IN linked to Journal, where pages is 263-281?"}, {"role": "assistant", "content": "MATCH (a:Article{comments:'28 pages, LaTex'})-[r:PUBLISHED_IN {pages :'263-281'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 users that 'Neo4j' follows?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed\\nORDER BY followed.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many people have directed more than two movies?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, count(m) AS directedMovies\\nWHERE directedMovies > 2\\nRETURN count(p) AS numberOfDirectors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Enzyme\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"Product\": \"STRING\",\n \"name\": \"STRING\",\n \"Chromosome\": \"STRING\",\n \"Location\": \"STRING\",\n \"Porphyria\": \"STRING\",\n \"OMIM\": \"INTEGER\"\n }\n },\n \"Medicine\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"Trade_Name\": \"STRING\",\n \"FDA_approved\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n },\n {\n \"from\": \"Medicine\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"Enzyme\"\n }\n ],\n \"relationshipProperties\": {\n \"INTERACTS_WITH\": {\n \"interaction_type\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Which enzyme names have the substring \"ALA\"?"}, {"role": "assistant", "content": "MATCH (e:Enzyme)\\nWHERE e.name =~ \".*ALA.*\"\\nRETURN e.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the characters who have 'INTERACTS2' relationships."}, {"role": "assistant", "content": "MATCH (c:Character)-[:INTERACTS2]->()\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 filings with entities that are both originator and beneficiary."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)<-[:BENEFITS]-(f)\\nRETURN f\\nORDER BY f.begin\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which tags are associated with questions that have been downvoted at least once?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.downVotes > 0\\nRETURN DISTINCT t.name AS tag"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 6147 and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '6147'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find movies where the plot includes the word 'love' and were released on Valentine's Day."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.plot CONTAINS 'love' AND m.released ENDS WITH '-02-14'\\nRETURN m.title, m.released, m.plot"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which users are moderators for streams with more than 500,000 total views?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(s:Stream)\\nWHERE s.total_view_count > 500000\\nRETURN u.name AS user, s.name AS stream, s.total_view_count AS views"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Keyword where name is logarithmic barrier penalty, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'logarithmic barrier penalty'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List all questions that have 'GraphQL' mentioned in their text and are tagged with 'angular'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE t.name = 'angular' AND q.text CONTAINS 'GraphQL'\\nRETURN q.title AS title, q.link AS link, q.createdAt AS createdAt, q.upVotes AS upVotes, q.downVotes AS downVotes, q.score AS score, q.favorites AS favorites, q.answered AS answered"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where article_id is 602236!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.article_id='602236'\\nRETURN m.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for Keyword that is linked through a HAS_KEY relationship with the Article where comments is 17 pages!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.comments='17 pages'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies with a revenue greater than 1 billion dollars."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 1000000000\\nRETURN m.title AS title, m.revenue AS revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which countries have produced movies with an average vote greater than 8.0?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nWHERE m.average_vote > 8.0\\nRETURN DISTINCT c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the IPs of the top 3 Interfaces exposed to Port 80?"}, {"role": "assistant", "content": "MATCH (i:Interface)-[:EXPOSES]->(p:Port {port: 80})\\nRETURN i.ip\\nORDER BY i.ip\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that are both moderated and chatted in by the same user."}, {"role": "assistant", "content": "MATCH (u:User)-[:CHATTER]->(s:Stream)<-[:MODERATOR]-(u)\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 streams have the most moderators?"}, {"role": "assistant", "content": "MATCH (s:Stream)<-[:MODERATOR]-(u:User)\\nWITH s, COUNT(u) AS moderator_count\\nORDER BY moderator_count DESC\\nLIMIT 3\\nRETURN s.name AS stream_name, moderator_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Report where report_id is c3c968646b7780fada2a98b2a5a61746 and traversing through Article with abstract We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'c3c968646b7780fada2a98b2a5a61746'})-[*]->(d:Article{abstract:' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `discount` applied to orders of the product with `productID` '72'?"}, {"role": "assistant", "content": "MATCH (p:Product {productID: '72'})-[:ORDERS]->(o:Order)\\nRETURN avg(toFloat(o.discount)) AS averageDiscount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which first_name starts with L, skip the first 2 records and return the next 2 records of first_name!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name STARTS WITH 'L'\\nWITH n.first_name AS first_name SKIP 2\\nLIMIT 2\\nRETURN first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the longest runtime and were released before 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date < date('2000-01-01') AND m.runtime IS NOT NULL\\nRETURN m.title, m.runtime\\nORDER BY m.runtime DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products are supplied by suppliers with a phone number ending in '2222'?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE s.phone ENDS WITH '2222'\\nRETURN p.productName AS productName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all movies that have been rated by at least 5 different users."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[:RATED]-(u:User)\\nWITH m, count(DISTINCT u) AS userCount\\nWHERE userCount >= 5\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with article_id equal to 1006, passing through Journal via PUBLISHED_IN?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1006'})-[:PUBLISHED_IN]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names of businesses that have a 'Library' category in 'Missoula'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Library'})\\nWHERE b.city = 'Missoula'\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of first_name and last_name from Author where first_name does not start with J!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.first_name STARTS WITH 'J'\\nRETURN DISTINCT n.first_name AS first_name, n.last_name AS last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the faculty ids of all the male faculty members?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nWHERE f.Sex = 'M'\\nRETURN f.FacID"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_Details\": \"STRING\",\n \"Customer_ID\": \"INTEGER\"\n }\n },\n \"Claim\": {\n \"properties\": {\n \"Amount_Claimed\": \"INTEGER\",\n \"Date_Claim_Made\": \"STRING\",\n \"Amount_Settled\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\",\n \"Date_Claim_Settled\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"CustomerPolicy\": {\n \"properties\": {\n \"Start_Date\": \"STRING\",\n \"Policy_Type_Code\": \"STRING\",\n \"End_Date\": \"STRING\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"Settlement\": {\n \"properties\": {\n \"Amount_Claimed\": \"INTEGER\",\n \"Date_Claim_Made\": \"STRING\",\n \"Amount_Settled\": \"INTEGER\",\n \"Claim_ID\": \"INTEGER\",\n \"Customer_Policy_ID\": \"INTEGER\",\n \"Date_Claim_Settled\": \"STRING\",\n \"Settlement_ID\": \"INTEGER\"\n }\n },\n \"Payment\": {\n \"properties\": {\n \"Payment_ID\": \"INTEGER\",\n \"Amount_Payment\": \"INTEGER\",\n \"Date_Payment_Made\": \"STRING\",\n \"Payment_Method_Code\": \"STRING\",\n \"Settlement_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerPolicy\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerPolicy\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"CustomerPolicy\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"CustomerPolicy\"\n },\n {\n \"from\": \"Settlement\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Claim\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_WITH\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"Payment\",\n \"type\": \"PAID_WITH\",\n \"to\": \"Settlement\"\n }\n ]\n}"}, {"role": "user", "content": "List the method, date and amount of all the payments, in ascending order of date."}, {"role": "assistant", "content": "MATCH (p:Payment)\\nRETURN p.Payment_Method_Code, p.Date_Payment_Made, p.Amount_Payment\\nORDER BY p.Date_Payment_Made ASC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Find the streams that have a moderator who also moderates a stream with more than 10,000 followers."}, {"role": "assistant", "content": "MATCH (s1)-[:MODERATOR]->(m), (s2)-[:MODERATOR]->(m)\\nWHERE s2.followers > 10000\\nRETURN DISTINCT s1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Journal where journal_id is 79942321e19994e38ad2e372af21c893 and traversing through Author with last_name Chakrabarti!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'79942321e19994e38ad2e372af21c893'})-[*]->(d:Author{last_name:'Chakrabarti'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch comments of the Article that are connected to DOI via HAS_DOI!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE EXISTS {\\nMATCH (n)-[:HAS_DOI]->(:DOI) }\\nRETURN n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions with exactly 1 downVote."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.downVotes = 1\\nRETURN q.title AS title, q.text AS text, q.link AS link, q.createdAt AS createdAt, q.id AS id, q.upVotes AS upVotes, q.score AS score, q.favorites AS favorites, q.answered AS answered"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with the highest budget to revenue ratio."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget > 0 AND m.revenue > 0\\nWITH m, (toFloat(m.budget) / toFloat(m.revenue)) AS budget_to_revenue_ratio\\nRETURN m.title, m.budget, m.revenue, budget_to_revenue_ratio\\nORDER BY budget_to_revenue_ratio DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of users who have moderated other users?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(otherUser:User)\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Keyword where key_id is d2d74b47b149d8090871a2f33e80809b and Author, for which author_id equals 13c7b3c4f69c510e94c671c881522bac?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[*]->(d:Author{author_id:'13c7b3c4f69c510e94c671c881522bac'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Keyword where name or key_id contains logarithms!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name CONTAINS 'logarithms'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Keyword)\\nWHERE m.key_id CONTAINS 'logarithms'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Journal for which journal_id is f663b7749e96288af8628ca3cdb4f021, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'f663b7749e96288af8628ca3cdb4f021'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of movies acted in by actors born in each decade?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWITH floor(p.born / 10) * 10 AS decade, count(m) AS movies_acted_in\\nRETURN decade, avg(movies_acted_in) AS average_movies\\nORDER BY decade"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where affiliation is unspecified and traversing through Article with title Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[*]->(d:Article{title:'Free Field Construction for the ABF Models in Regime II'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 languages in which the most adult films are originally made?"}, {"role": "assistant", "content": "MATCH (:Adult)-[:ORIGINAL_LANGUAGE]->(l:Language)\\nRETURN l.name AS language, COUNT(*) AS film_count\\nORDER BY film_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Topic with label equal to Mathematics_6!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.label = 'Mathematics_6'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Article where comments or comments contains LaTeX2e, 36 pages ; Some misprints are corrected!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments CONTAINS 'LaTeX2e, 36 pages ; Some misprints are corrected'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Article)\\nWHERE m.comments CONTAINS 'LaTeX2e, 36 pages ; Some misprints are corrected'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Personfriend\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"year\": \"INTEGER\",\n \"friend\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"age\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"job\": \"STRING\",\n \"city\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Personfriend\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Personfriend\",\n \"type\": \"KNOWS\",\n \"to\": \"Person\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the person whose age is below 30?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.age < 30\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the three highest budget movies produced by 'Disney'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(c:ProductionCompany)\\nWHERE c.name CONTAINS 'Disney'\\nRETURN m.title, m.budget\\nORDER BY m.budget DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Investor\": {\n \"properties\": {\n \"investor_id\": \"INTEGER\",\n \"Investor_details\": \"STRING\"\n }\n },\n \"Transaction\": {\n \"properties\": {\n \"date_of_transaction\": \"STRING\",\n \"share_count\": \"STRING\",\n \"investor_id\": \"INTEGER\",\n \"transaction_type_code\": \"STRING\",\n \"amount_of_transaction\": \"FLOAT\",\n \"transaction_id\": \"INTEGER\"\n }\n },\n \"Purchase\": {\n \"properties\": {\n \"purchase_details\": \"STRING\",\n \"purchase_transaction_id\": \"INTEGER\"\n }\n },\n \"Lot\": {\n \"properties\": {\n \"lot_id\": \"INTEGER\",\n \"investor_id\": \"INTEGER\",\n \"lot_details\": \"STRING\"\n }\n },\n \"RefTransactionType\": {\n \"properties\": {\n \"transaction_type_code\": \"STRING\",\n \"transaction_type_description\": \"STRING\"\n }\n },\n \"Sale\": {\n \"properties\": {\n \"sales_transaction_id\": \"INTEGER\",\n \"sales_details\": \"STRING\"\n }\n },\n \"TransactionsLot\": {\n \"properties\": {\n \"lot_id\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Lot\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"REFERENCE\",\n \"to\": \"RefTransactionType\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Sale\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"Purchase\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"Purchase\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"OWNS\",\n \"to\": \"Lot\"\n },\n {\n \"from\": \"Lot\",\n \"type\": \"FUNDED_BY\",\n \"to\": \"Investor\"\n },\n {\n \"from\": \"Transaction\",\n \"type\": \"REFERENCE\",\n \"to\": \"RefTransactionType\"\n },\n {\n \"from\": \"Sale\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"OWNS\",\n \"to\": \"Lot\"\n },\n {\n \"from\": \"TransactionsLot\",\n \"type\": \"CONTAINS\",\n \"to\": \"Transaction\"\n }\n ]\n}"}, {"role": "user", "content": "Find the number of investors in total."}, {"role": "assistant", "content": "MATCH (n:Investor)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies did Lana Wachowski direct?"}, {"role": "assistant", "content": "MATCH (lana:Person {name: \"Lana Wachowski\"})-[:DIRECTED]->(movie:Movie)\\nRETURN movie.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the DOI where name or name contains 10.1023/A:1004807104626!"}, {"role": "assistant", "content": "1004807104626!\nA: MATCH (n:DOI)\\nWHERE n.name CONTAINS '10.1023/A:1004807104626'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:DOI)\\nWHERE m.name CONTAINS '10.1023/A:1004807104626'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all businesses in California (CA)."}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'})\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters with the lowest 3 'centrality' values who interacted with \"Brynden-Tully\"."}, {"role": "assistant", "content": "MATCH (bt:Character {name: \"Brynden-Tully\"})\\nMATCH (bt)<-[:INTERACTS1|:INTERACTS2|:INTERACTS3|:INTERACTS45|:INTERACTS]-(other)\\nWITH other, other.centrality AS centrality_score\\nORDER BY centrality_score\\nLIMIT 3\\nRETURN other.name, centrality_score"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article where title is Solutions to congruences using sets with the property of Baire!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'Solutions to congruences using sets with the property of Baire'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_ID\": \"INTEGER\",\n \"Customer_name\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Service_name\": \"STRING\"\n }\n },\n \"FirstNotificationOfLos\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Service_ID\": \"INTEGER\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"Claim\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"Settlement\": {\n \"properties\": {\n \"Settlement_Amount\": \"FLOAT\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\",\n \"Settlement_ID\": \"INTEGER\"\n }\n },\n \"AvailablePolicy\": {\n \"properties\": {\n \"policy_type_code\": \"STRING\",\n \"Customer_Phone\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"Settlement\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Claim\"\n },\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n }\n ],\n \"relationshipProperties\": {\n \"OFFERS\": {\n \"Date_Opened\": \"STRING\",\n \"Date_Closed\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are all the policy types of the customer named \"Dayana Robel\"?"}, {"role": "assistant", "content": "MATCH (p:AvailablePolicy)-[:OFFERS]-(c:Customer)\\nWHERE c.Customer_name = \"Dayana Robel\"\\nRETURN DISTINCT p.policy_type_code"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 405142 and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'405142'})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which name starts with sup!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name STARTS WITH 'sup'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the affiliation for Author that is linked through a WRITTEN_BY relationship with the Article where abstract is Using a contraction procedure, we construct a twist operator that satisfies a\nshifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2))\nalgebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a\nGervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a\nclass of representations, the dynamical Yang-Baxter equation may be expressed\nas a compatibility condition for the algebra of the Lax operators.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.abstract=' Using a contraction procedure, we construct a twist operator that satisfies a shifted cocycle condition, and leads to the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra. The corresponding universal ${\\cal R}_{h}(y)$ matrix obeys a Gervais-Neveu-Felder equation associated with the U_{h;y}(sl(2)) algebra. For a class of representations, the dynamical Yang-Baxter equation may be expressed as a compatibility condition for the algebra of the Lax operators. '\\nRETURN m.affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with the status 'In Production'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.status = 'In Production'\\nRETURN m.title, m.release_date\\nORDER BY m.release_date\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 1139 and are PUBLISHED_IN linked to Journal, where meta is 218?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1139'})-[r:PUBLISHED_IN {meta :'218'}]->(b:Journal)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "How many orders have been shipped to each country?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWITH o.shipCountry AS shipCountry, count(*) AS orderCount\\nRETURN shipCountry, orderCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 countries that have produced the most movies in the 'Comedy' genre."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Comedy'})\\nMATCH (m)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(m) AS MoviesProduced\\nORDER BY MoviesProduced DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 production companies that have produced the most adult films."}, {"role": "assistant", "content": "MATCH (p:ProductionCompany)-[:PRODUCED_BY]-(a:Adult)\\nWITH p, count(a) AS numAdultFilms\\nORDER BY numAdultFilms DESC\\nRETURN p.name, numAdultFilms\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find all entities that have an officer with the country code 'WSM'."}, {"role": "assistant", "content": "MATCH (o:Officer {country_codes: 'WSM'})-[:officer_of]->(e:Entity)\\nRETURN DISTINCT e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the tweets posted by 'Neo4j' that contain links. Limit to 5."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:CONTAINS]->(link:Link)\\nRETURN tweet.id, tweet.text\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1052 or article_id is less than 1071!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1052 OR n.article_id < 1071\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Player\": {\n \"properties\": {\n \"pID\": \"INTEGER\",\n \"pName\": \"STRING\",\n \"yCard\": \"STRING\",\n \"HS\": \"INTEGER\"\n }\n },\n \"College\": {\n \"properties\": {\n \"state\": \"STRING\",\n \"cName\": \"STRING\",\n \"enr\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n },\n {\n \"from\": \"College\",\n \"type\": \"EDUCATES\",\n \"to\": \"Player\"\n }\n ],\n \"relationshipProperties\": {\n \"EDUCATES\": {\n \"pPos\": \"STRING\",\n \"decision\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?"}, {"role": "assistant", "content": "MATCH (c:College)-[t:EDUCATES]->(p:Player)\\nWHERE t.decision = 'yes'\\nRETURN DISTINCT c.state, c.enr"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the questions asked by users with a reputation of exactly 420137."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.reputation = 420137\\nRETURN q.title AS question_title, q.text AS question_text, q.link AS question_link, q.createdAt AS question_createdAt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Channel\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Owner\": \"STRING\",\n \"Rating_in_percent\": \"FLOAT\",\n \"Channel_ID\": \"INTEGER\",\n \"Share_in_percent\": \"FLOAT\"\n }\n },\n \"Program\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Owner\": \"STRING\",\n \"Program_ID\": \"INTEGER\",\n \"Origin\": \"STRING\",\n \"Launch\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Program\",\n \"type\": \"BROADCASTS_ON\",\n \"to\": \"Channel\"\n },\n {\n \"from\": \"Program\",\n \"type\": \"BROADCASTS_ON\",\n \"to\": \"Channel\"\n }\n ],\n \"relationshipProperties\": {\n \"BROADCASTS_ON\": {\n \"Time_of_day\": \"STRING\",\n \"Date\": \"STRING\",\n \"Share_in_percent\": \"FLOAT\"\n }\n }\n}"}, {"role": "user", "content": "list all the names of programs, ordering by launch time."}, {"role": "assistant", "content": "MATCH (p:Program)\\nRETURN p.Name\\nORDER BY p.Launch"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many people have a PhD in physics from MIT?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_EDUCATION]->(e:Education)\\nWHERE toLower(e.degree) CONTAINS 'phd' AND toLower(e.degree) CONTAINS 'physics' AND toLower(e.university) CONTAINS 'mit'\\nRETURN COUNT(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 people who have written and directed the same movie."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)<-[:WROTE]-(p)\\nRETURN p.name AS person_name, m.title AS movie_title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies by revenue that were released in the last five years of the schema's data range."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2012 AND m.year <= 2016\\nRETURN m.title AS title, m.revenue AS revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating given by users to the movie \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Toy Story'})<-[r:RATED]-(:User)\\nRETURN avg(r.rating) AS average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where title is A New Cohomology Theory for Orbifold and PUBLISHED_IN has pages on 1-31!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '1-31'}]->(m)\\nWHERE n.title='A New Cohomology Theory for Orbifold'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where first_name is S. O. and Author, for which affiliation is unspecified?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'S. O.'}), (b:Author{affiliation:'unspecified'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 entities that originated filings with amounts greater than 1000000?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.amount > 1000000\\nWITH f\\nMATCH (f)-[:ORIGINATOR]->(e:Entity)\\nWITH e, count(f) AS filingCount\\nORDER BY filingCount DESC\\nRETURN e.name AS entityName, filingCount\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find characters with a book1PageRank of exactly 8."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank = 8\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Author for which first_name is A.!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'A.'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the profile URLs of the top 3 users followed by 'neo4j'?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:FOLLOWS]->(followed:User)\\nRETURN followed.profile_image_url\\nORDER BY followed.followers DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a revenue to budget ratio greater than 5?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue / m.budget > 5\\nRETURN m.title, m.revenue, m.budget, m.revenue / m.budget AS ratio\\nORDER BY ratio DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the DOI where doi_id is ee4af8f04acefe1036a78a4436691f55!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = 'ee4af8f04acefe1036a78a4436691f55'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 oldest streams based on the 'createdAt' property?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nRETURN s.name AS stream_name, s.createdAt AS created_at\\nORDER BY s.createdAt\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch all the Article and return the abstract and the number of nodes connected to them via PUBLISHED_IN with pages = 641-672."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.pages = '641-672'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.abstract AS abstract, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Search for label and cluster from Topic where label is not null and cluster exceeds 3 and sort the results by cluster, beginning with the largest!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label IS NOT NULL AND n.cluster > 3\\nRETURN n.label AS label, n.cluster AS cluster\\nORDER BY cluster DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 directors who have a born date but no died date."}, {"role": "assistant", "content": "MATCH (d:Director)\\nWHERE d.born IS NOT NULL AND d.died IS NULL\\nRETURN d.name, d.born\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average budget of movies that have grossed over $1 billion worldwide?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 1000000000\\nWITH avg(m.budget) AS average_budget\\nRETURN average_budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Find the first 3 users who have mentioned 'neo4j' in tweets and follow 'neo4j'."}, {"role": "assistant", "content": "MATCH (u:User)-[:FOLLOWS]->(m:Me {screen_name: 'neo4j'}), (t:Tweet)-[:MENTIONS]->(m), (u)-[:POSTS]->(t)\\nRETURN u.screen_name\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 streams that play a game and have a VIP who is a user."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game)\\nMATCH (s)-[:VIP]->(u:User)\\nRETURN s.name AS stream_name, g.name AS game_name, u.name AS vip_user_name\\nORDER BY s.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the `orderID` and the total number of products in each order."}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH o, count(p) AS totalProducts\\nRETURN o.orderID, totalProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 4129 and be PUBLISHED_IN with year recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '4129'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.year IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Who acted in the movie \\\"Inception\\\"?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie {title: \"Inception\"})\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the director who has directed the most movies with a runtime over 2 hours?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.runtime > 120\\nWITH d, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 1\\nRETURN d.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where title is Summation and transformation formulas for elliptic hypergeometric series and PUBLISHED_IN has year on 2002!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {year : '2002'}]->(m)\\nWHERE n.title='Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the affiliation from Author where either first_name is Bernhard or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Bernhard' OR n.affiliation IS NOT NULL\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 production companies have the most movies with a runtime under 80 minutes?"}, {"role": "assistant", "content": "MATCH (p:ProductionCompany)<-[:PRODUCED_BY]-(m:Movie)\\nWHERE m.runtime < 80\\nRETURN p.name, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 'color' of the top 3 Users with the lowest 'x' values."}, {"role": "assistant", "content": "MATCH (u:User)\\nRETURN u.color, u.x\\nORDER BY u.x ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n and PUBLISHED_IN has meta on 213!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '213'}]->(m)\\nWHERE n.abstract=' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the specifications for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.specifications AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is 10 pages, 4 figures and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'10 pages, 4 figures'})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the inactivation date of the Entity named \"TIANSHENG INDUSTRY AND TRADING CO., LTD.\"?"}, {"role": "assistant", "content": "MATCH (e:Entity { name: \"TIANSHENG INDUSTRY AND TRADING CO., LTD.\" })\\nRETURN e.inactivation_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the affiliation of the Author that is not related to the Topic with the label Mathematical Analysis_8!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Topic {label: 'Mathematical Analysis_8'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all businesses in the 'Library' category."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c:Category {name: 'Library'})\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 tags that are associated with more than one question."}, {"role": "assistant", "content": "MATCH (t:Tag)<-[:TAGGED]-(q:Question)\\nWITH t, count(q) AS numQuestions\\nWHERE numQuestions > 1\\nRETURN t.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 527-551, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='527-551'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who directed the first 3 movies reviewed with a rating of 100 and what are their titles?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.rating = 100\\nWITH m\\nORDER BY m.released\\nLIMIT 3\\nMATCH (d:Person)-[:DIRECTED]->(m)\\nRETURN d.name AS director, m.title AS movie"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the imdb id of the video 'Jonah: A VeggieTales Movie'?"}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})\\nRETURN v.imdb_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 questions with a negative score and no upVotes."}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.score < 0 AND q.upVotes = 0\\nRETURN q.title, q.link, q.score, q.upVotes\\nORDER BY q.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where author_id or first_name contains 976d319b0a2961b44db9ef9e43ea5039!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id CONTAINS '976d319b0a2961b44db9ef9e43ea5039'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS '976d319b0a2961b44db9ef9e43ea5039'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the affiliation for Author combined with the category_id for Categories, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.affiliation AS Records\\nUNION\\nMATCH (m:Categories)\\nRETURN m.category_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many unique relationships originate from Author where affiliation is unspecified?"}, {"role": "assistant", "content": "MATCH (a:Author{affiliation:'unspecified'})-[r]->()\\nRETURN COUNT(DISTINCT TYPE(r)) AS rels, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find abstract of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where pages is 1-31!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages = '1-31'\\nRETURN n.abstract AS abstract, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Report with report_no equal to none provided!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'none provided'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the name from Journal where journal_id is not f663b7749e96288af8628ca3cdb4f021!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id <> 'f663b7749e96288af8628ca3cdb4f021'\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the products in the order with ID '10248'?"}, {"role": "assistant", "content": "MATCH (o:Order {orderID: '10248'})-[:ORDERS]->(p:Product)\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"local_authority\": \"STRING\",\n \"services\": \"STRING\",\n \"network_name\": \"STRING\"\n }\n },\n \"Train\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"time\": \"STRING\",\n \"interval\": \"STRING\",\n \"name\": \"STRING\",\n \"train_number\": \"INTEGER\",\n \"origin\": \"STRING\",\n \"destination\": \"STRING\"\n }\n },\n \"WeeklyWeather\": {\n \"properties\": {\n \"day_of_week\": \"STRING\",\n \"precipitation\": \"FLOAT\",\n \"high_temperature\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"low_temperature\": \"INTEGER\",\n \"wind_speed_mph\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"WeeklyWeather\",\n \"type\": \"PROVIDES_DATA_FOR\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"Station\",\n \"type\": \"SERVES\",\n \"to\": \"Train\"\n },\n {\n \"from\": \"WeeklyWeather\",\n \"type\": \"PROVIDES_DATA_FOR\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "How many different services are provided by all stations?"}, {"role": "assistant", "content": "MATCH (s:Station)\\nRETURN count(DISTINCT s.services)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average total view count for streams that are chatted in by users who also moderate streams?"}, {"role": "assistant", "content": "MATCH (u:User)-[:MODERATOR]->(:Stream)\\nWITH DISTINCT u\\nMATCH (u)-[:CHATTER]->(s:Stream)\\nWITH avg(s.total_view_count) AS average_view_count\\nRETURN average_view_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the first_name from Author where either first_name is S. O. or first_name is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'S. O.' OR n.first_name IS NOT NULL\\nRETURN DISTINCT n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 3 movies with a released year divisible by 10."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.released % 10 = 0\\nRETURN m.title\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a runtime longer than 120 minutes and are categorized under the 'Drama' genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre {name: 'Drama'})\\nWHERE m.runtime > 120\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting UpdateDate where update_date is 2010-06-18 and Categories, for which category_id is cb7bf6a30b0381c15264305ad7677b30?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2010-06-18'}), (b:Categories{category_id:'cb7bf6a30b0381c15264305ad7677b30'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Categories that has specifications cond-mat.soft!"}, {"role": "assistant", "content": "MATCH path=(:Categories {specifications:'cond-mat.soft'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 genres by the number of movies?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWITH g, count(m) as movieCount\\nRETURN g.name as genre, movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Topic for which description=The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.!"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'The study of how systems change over time, focusing on the existence, stability, and structure of fixed points and equilibria.'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the cities that have more than one business."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWITH b.city AS city, count(*) AS businessCount\\nWHERE businessCount > 1\\nRETURN city"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'unitPrice' of products in each order?"}, {"role": "assistant", "content": "MATCH (o:Order)-[r:ORDERS]->(p:Product)\\nWITH o.orderID AS orderID, avg(toFloat(r.unitPrice)) AS avgUnitPrice\\nRETURN orderID, avgUnitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 questions that have received more downVotes than upVotes?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.downVotes > q.upVotes\\nRETURN q.title, q.link, q.downVotes, q.upVotes\\nORDER BY q.createdAt ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 tweets that 'Me' has replied to."}, {"role": "assistant", "content": "MATCH (me:Me)-[:POSTS]->(reply_tweet:Tweet)-[:REPLY_TO]->(original_tweet:Tweet)\\nRETURN original_tweet\\nORDER BY reply_tweet.created_at DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Journal where name is Math. Nachr and Author, for which last_name equals Chakrabarti?"}, {"role": "assistant", "content": "MATCH p=(a:Journal{name:'Math. Nachr'})-[*]->(d:Author{last_name:'Chakrabarti'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to UpdateDate for which update_date is 2007-05-23!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2007-05-23'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch the abstract of the Article that are linked via HAS_CATEGORY to more than three Categories, and list Categories specifications and Categories counts, ordering by Categories count and limiting to the top six results!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_CATEGORY]->(m:Categories)\\nWITH DISTINCT n, m\\nWITH n.abstract AS abstract, count(m) AS count, COLLECT(m.specifications) as specifications\\nWHERE count > 3\\nRETURN abstract, count, specifications\\nORDER BY count\\nLIMIT 6"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Keyword where name is tree (optimality criteria: minimum mean-squared error)\n\nalternative keyword suggestions:\n- multiscale superpopulation models\n- independent innovations trees\n- water- and Journal, with journal_id equal 79942321e19994e38ad2e372af21c893, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Keyword{name:'tree (optimality criteria: minimum mean-squared error) alternative keyword suggestions: - multiscale superpopulation models - independent innovations trees - water-'})-[*]-(e:Journal{journal_id:'79942321e19994e38ad2e372af21c893'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the key_id for Keyword that is linked through a HAS_KEY relationship with the Article where comments is 10 pages, 4 figures!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_KEY]->(m)\\nWHERE n.comments='10 pages, 4 figures'\\nRETURN m.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the author_id and the first_name for those Author where author_id starts with b!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id STARTS WITH 'b'\\nRETURN n.author_id AS author_id, n.first_name AS first_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"conductor\": {\n \"properties\": {\n \"conductor_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"nationality\": \"STRING\",\n \"year_of_work\": \"STRING\"\n }\n },\n \"orchestra\": {\n \"properties\": {\n \"orchestra_id\": \"STRING\",\n \"orchestra\": \"STRING\",\n \"conductor_id\": \"STRING\",\n \"record_company\": \"STRING\",\n \"year_of_founded\": \"STRING\",\n \"major_record_format\": \"STRING\"\n }\n },\n \"performance\": {\n \"properties\": {\n \"performance_id\": \"STRING\",\n \"orchestra_id\": \"STRING\",\n \"type\": \"STRING\",\n \"date\": \"STRING\",\n \"official_ratings_(millions)\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"share\": \"STRING\"\n }\n },\n \"show\": {\n \"properties\": {\n \"show_id\": \"STRING\",\n \"performance_id\": \"STRING\",\n \"if_first_show\": \"STRING\",\n \"result\": \"STRING\",\n \"attendance\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show the names of conductors that have conducted more than one orchestras."}, {"role": "assistant", "content": "MATCH (T1:conductor)-[]-(T2:orchestra)\\nWITH count(*) AS count, T1.Name AS Name\\nWHERE count > 1\\nRETURN Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 reviews with a star rating above 4.5?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars > 4.5\\nRETURN r.reviewId, r.text, r.stars, u.name, b.name\\nORDER BY r.date ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Keyword for which key_id is 1af2a68bafbcdcb0f3329c5793163154, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'1af2a68bafbcdcb0f3329c5793163154'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 questions with the highest number of favorites that were asked by users with a link containing 'stackoverflow'."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.link CONTAINS 'stackoverflow'\\nRETURN q.title, q.favorites, q.link\\nORDER BY q.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where key_id is 72e4f3fc2930bd3a0a7730a664d069d6 and traversing through Article with article_id 1010!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'72e4f3fc2930bd3a0a7730a664d069d6'})-[*]->(d:Article{article_id:'1010'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 entities by number of filings where the originator bank is 'HSBC'."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:FILED]->(f:Filing)\\nWHERE f.originator_bank = 'HSBC'\\nWITH e, COUNT(f) AS num_filings\\nORDER BY num_filings DESC\\nLIMIT 5\\nRETURN e.name AS entity_name, num_filings"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the games played by users who are VIPs of streams with more than 1,000 followers and have a moderator who also moderates a stream with the language \"en\"."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.followers > 1000\\nMATCH (s)-[:VIP]->(vip:User)\\nMATCH (s)-[:MODERATOR]->(mod:User)\\nMATCH (mod)-[:MODERATOR]->(otherStream:Stream)\\nMATCH (otherStream)-[:HAS_LANGUAGE]->(l:Language)\\nWHERE l.name = \"en\"\\nMATCH (vip)-[:CHATTER]->(stream:Stream)-[:PLAYS]->(g:Game)\\nRETURN DISTINCT g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of financial transactions that the account with the name 337 has."}, {"role": "assistant", "content": "MATCH (t:FinancialTransaction)-[:IS_RELATED_TO]->(a:Account)\\nWHERE a.account_name = \"337\"\\nRETURN count(distinct t)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products are associated with categories that have a description including 'sauces'?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.description CONTAINS 'sauces'\\nRETURN p.productName AS productName, c.categoryName AS categoryName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or author_id contains Maciej!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Maciej'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.author_id CONTAINS 'Maciej'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the comments from Article where either title is The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra or comments is not null!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.title = 'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra' OR n.comments IS NOT NULL\\nRETURN DISTINCT n.comments AS comments"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who has reviewed the most movies with a rating above 90?"}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWHERE r.rating > 90\\nRETURN p.name, COUNT(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which orders were placed by customers from 'Berlin'?"}, {"role": "assistant", "content": "MATCH (c:Customer {city: 'Berlin'})-[:PURCHASED]->(o:Order)\\nRETURN o.orderID AS orderID, o.orderDate AS orderDate, o.shipName AS shipName, o.shipCity AS shipCity, o.shipCountry AS shipCountry"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 persons who acted in a movie released before 1980."}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)\\nWHERE m.released < 1980\\nRETURN p.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Topic for which label starts with M, skip the first 2 records and return the next 2 records of label!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.label STARTS WITH 'M'\\nWITH n.label AS label SKIP 2\\nLIMIT 2\\nRETURN label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a tagline containing the word \"Speed\"?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Speed'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 questions tagged with 'react-apollo'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'react-apollo'})\\nRETURN q\\nORDER BY q.score DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has article_id 1006!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1006'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {}\n },\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Keyword and Categories, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*]-(n)-[*]-(b:Categories)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a review summary 'An amazing journey' and their ratings?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-(p:Person)\\nWHERE r.summary = 'An amazing journey'\\nRETURN m.title AS movie, r.rating AS rating\\nORDER BY r.rating DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a book1PageRank greater than 3?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.book1PageRank > 3\\nRETURN c.name, c.book1PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where description is The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship and share a common property with Author, for which first_name equals Randall?"}, {"role": "assistant", "content": "MATCH (a:Topic{description:'The study of how populations grow, decline, and evolve over time, with a focus on understanding the underlying mechanisms and patterns that govern these processes. Key concepts include discrete log problems, logarithmic barriers, intermediate and super-exponential growth, layer-by-layer growth, and population dynamics from a superpopulation viewpoint. Topics also include population genetics, selection, and the role of logarithms in various contexts such as gain, log-balanced, log-price, and log resolution. Additionally, there is interest in understanding the relationship'})-[r]->(n), (d:Author{first_name:'Randall'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 genres by the number of movies?"}, {"role": "assistant", "content": "MATCH (g:Genre)<-[:IN_GENRE]-(m:Movie)\\nRETURN g.name AS genre, count(m) AS movieCount\\nORDER BY movieCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Categories\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where article_id is 601494 and are HAS_CATEGORY linked to a Categories?"}, {"role": "assistant", "content": "MATCH (a:Article {article_id:'601494'})-[r:HAS_CATEGORY]->(b:Categories)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Topic for which label=Dynamical Systems_10!"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Dynamical Systems_10'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the users who have written reviews for businesses in the same state as businesses they have reviewed before."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWITH u, collect(DISTINCT b.state) AS reviewed_states, count(r) AS total_reviews\\nWHERE size(reviewed_states) < total_reviews\\nRETURN DISTINCT u.name AS user_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Artwork\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Artwork_ID\": \"INTEGER\",\n \"Type\": \"STRING\"\n }\n },\n \"FestivalDetail\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Festival_Name\": \"STRING\",\n \"Chair_Name\": \"STRING\",\n \"Num_of_Audience\": \"INTEGER\",\n \"Location\": \"STRING\",\n \"Festival_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n },\n {\n \"from\": \"FestivalDetail\",\n \"type\": \"DISPLAYS\",\n \"to\": \"Artwork\"\n }\n ],\n \"relationshipProperties\": {\n \"DISPLAYS\": {\n \"Result\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "What are the names and locations of festivals?"}, {"role": "assistant", "content": "MATCH (fd:FestivalDetail)\\nRETURN fd.Festival_Name, fd.Location"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Service\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"service_descriptio\": \"STRING\",\n \"service_type_code\": \"STRING\",\n \"service_name\": \"STRING\"\n }\n },\n \"Form\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"form_number\": \"STRING\",\n \"form_name\": \"STRING\",\n \"form_type_code\": \"STRING\",\n \"form_id\": \"INTEGER\",\n \"form_description\": \"STRING\"\n }\n },\n \"PartyService\": {\n \"properties\": {\n \"service_id\": \"INTEGER\",\n \"booking_id\": \"INTEGER\",\n \"service_datetime\": \"STRING\",\n \"booking_made_date\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"town_city\": \"STRING\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"line_1_number_building\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"party_id\": \"INTEGER\",\n \"party_phone\": \"STRING\",\n \"party_email\": \"STRING\"\n }\n },\n \"Organization\": {\n \"properties\": {\n \"organization_id\": \"INTEGER\",\n \"date_formed\": \"STRING\",\n \"uk_vat_number\": \"STRING\",\n \"organization_name\": \"STRING\"\n }\n },\n \"Individual\": {\n \"properties\": {\n \"individual_last_name\": \"STRING\",\n \"individual_middle_name\": \"STRING\",\n \"individual_email\": \"STRING\",\n \"individual_address\": \"STRING\",\n \"individual_first_name\": \"STRING\",\n \"individual_id\": \"INTEGER\",\n \"inidividual_phone\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"PartyService\",\n \"type\": \"PROVIDES_SERVICE\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Form\",\n \"type\": \"SUBMITTED_BY\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Party\",\n \"type\": \"HELD_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n },\n {\n \"from\": \"Individual\",\n \"type\": \"WORKS_FOR\",\n \"to\": \"Organization\"\n }\n ],\n \"relationshipProperties\": {\n \"SUBMITTED_BY\": {\n \"date_fully_completed\": \"STRING\",\n \"date_completion_started\": \"STRING\",\n \"form_status_code\": \"STRING\"\n },\n \"WORKS_FOR\": {\n \"date_contact_to\": \"STRING\",\n \"date_contact_from\": \"STRING\"\n },\n \"HELD_AT\": {\n \"address_type_code\": \"STRING\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Find the name of the youngest organization."}, {"role": "assistant", "content": "MATCH (o:Organization)\\nRETURN o.organization_name\\nORDER BY o.date_formed DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the top 3 products with the highest units on order and are part of the 'Dairy Products' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Dairy Products'})\\nRETURN p.productName\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Journal and Journal, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*]-(n)-[*]-(b:Journal)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the properties of nodes connected to Author where first_name is Maciej, by two different types of relationships?"}, {"role": "assistant", "content": "MATCH (e:Author{first_name:'Maciej'})-[r1]->(n)-[r2]->(m)\\nWHERE TYPE(r1) <> TYPE(r2)\\nRETURN properties(n) AS props1, properties(m) AS props2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List entities with a jurisdiction description of 'Aruba' and their respective jurisdictions."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.jurisdiction_description = 'Aruba'\\nRETURN e.name, e.jurisdiction"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 businesses that are categorized under both 'Library' and 'Beer'."}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(c1:Category {name: 'Library'}), (b)-[:IN_CATEGORY]->(c2:Category {name: 'Beer'})\\nRETURN b\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products with a unit price less than $5."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitPrice < 5\\nRETURN p\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Manufacturer\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Founder\": \"STRING\",\n \"Headquarter\": \"STRING\",\n \"Revenue\": \"FLOAT\",\n \"Code\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Manufacturer\": \"INTEGER\",\n \"Price\": \"INTEGER\",\n \"Code\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"Manufacturer\"\n }\n ]\n}"}, {"role": "user", "content": "Compute the average price of all products with manufacturer code equal to 2."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.Manufacturer = 2\\nRETURN AVG(p.Price)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the title of the Article that is not related to the Journal with the name Topology!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Journal {name: 'Topology'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the article_id of the Article that is not related to the Author with the first_name Alexander!"}, {"role": "assistant", "content": "MATCH (n:Article), (:Author {first_name: 'Alexander'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.article_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the journal_id of the Journal that is not related to the UpdateDate with the update_date 2021-02-09!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:UpdateDate {update_date: '2021-02-09'})\\nWHERE NOT (n) --> (:UpdateDate)\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Can you tell me a movie with Tom Hanks from 1994?"}, {"role": "assistant", "content": "MATCH (a:Actor {name: \"Tom Hanks\"})-[:ACTED_IN]->(m:Movie {year: 1994})\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find ten Author that have author_id and return their records!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.author_id IS NOT NULL\\nRETURN n.author_id\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have a company number and what are those numbers?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.company_number IS NOT NULL\\nRETURN e.name, e.company_number"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Report where report_no contains G&T m!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no CONTAINS 'G&T m'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of businesses in Burlingame that have a rating higher than 4."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'Burlingame'})\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nWHERE r.stars > 4\\nRETURN DISTINCT b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the doi_id for DOI combined with the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nRETURN n.doi_id AS Records\\nUNION ALL\\nMATCH (m:Author)\\nRETURN m.affiliation AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for Journal that is linked to Article via PUBLISHED_IN where pages is 45-96 and has abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{pages: '45-96'}]->(m:Journal)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Keyword for which key_id is 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'5d6533e2a77e3daabc184ee8f2441597'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 streams with the most distinct teams associated."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nRETURN s.name AS stream, collect(DISTINCT t.name) AS teams, count(DISTINCT t) AS num_teams\\nORDER BY num_teams DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 products with units in stock less than 10."}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock < 10\\nRETURN p.productName, p.unitsInStock\\nORDER BY p.unitsInStock ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"HasAllergy\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Allergy\": \"STRING\"\n }\n },\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"AllergyType\": {\n \"properties\": {\n \"Allergy\": \"STRING\",\n \"AllergyType\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which allergy has most number of students affected?"}, {"role": "assistant", "content": "MATCH (n:HasAllergy)\\nWITH n.Allergy AS Allergy, COUNT(n) AS count\\nORDER BY count DESC\\nLIMIT 1\\nRETURN Allergy"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'louvain' value for characters with a 'degree' greater than 50?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.degree > 50\\nRETURN avg(c.louvain)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have abstract: An inclusion of observable nets satisfying duality induces an inclusion of\ncanonical field nets. Any Bose net intermediate between the observable net and\nthe field net and satisfying duality is the fixed-point net of the field net\nunder a compact group. This compact group is its canonical gauge group if the\noccurrence of sectors with infinite statistics can be ruled out for the\nobservable net and its vacuum Hilbert space is separable.\n and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' An inclusion of observable nets satisfying duality induces an inclusion of canonical field nets. Any Bose net intermediate between the observable net and the field net and satisfying duality is the fixed-point net of the field net under a compact group. This compact group is its canonical gauge group if the occurrence of sectors with infinite statistics can be ruled out for the observable net and its vacuum Hilbert space is separable. '}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 genres of movies produced by Pixar Animation Studios?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany {name: \"Pixar Animation Studios\"})\\nMATCH (m)-[:IN_GENRE]->(g:Genre)\\nRETURN g.name AS Genre, count(m) AS MoviesCount\\nORDER BY MoviesCount DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Article where article_id is 1009 and share a common property with Journal, for which name equals Journal of Mathematical Logic?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1009'})-[r]->(n), (d:Journal{name:'Journal of Mathematical Logic'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount of filings originated by entities located in China where the beneficiary bank is located in the United Kingdom?"}, {"role": "assistant", "content": "MATCH (e:Entity {country: 'CHN'})-[:ORIGINATOR]->(f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nWITH avg(f.amount) AS average_amount\\nRETURN average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UserProfile\": {\n \"properties\": {\n \"uid\": \"INTEGER\",\n \"partitionid\": \"INTEGER\",\n \"followers\": \"INTEGER\",\n \"email\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"uid\": \"INTEGER\",\n \"id\": \"INTEGER\",\n \"text\": \"STRING\",\n \"createdate\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the name and email of the user whose name contains the word ‘Swift’."}, {"role": "assistant", "content": "MATCH (n:UserProfile)\\nWHERE n.name CONTAINS \"Swift\"\\nRETURN n.name, n.email"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 questions with the most comments visible in their link descriptions?"}, {"role": "assistant", "content": "MATCH (q:Question)\\nWHERE q.link CONTAINS \"comments\"\\nRETURN q\\nORDER BY q.score DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 filings have the smallest number of transactions but involve a beneficiary bank from 'India'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'India'\\nRETURN f\\nORDER BY f.number ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 hashtags used by 'neo4j' in their tweets?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:TAGS]->(hashtag:Hashtag)\\nRETURN hashtag.name AS hashtag, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 5 genres that videos with a popularity rating above 5 belong to."}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre)\\nWHERE v.popularity > 5\\nRETURN DISTINCT g.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword for which key_id is 5d6533e2a77e3daabc184ee8f2441597!"}, {"role": "assistant", "content": "MATCH (n:Keyword {key_id:'5d6533e2a77e3daabc184ee8f2441597'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Can you tell me how many actors are in GoldenEye?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie {title: \"GoldenEye\"})\\nRETURN COUNT(a) AS numberOfActors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Characteristic\": {\n \"properties\": {\n \"characteristic_name\": \"STRING\",\n \"characteristic_id\": \"INTEGER\",\n \"characteristic_data_type\": \"STRING\",\n \"characteristic_type_code\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_category_code\": \"STRING\",\n \"typical_buying_price\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"color_code\": \"STRING\",\n \"typical_selling_price\": \"STRING\",\n \"product_description\": \"STRING\"\n }\n },\n \"RefCharacteristicType\": {\n \"properties\": {\n \"characteristic_type_code\": \"STRING\",\n \"characteristic_type_description\": \"STRING\"\n }\n },\n \"RefColor\": {\n \"properties\": {\n \"color_code\": \"STRING\",\n \"color_description\": \"STRING\"\n }\n },\n \"RefProductCategory\": {\n \"properties\": {\n \"unit_of_measure\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_category_description\": \"STRING\"\n }\n },\n \"ProductCharacteristic\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"characteristic_id\": \"INTEGER\",\n \"product_characteristic_value\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the product category description and unit of measurement of category \"Herbs\"?"}, {"role": "assistant", "content": "MATCH (c:RefProductCategory {product_category_code:\"Herbs\"})\\nRETURN c.product_category_description, c.unit_of_measure"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 originator banks that filed filings to the beneficiary bank with id \"barclays-bank-plc-london-england-gbr\"?"}, {"role": "assistant", "content": "MATCH (beneficiary:Entity {id: \"barclays-bank-plc-london-england-gbr\"})<-[:BENEFITS]-(filing:Filing)-[:ORIGINATOR]->(originator:Entity)\\nWITH originator.name AS originatorName, count(filing) AS filingCount\\nORDER BY filingCount DESC\\nRETURN originatorName, filingCount\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which character has the maximum 'pagerank' value among characters with a 'community' value of 735?"}, {"role": "assistant", "content": "MATCH (c:Character {community: 735})\\nWITH max(c.pagerank) AS max_pagerank\\nMATCH (c:Character {community: 735, pagerank: max_pagerank})\\nRETURN c.name, c.pagerank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a homepage listed in their properties?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.homepage IS NOT NULL\\nRETURN m.title, m.homepage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which reviews were written before 2017?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.date < date('2017-01-01')\\nRETURN r.reviewId AS reviewId, r.text AS reviewText, r.date AS reviewDate, r.stars AS stars, u.name AS userName, b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 countries where adult films are produced the most?"}, {"role": "assistant", "content": "MATCH (c:Country)<-[:PRODUCED_IN_COUNTRY]-(a:Adult)\\nRETURN c.name AS country, count(a) AS adultFilmCount\\nORDER BY adultFilmCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Journal where name is Journal of Mathematical Logic and Keyword, for which key_id is 468e440686a5984c9dbaefb5ac25d127?"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Journal of Mathematical Logic'}), (b:Keyword{key_id:'468e440686a5984c9dbaefb5ac25d127'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Race\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Date\": \"STRING\",\n \"Class\": \"STRING\",\n \"Track_ID\": \"STRING\",\n \"Race_ID\": \"INTEGER\"\n }\n },\n \"Track\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Year_Opened\": \"FLOAT\",\n \"Seating\": \"FLOAT\",\n \"Track_ID\": \"INTEGER\",\n \"Location\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the names, classes, and dates for all races?"}, {"role": "assistant", "content": "MATCH (r:Race)\\nRETURN r.Name, r.Class, r.Date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"customer_last_name\": \"STRING\",\n \"phone_number\": \"STRING\",\n \"state_county_province\": \"STRING\",\n \"customer_middle_initial\": \"STRING\",\n \"town_city\": \"STRING\",\n \"login_name\": \"STRING\",\n \"login_password\": \"STRING\",\n \"gender\": \"STRING\",\n \"customer_first_name\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"country\": \"STRING\",\n \"email_address\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_size\": \"STRING\",\n \"product_color\": \"STRING\",\n \"product_name\": \"STRING\",\n \"parent_product_id\": \"INTEGER\",\n \"unit_price\": \"FLOAT\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"order_id\": \"INTEGER\",\n \"date_order_placed\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Account\": {\n \"properties\": {\n \"date_account_opened\": \"STRING\",\n \"account_id\": \"INTEGER\",\n \"other_account_details\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"account_name\": \"STRING\"\n }\n },\n \"Invoice\": {\n \"properties\": {\n \"invoice_number\": \"INTEGER\",\n \"invoice_date\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"ProductCategory\": {\n \"properties\": {\n \"production_type_code\": \"STRING\",\n \"product_type_description\": \"STRING\",\n \"vat_rating\": \"FLOAT\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"product_quantity\": \"STRING\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"InvoiceLineItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"derived_product_cost\": \"FLOAT\",\n \"product_id\": \"INTEGER\",\n \"product_title\": \"STRING\",\n \"product_price\": \"FLOAT\",\n \"product_quantity\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"derived_total_cost\": \"FLOAT\"\n }\n },\n \"FinancialTransaction\": {\n \"properties\": {\n \"account_id\": \"INTEGER\",\n \"transaction_amount\": \"FLOAT\",\n \"transaction_type\": \"STRING\",\n \"transaction_date\": \"STRING\",\n \"invoice_number\": \"INTEGER\",\n \"transaction_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Account\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"Invoice\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"ProductCategory\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_ASSOCIATED_WITH\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"PART_OF\",\n \"to\": \"OrderItem\"\n },\n {\n \"from\": \"InvoiceLineItem\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_RELATED_TO\",\n \"to\": \"Account\"\n },\n {\n \"from\": \"FinancialTransaction\",\n \"type\": \"IS_PAID_WITH\",\n \"to\": \"Invoice\"\n }\n ]\n}"}, {"role": "user", "content": "Show the order ids and the number of invoices for each order."}, {"role": "assistant", "content": "MATCH (i:Invoice)\\nRETURN i.order_id, count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of businesses in 'Burlingame' with reviews dated in '2016' and the names of the reviewers?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:IN_CATEGORY]->(:Category), (r:Review)-[:REVIEWS]->(b), (u:User)-[:WROTE]->(r)\\nWHERE b.city = 'Burlingame' AND r.date >= date('2016-01-01') AND r.date < date('2017-01-01')\\nRETURN b.name AS businessName, u.name AS reviewerName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of followers for users who are mentioned in tweets that are retweeted by \"Neo4j\"?"}, {"role": "assistant", "content": "MATCH (neo4j:User {screen_name: \"neo4j\"})-[:POSTS]->(:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)\\nWITH retweetedTweet\\nMATCH (retweetedTweet)-[:MENTIONS]->(mentionedUser:User)\\nWITH mentionedUser\\nRETURN avg(mentionedUser.followers) AS average_followers"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Article where title is Free Field Construction for the ABF Models in Regime II and list their properties, including those of Article!"}, {"role": "assistant", "content": "MATCH (b:Article)-[r]->(n)\\nWHERE b.title = 'Free Field Construction for the ABF Models in Regime II'\\nRETURN properties(b) AS Article_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Lowest\": {\n \"properties\": {}\n },\n \"Ranking\": {\n \"properties\": {}\n },\n \"Award\": {\n \"properties\": {}\n },\n \"Character\": {\n \"properties\": {}\n },\n \"Age\": {\n \"properties\": {}\n },\n \"Name\": {\n \"properties\": {}\n },\n \"Year\": {\n \"properties\": {}\n },\n \"Nominee\": {\n \"properties\": {}\n },\n \"Country\": {\n \"properties\": {}\n },\n \"Stadium_ID\": {\n \"properties\": {}\n },\n \"Duration\": {\n \"properties\": {}\n },\n \"Average\": {\n \"properties\": {}\n },\n \"Location\": {\n \"properties\": {}\n },\n \"Budget_in_Billions\": {\n \"properties\": {}\n },\n \"Actor_ID\": {\n \"properties\": {}\n },\n \"Song_release_year\": {\n \"properties\": {}\n },\n \"Song_Name\": {\n \"properties\": {}\n },\n \"Department_ID\": {\n \"properties\": {}\n },\n \"Capacity\": {\n \"properties\": {}\n },\n \"Highest\": {\n \"properties\": {}\n },\n \"Is_male\": {\n \"properties\": {}\n },\n \"Result\": {\n \"properties\": {}\n },\n \"Category\": {\n \"properties\": {}\n },\n \"Creation\": {\n \"properties\": {}\n },\n \"Singer_ID\": {\n \"properties\": {}\n },\n \"Musical_ID\": {\n \"properties\": {}\n },\n \"Theme\": {\n \"properties\": {}\n },\n \"Num_Employees\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Show different nominees and the number of musicals they have been nominated."}, {"role": "assistant", "content": "MATCH (musical:musical)\\nWITH musical.nominee AS nominee, count(musical.nominee) AS count\\nRETURN nominee,count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 categories in which 'Exotic Liquids' supplies products?"}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: \"Exotic Liquids\"})-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nRETURN DISTINCT c.categoryName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of teams associated with streams created after 2018?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(t:Team)\\nWHERE s.createdAt > datetime('2018-01-01T00:00:00Z')\\nRETURN DISTINCT t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Keyword for which key_id is d2d74b47b149d8090871a2f33e80809b, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'d2d74b47b149d8090871a2f33e80809b'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the minimum `amount` filed by entities that are both the `ORIGINATOR` and the `CONCERNS` in the same filing?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(o:Entity)<-[:CONCERNS]-(f)\\nRETURN min(f.amount)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for Journal that is linked through a PUBLISHED_IN relationship with the Article where article_id is 5145!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.article_id='5145'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have a note stating 'Closed date stands for Cancelled date.'?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.note = 'Closed date stands for Cancelled date.'\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "What are the details and opening hours of the museums?"}, {"role": "assistant", "content": "MATCH (t:Museum), (a:TouristAttraction)\\nWHERE t.Museum_ID = a.Tourist_Attraction_ID\\nRETURN t.Museum_Details, a.Opening_Hours"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List the intermediary names that have a registered address linked to them."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:registered_address]->(a:Address)\\nRETURN i.name AS intermediary_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Find the characters with the top 4 highest 'book45PageRank' values who have interacted with 'Haldon'."}, {"role": "assistant", "content": "MATCH (haldon:Character {name: 'Haldon'})-[:INTERACTS45]->(other:Character)\\nWITH other \\nORDER BY other.book45PageRank DESC\\nLIMIT 4\\nRETURN other.name, other.book45PageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from DOI for which name is 10.1016/S0393-0440(00)00003-6, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{name:'10.1016/S0393-0440(00)00003-6'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List all products supplied by 'Exotic Liquids' that have a unit price above 10."}, {"role": "assistant", "content": "MATCH (s:Supplier {companyName: 'Exotic Liquids'})-[:SUPPLIES]->(p:Product)\\nWHERE p.unitPrice > 10\\nRETURN p.productName, p.unitPrice"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the sum of the sizes of users who have interacted with users with a color other than '#4A708B'?"}, {"role": "assistant", "content": "MATCH (u1:User)-[:INTERACTED]->(u2:User)\\nWHERE u2.color <> '#4A708B'\\nRETURN sum(u1.size)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have rated movies released before the year 2000?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE m.year < 2000\\nRETURN u.name, COUNT(r) AS ratingCount\\nORDER BY ratingCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have played in a movie and also directed a movie?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE exists{ (p)-[:ACTED_IN]->(:Movie) } AND exists{ (p)-[:DIRECTED]->(:Movie) }\\nRETURN p.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the movies with a vote count greater than 5000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 5000\\nRETURN m.title, m.vote_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies that have a backdrop path of '/iWahPsY3hsKOizZHgzQcAxv4O3B.jpg'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.poster_path = '/iWahPsY3hsKOizZHgzQcAxv4O3B.jpg'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 tweets that 'Neo4j' has mentioned other users in and were created in 2021?"}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:MENTIONS]->(mentioned:User)\\nWHERE t.created_at >= datetime('2021-01-01T00:00:00Z') AND t.created_at < datetime('2022-01-01T00:00:00Z')\\nRETURN t\\nORDER BY t.created_at\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 games played by streams with a language 'ja'."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language {name: 'ja'})\\nMATCH (s)-[:PLAYS]->(g:Game)\\nRETURN g.name AS game\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "List all entities with the same `jurisdiction_description` as the entity with `name` \"HOTFOCUS CO., LTD.\"."}, {"role": "assistant", "content": "MATCH (e1:Entity {name: \"HOTFOCUS CO., LTD.\"})\\nWITH e1.jurisdiction_description AS target_jurisdiction\\nMATCH (e2:Entity {jurisdiction_description: target_jurisdiction})\\nRETURN DISTINCT e2.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for DOI that is linked through a HAS_DOI relationship with the Article where title is Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_DOI]->(m)\\nWHERE n.title='Free Field Construction for the ABF Models in Regime II'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 characters by 'book45PageRank' who are in the same community as 'Murenmure'."}, {"role": "assistant", "content": "MATCH (c:Character {name: 'Murenmure'})-[:INTERACTS45*0..1]-(other:Character)\\nWHERE c.community = other.community\\nRETURN other.name, other.book45PageRank\\nORDER BY other.book45PageRank DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Report for which report_no is none provided!"}, {"role": "assistant", "content": "MATCH (a:Report{report_no:'none provided'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the journal_id of the Journal that is not related to the Topic with the description Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.!"}, {"role": "assistant", "content": "MATCH (n:Journal), (:Topic {description: 'Geometry, focusing on the study of hyperbolic spaces, structures, and manifolds, including their properties, relations, and applications in various fields such as topology, dynamics, and analysis.'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Article for which abstract is We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of\nhypersurfaces in projective space to those in weighted projective spaces.\n!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract:' We extend a result of to Esnault-Levine-Viehweg concerning the Chow groups of hypersurfaces in projective space to those in weighted projective spaces. '})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three movies have the most diverse set of spoken languages?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.languages\\nORDER BY size(m.languages) DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Staff\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Staff_ID\": \"INTEGER\"\n }\n },\n \"RoyalFamily\": {\n \"properties\": {\n \"Royal_Family_ID\": \"INTEGER\"\n }\n },\n \"RefHotelStarRating\": {\n \"properties\": {\n \"star_rating_description\": \"STRING\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"StreetMarket\": {\n \"properties\": {\n \"Market_ID\": \"INTEGER\",\n \"Market_Details\": \"STRING\"\n }\n },\n \"Location\": {\n \"properties\": {\n \"Location_Name\": \"STRING\",\n \"Address\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"Hotel\": {\n \"properties\": {\n \"pets_allowed_yn\": \"STRING\",\n \"price_range\": \"FLOAT\",\n \"hotel_id\": \"INTEGER\",\n \"star_rating_code\": \"STRING\"\n }\n },\n \"Visit\": {\n \"properties\": {\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Visit_Details\": \"STRING\",\n \"Visit_Date\": \"STRING\",\n \"Tourist_ID\": \"INTEGER\",\n \"Visit_ID\": \"INTEGER\"\n }\n },\n \"Shop\": {\n \"properties\": {\n \"Shop_Details\": \"STRING\",\n \"Shop_ID\": \"INTEGER\"\n }\n },\n \"Photo\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"Filename\": \"STRING\",\n \"Photo_ID\": \"INTEGER\"\n }\n },\n \"Feature\": {\n \"properties\": {\n \"Feature_Details\": \"STRING\",\n \"Feature_ID\": \"INTEGER\"\n }\n },\n \"TouristAttraction\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Tourist_Attraction_ID\": \"INTEGER\",\n \"How_to_Get_There\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\",\n \"Location_ID\": \"INTEGER\"\n }\n },\n \"ThemePark\": {\n \"properties\": {\n \"Theme_Park_Details\": \"STRING\",\n \"Theme_Park_ID\": \"INTEGER\"\n }\n },\n \"RefAttractionType\": {\n \"properties\": {\n \"Attraction_Type_Description\": \"STRING\",\n \"Attraction_Type_Code\": \"STRING\"\n }\n },\n \"Visitor\": {\n \"properties\": {\n \"Tourist_ID\": \"INTEGER\",\n \"Tourist_Details\": \"STRING\"\n }\n },\n \"Museum\": {\n \"properties\": {\n \"Museum_ID\": \"INTEGER\",\n \"Museum_Details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"Hotel\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefHotelStarRating\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Feature\",\n \"type\": \"ATTRACTS\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Location\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"ATTRACTS\",\n \"to\": \"Feature\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Shop\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"StreetMarket\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Photo\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"RoyalFamily\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"ThemePark\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n },\n {\n \"from\": \"TouristAttraction\",\n \"type\": \"RELATED_TO\",\n \"to\": \"RefAttractionType\"\n },\n {\n \"from\": \"Visit\",\n \"type\": \"HOSTS\",\n \"to\": \"Visitor\"\n },\n {\n \"from\": \"Museum\",\n \"type\": \"VISITED\",\n \"to\": \"TouristAttraction\"\n }\n ]\n}"}, {"role": "user", "content": "Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction."}, {"role": "assistant", "content": "MATCH (t:TouristAttraction)\\nWHERE t.Location_ID = 254 OR t.How_to_Get_There = \"bus\"\\nRETURN t.Name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Categories where category_id contains f294e61ea01b3678d7cd02b973bb71da, along with the type of their relationship with Categories!"}, {"role": "assistant", "content": "MATCH (d:Categories)-[r]->(n)\\nWHERE d.category_id CONTAINS 'f294e61ea01b3678d7cd02b973bb71da'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have title: Notes for a Quantum Index Theorem and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Notes for a Quantum Index Theorem'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount filed by the entity with name \"CIMB Bank Berhad\" between 2015-01-01T00:00:00Z and 2015-12-31T00:00:00Z?"}, {"role": "assistant", "content": "MATCH (e:Entity {name: \"CIMB Bank Berhad\"})-[:ORIGINATOR]->(f:Filing)\\nWHERE f.begin >= datetime('2015-01-01T00:00:00Z') AND f.end <= datetime('2015-12-31T00:00:00Z')\\nWITH avg(f.amount) AS averageAmount\\nRETURN averageAmount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Which streams have chatters that are also streams?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:CHATTER]->(c:Stream)\\nRETURN s.name AS StreamName, c.name AS ChatterStreamName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 categories contain the most products with a unit price over $50?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE p.unitPrice > 50\\nWITH c, count(p) AS ProductCount\\nORDER BY ProductCount DESC\\nLIMIT 3\\nRETURN c.categoryName, ProductCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to UpdateDate for which update_date is 2009-10-31, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2009-10-31'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of all services that are dependencies of the application 'webserver'."}, {"role": "assistant", "content": "MATCH (app:Application {name: 'webserver'})-[:DEPENDS_ON]->(service:Service)\\nRETURN DISTINCT service.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the affiliation from Author where either first_name is Amnon or affiliation is not null!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name = 'Amnon' OR n.affiliation IS NOT NULL\\nRETURN DISTINCT n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 original titles of movies with an original language of 'en'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:ORIGINAL_LANGUAGE]->(l:Language {id: 'en'})\\nRETURN m.original_title AS OriginalTitle\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 3 racks in zone 4."}, {"role": "assistant", "content": "MATCH (r:Rack)\\nWHERE r.zone = 4\\nRETURN r.name\\nORDER BY r.rack\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies with taglines containing the word 'adventure'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'adventure'\\nRETURN m.title, m.tagline\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Topic for which label is Riemannian geometry_4, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Topic{label:'Riemannian geometry_4'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies with a review summary containing the phrase \"Dark, but\"."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE r.summary CONTAINS 'Dark, but'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions that have been answered, have a createdAt date in June 2020, and are tagged with 'node.js'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.createdAt >= datetime('2020-06-01T00:00:00Z') AND q.createdAt < datetime('2020-07-01T00:00:00Z') AND q.answered = true AND t.name = 'node.js'\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the VIP users in streams that have over 1000000 followers?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(u:User)\\nWHERE s.followers > 1000000\\nRETURN u.name AS vip_user, s.name AS stream_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the description from Topic where either description is Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry. or description is not null!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description = 'Collection of terms related to polynomials, including their coefficients, bases, preservation, trends, and orthogonalities, as well as concepts such as Grobner bases, resultants, and Verblunsky coefficients, with applications in various fields such as reliability, physics, and algebraic geometry.' OR n.description IS NOT NULL\\nRETURN DISTINCT n.description AS description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where specifications is q-fin.RM and Article, for which title equals The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf\n U_{h;y}(sl(2)) algebra?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'q-fin.RM'})-[*]->(d:Article{title:'The Gervais-Neveu-Felder equation for the Jordanian quasi-Hopf U_{h;y}(sl(2)) algebra'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 movies with a revenue greater than their budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > m.budget\\nRETURN m.title, m.revenue, m.budget\\nORDER BY m.revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the name in Journal that is linked through a PUBLISHED_IN relationship with Article where title is Riemannian geometry of quantum groups and finite groups with\n nonuniversal differentials and PUBLISHED_IN has pages on 131-170!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {pages : '131-170'}]->(m)\\nWHERE n.title='Riemannian geometry of quantum groups and finite groups with nonuniversal differentials'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find Journal that has a name which begins with j, and is linked to Article via PUBLISHED_IN relationship, where Article has comments 19 pages, AMSLatex, references added!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: '19 pages, AMSLatex, references added'}) -[:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'j'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 adult films with the lowest vote count and are still in the 'Released' status?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.status = 'Released'\\nRETURN a.title, a.vote_count\\nORDER BY a.vote_count\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the revenue of the video 'Jonah: A VeggieTales Movie'?"}, {"role": "assistant", "content": "MATCH (v:Video {title: 'Jonah: A VeggieTales Movie'})\\nRETURN v.revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which businesses in 'CA' have been reviewed by 'Jenny'?"}, {"role": "assistant", "content": "MATCH (u:User {name: 'Jenny'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {state: 'CA'})\\nRETURN b.name AS BusinessName, b.address AS Address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the journal_id for Journal, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION\\nMATCH (m:Journal)\\nRETURN m.journal_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from Topic for which label is Population Dynamics_0, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:Topic{label:'Population Dynamics_0'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average journal_id for Journal that is linked to Article via PUBLISHED_IN where meta is 213 and has article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{meta: '213'}]->(m:Journal)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.journal_id) AS avg_journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "What type of product is article ID 855080005 classified as?"}, {"role": "assistant", "content": "MATCH (a:Article {articleId: 855080005})-[:VARIANT_OF]->(p:Product)\\nRETURN p.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Topic with cluster equal to 4!"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'4'})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Author where author_id is f6bcab8e721fbec0f293fee49d73c9c4 and traversing through Categories with specifications math.IT!"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'f6bcab8e721fbec0f293fee49d73c9c4'})-[*]->(d:Categories{specifications:'math.IT'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Name the top 5 processes running on the machine with the name 'DC1-RCK-1-1-M-1'."}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-1-1-M-1'})-[:RUNS]->(p:Process)\\nRETURN p.name\\nORDER BY p.startTime DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have rated a movie but have not rated any movie in the 'Sci-Fi' genre?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE NOT EXISTS { \\nMATCH (u)-[:RATED]->(m2:Movie)-[:IN_GENRE]->(g:Genre {name: 'Sci-Fi'}) }\\nRETURN DISTINCT u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the first_name for Author that is linked through a WRITTEN_BY relationship with the Article where title is Summation and transformation formulas for elliptic hypergeometric series!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.title='Summation and transformation formulas for elliptic hypergeometric series'\\nRETURN m.first_name"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"similar_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which intermediary from Malta has the most companies under its domain?\""}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:intermediary_of]->(e:Entity)\\nWHERE i.countries = \"Malta\"\\nRETURN i.name, COUNT(e) AS NumberOfCompanies\\nORDER BY NumberOfCompanies DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 5 characters with the highest weight in INTERACTS2 relationships?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS2]->(:Character)\\nRETURN c.name, sum(r.weight) AS totalWeight\\nORDER BY totalWeight DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average creation date of users who are both moderators and VIPs of streams playing \"VALORANT\"?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:PLAYS]->(g:Game {name: \"VALORANT\"})\\nMATCH (s)-[:MODERATOR]->(u:User)\\nMATCH (s)-[:VIP]->(u)\\nWITH collect(u.createdAt) AS creationDates\\nRETURN creationDates"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the report_id from Report where report_no is not SPbU-IP-00-03!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no <> 'SPbU-IP-00-03'\\nRETURN DISTINCT n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of characters who have an INTERACTS relationship with 'Aemon-Targaryen-(Maester-Aemon)'."}, {"role": "assistant", "content": "MATCH (a:Character { name: 'Aemon-Targaryen-(Maester-Aemon)' })-[:INTERACTS]-(b)\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which products have been reordered when the stock level was below 5?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.unitsInStock < 5 AND p.reorderLevel > 0\\nRETURN p.productName, p.unitsInStock, p.reorderLevel"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Categories where category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b and traversing through Report with report_no SISSA: 39/99/FM/GEO!"}, {"role": "assistant", "content": "39/99/FM/GEO!\nA: MATCH (a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*]->(d:Report{report_no:'SISSA: 39/99/FM/GEO'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or affiliation contains Alexander!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Alexander'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.affiliation CONTAINS 'Alexander'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the RAM size of the type 'xl'?"}, {"role": "assistant", "content": "MATCH (t:Type {type: 'xl'})\\nRETURN t.ram"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "From what product type is the 'SILVER DRESS' categorized?"}, {"role": "assistant", "content": "MATCH (a:Article)-[:VARIANT_OF]->(p:Product)\\nWHERE a.prodName = 'SILVER DRESS'\\nRETURN p.productTypeName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the actors who have starred in movies based on video games."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE k.name = \"video game\"\\nMATCH (p:Person)-[:CAST_FOR]->(m)\\nRETURN DISTINCT p.name AS actor_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 suppliers have provided products to the most distinct categories?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)-[:PART_OF]->(c:Category)\\nWITH s, COUNT(DISTINCT c.categoryID) AS categoryCount\\nORDER BY categoryCount DESC\\nLIMIT 3\\nRETURN s.companyName, categoryCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the report_id of the Report that is not related to the Report with the report_no JNMP 4/2002 (Letter)!"}, {"role": "assistant", "content": "MATCH (n:Report), (:Report {report_no: 'JNMP 4/2002 (Letter)'})\\nWHERE NOT (n) --> (:Report)\\nRETURN n.report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which production companies have produced movies with a budget over 50 million?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_BY]->(pc:ProductionCompany)\\nWHERE m.budget > 50000000\\nRETURN DISTINCT pc.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which person has directed the most films? Limit to top 3."}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie)\\nWITH p, count(m) AS films_directed\\nORDER BY films_directed DESC\\nLIMIT 3\\nRETURN p.name, films_directed"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common star rating given by each user?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)\\nWITH u, r.stars AS rating, count(*) AS ratingCount\\nORDER BY ratingCount DESC\\nWITH u, collect({rating: rating, count: ratingCount})[0] AS mostFrequentRating\\nRETURN u.name AS userName, mostFrequentRating.rating AS mostFrequentStarRating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What buildings have faculty offices?"}, {"role": "assistant", "content": "MATCH (f:Faculty)\\nRETURN DISTINCT f.Building"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Reviewer\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Rating\": {\n \"properties\": {\n \"mID\": \"INTEGER\",\n \"stars\": \"INTEGER\",\n \"ratingDate\": \"STRING\",\n \"rID\": \"INTEGER\"\n }\n },\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"mID\": \"INTEGER\",\n \"year\": \"INTEGER\",\n \"director\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"MADE_BY\",\n \"to\": \"Reviewer\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Rating\",\n \"type\": \"RELATES_TO\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "For all directors who have directed more than one movie, what movies have they directed and what are their names?"}, {"role": "assistant", "content": "MATCH (m1:Movie), (m2:Movie)\\nWHERE m1.director = m2.director AND m1.title <> m2.title\\nRETURN m1.title, m1.director\\nORDER BY m1.director, m1.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which applications are listening on ports greater than 1024?"}, {"role": "assistant", "content": "MATCH (app:Application)-[:LISTENS]->(port:Port)\\nWHERE port.port > 1024\\nRETURN app.name AS ApplicationName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the country codes associated with the address 'ANNEX FREDERICK & SHIRLEY STS, P.O. BOX N-4805, NA'?"}, {"role": "assistant", "content": "MATCH (a:Address {address: 'ANNEX FREDERICK & SHIRLEY STS, P.O. BOX N-4805, NA'})\\nRETURN a.country_codes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount of filings filed between 2015-03-25T00:00:00Z and 2015-09-25T00:00:00Z?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin >= datetime('2015-03-25T00:00:00Z') AND f.end <= datetime('2015-09-25T00:00:00Z')\\nWITH avg(f.amount) AS average_amount\\nRETURN average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the 5 most recently shipped orders."}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shippedDate IS NOT NULL\\nRETURN o\\nORDER BY o.shippedDate DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"County\": {\n \"properties\": {\n \"County_name\": \"STRING\",\n \"Population\": \"FLOAT\",\n \"County_Id\": \"INTEGER\",\n \"Zip_code\": \"STRING\"\n }\n },\n \"Election\": {\n \"properties\": {\n \"Election_ID\": \"INTEGER\",\n \"Committee\": \"STRING\",\n \"District\": \"INTEGER\",\n \"Party\": \"INTEGER\",\n \"Delegate\": \"STRING\",\n \"First_Elected\": \"FLOAT\",\n \"Counties_Represented\": \"STRING\"\n }\n },\n \"Party\": {\n \"properties\": {\n \"Year\": \"FLOAT\",\n \"Lieutenant_Governor\": \"STRING\",\n \"US_Senate\": \"STRING\",\n \"Governor\": \"STRING\",\n \"Party\": \"STRING\",\n \"Attorney_General\": \"STRING\",\n \"Comptroller\": \"STRING\",\n \"Party_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"LIVES_IN\",\n \"to\": \"County\"\n },\n {\n \"from\": \"Election\",\n \"type\": \"AFFILIATED_WITH\",\n \"to\": \"Party\"\n }\n ]\n}"}, {"role": "user", "content": "How many distinct delegates are from counties with population larger than 50000?"}, {"role": "assistant", "content": "MATCH (e:Election)-[:LIVES_IN]->(c:County)\\nWHERE c.Population > 50000\\nRETURN count(DISTINCT e.Delegate)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of streams that have at least one moderator and one VIP who are different users and belong to a team created before 2017?"}, {"role": "assistant", "content": "MATCH (s:Stream)-[:MODERATOR]->(m:User), (s)-[:VIP]->(v:User), (s)-[:HAS_TEAM]->(t:Team)\\nWHERE m <> v AND t.createdAt < datetime('2017-01-01T00:00:00Z')\\nRETURN count(DISTINCT s) AS streamCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 originator banks with the most filings involving transactions above $1 million."}, {"role": "assistant", "content": "MATCH (f:Filing)-[:ORIGINATOR]->(e:Entity)\\nWHERE f.amount > 1000000\\nRETURN e.name AS OriginatorBank, count(f) AS NumberOfFilings\\nORDER BY NumberOfFilings DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the addresses of businesses with reviews mentioning 'selection of books'?"}, {"role": "assistant", "content": "MATCH (b:Business)<-[:REVIEWS]-(r:Review)\\nWHERE r.text CONTAINS 'selection of books'\\nRETURN b.address"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters are part of a community number greater than 750?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community > 750\\nRETURN c.name, c.community"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of all applications that run on machine DC1-RCK-4-9-M-103?"}, {"role": "assistant", "content": "MATCH (m:Machine {name: 'DC1-RCK-4-9-M-103'})-[:RUNS]->(a:Application)\\nRETURN a.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either name is 10.1016/S0040-9383(00)00015-X or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1016/S0040-9383(00)00015-X' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams that have a 'createdAt' date after 2019."}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt > datetime('2019-01-01T00:00:00Z')\\nRETURN s\\nORDER BY s.createdAt DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the most significant number of cast members?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:CAST_FOR]->(m:Movie)\\nWITH m, count(p) AS num_cast\\nORDER BY num_cast DESC\\nLIMIT 3\\nRETURN m.title, num_cast"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the reviews for businesses that have been reviewed exactly twice."}, {"role": "assistant", "content": "MATCH (b:Business)\\nWITH b, count{(b)<-[:REVIEWS]-(:Review)} AS reviewCount\\nWHERE reviewCount = 2\\nMATCH (b)<-[:REVIEWS]-(r:Review)\\nRETURN b.name, r.text, r.date, r.stars"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 users with a y property value greater than 10000?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.y > 10000\\nRETURN u\\nORDER BY u.y ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Riemannian geometry_4 and Author, with affiliation equal unspecified, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Riemannian geometry_4'})-[*]-(e:Author{affiliation:'unspecified'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Keyword where key_id is 0e45607b74a52b79f39c242abf265272 and DOI, for which name equals 10.1016/S0393-0440(00)00003-6?"}, {"role": "assistant", "content": "MATCH p=(a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[*]->(d:DOI{name:'10.1016/S0393-0440(00)00003-6'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, where abstract is A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n, through Journal via PUBLISHED_IN with pages 641-672?"}, {"role": "assistant", "content": "MATCH (a:Article {abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[:PUBLISHED_IN {pages: '641-672'}]->(c:Journal)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Keyword for which key_id is 0e45607b74a52b79f39c242abf265272!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'0e45607b74a52b79f39c242abf265272'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the affiliation of the Author and the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Article)\\nRETURN n.affiliation, m.comments\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with a tagline containing the word 'Houston'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'Houston'\\nRETURN m\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 products with the most units on order in the 'Condiments' category?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category {categoryName: 'Condiments'})\\nRETURN p.productName, p.unitsOnOrder\\nORDER BY p.unitsOnOrder DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 movies have the longest runtime and were released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date > date('2000-01-01') AND m.runtime IS NOT NULL\\nRETURN m.title, m.runtime\\nORDER BY m.runtime DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "What is the total number of machines held in zone 4 racks?"}, {"role": "assistant", "content": "MATCH (r:Rack)-[:HOLDS]->(m:Machine)\\nWHERE r.zone = 4\\nRETURN count(m) AS total_machines"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to UpdateDate where update_date is 2017-07-11 and list their properties, including those of UpdateDate!"}, {"role": "assistant", "content": "MATCH (b:UpdateDate)-[r]->(n)\\nWHERE b.update_date = '2017-07-11'\\nRETURN properties(b) AS UpdateDate_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the author_id for Author combined with the category_id for Categories!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nRETURN n.author_id AS Records\\nUNION ALL\\nMATCH (m:Categories)\\nRETURN m.category_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List all tags for questions that have a positive score and were asked by users with a reputation over 50000."}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score > 0 AND u.reputation > 50000\\nRETURN t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the labels of the first 3 users with a color other than '#3CB371' and a size greater than 2."}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.color <> '#3CB371' AND u.size > 2\\nWITH u\\nORDER BY u.key\\nLIMIT 3\\nRETURN u.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the types of relationships and their counts connected to Journal for which journal_id is d3b321ed42589ea798c241aa7de23d2d!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'d3b321ed42589ea798c241aa7de23d2d'})-[r]->()\\nRETURN TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"User\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "\"How many teams speak more than one language\""}, {"role": "assistant", "content": "MATCH (t:Team)<-[:HAS_TEAM]-(s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH t, COUNT(DISTINCT l) AS num_languages\\nWHERE num_languages > 1\\nRETURN COUNT(t) AS teams_speaking_more_than_one_language"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 filings made by 'The Bank of New York Mellon Corp.'"}, {"role": "assistant", "content": "MATCH (e:Entity {name: \"The Bank of New York Mellon Corp.\"})-[:FILED]->(f:Filing)\\nRETURN f\\nORDER BY f.begin\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the journal_id from Journal where either name is Commun.Math.Phys or journal_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.name = 'Commun.Math.Phys' OR n.journal_id IS NOT NULL\\nRETURN DISTINCT n.journal_id AS journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 products have the lowest reorder levels but are not discontinued?"}, {"role": "assistant", "content": "MATCH (p:Product)\\nWHERE p.discontinued = false\\nRETURN p.productName, p.reorderLevel\\nORDER BY p.reorderLevel ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three directors have directed movies with a total revenue over 500 million USD?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE m.revenue IS NOT NULL\\nWITH d, sum(m.revenue) AS total_revenue\\nWHERE total_revenue > 500000000\\nRETURN d.name AS director, total_revenue\\nORDER BY total_revenue DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which adult films have been released with the status 'In Production'?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.status = 'In Production'\\nRETURN a.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where specifications is nlin.SI and UpdateDate, with update_date equal 2021-02-09, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{specifications:'nlin.SI'})-[*]-(e:UpdateDate{update_date:'2021-02-09'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Author where first_name or first_name contains Randall!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE n.first_name CONTAINS 'Randall'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Author)\\nWHERE m.first_name CONTAINS 'Randall'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 movies directed by directors born in the USA?"}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)\\nWHERE d.bornIn CONTAINS \"USA\"\\nRETURN m.title AS MovieTitle, m.released AS ReleaseDate\\nORDER BY m.released\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of businesses in 'San Mateo' and their addresses?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nWHERE b.city = 'San Mateo'\\nRETURN b.name AS businessName, b.address AS businessAddress"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the last_name of the Author that is not related to the Journal with the journal_id 99571eecaa5c5d622bb0d1f855752d5f!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Journal {journal_id: '99571eecaa5c5d622bb0d1f855752d5f'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 streams that were created after 2019 and their total view count?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWHERE s.createdAt > datetime('2019-01-01T00:00:00Z')\\nRETURN s.id, s.createdAt, s.total_view_count\\nORDER BY s.createdAt ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which business is located at '301 E Main St'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '301 E Main St'})\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 users followed by 'neo4j' who also follow 'neo4j'."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)-[:FOLLOWS]->(me)\\nRETURN user\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the characters with a community number between 600 and 700?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.community >= 600 AND c.community <= 700\\nRETURN c.name, c.community"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 adult videos have the most keywords associated with them?"}, {"role": "assistant", "content": "MATCH (a:Adult)-[:HAS_KEYWORD]->(k:Keyword)\\nWITH a, count(k) AS keyword_count\\nRETURN a.title, keyword_count\\nORDER BY keyword_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with the highest revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 5 businesses in 'CA' based on the number of reviews they have received."}, {"role": "assistant", "content": "MATCH (b:Business {state: 'CA'})-[:REVIEWS]-(r:Review)\\nWITH b, count(r) AS reviewsCount\\nORDER BY reviewsCount DESC\\nLIMIT 5\\nRETURN b.name, b.address, reviewsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the officers of entities that were inactivated in February 2012?"}, {"role": "assistant", "content": "MATCH (o:Officer)-[:officer_of]->(e:Entity)\\nWHERE e.inactivation_date STARTS WITH 'FEB-2012'\\nRETURN o.name AS OfficerName, e.name AS EntityName, e.inactivation_date AS InactivationDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Which nodes are connected to Report where report_id is 42a4c65c8ac88e75fed4b8e25a71dc9a, and also to another node?"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'42a4c65c8ac88e75fed4b8e25a71dc9a'})-[r]->(n), (n)-[s]->(m)\\nRETURN labels(n) AS Interim, labels(m) AS Target"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List all persons born before 1950."}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born < 1950\\nRETURN p"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the distinct properties of nodes that are 2 hops away from Article with abstract equal to A twistor construction of the hierarchy associated with the hyper-K\\\"ahler\nequations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in\nfour dimensions) is given. The recursion operator R is constructed and used to\nbuild an infinite-dimensional symmetry algebra and in particular higher flows\nfor the hyper-K\\\"ahler equations. It is shown that R acts on the twistor data\nby multiplication with a rational function. The structures are illustrated by\nthe example of the Sparling-Tod (Eguchi-Hansen) solution. An extended\nspace-time ${\\cal N}$ is constructed whose extra dimensions correspond to\nhigher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of\nrational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor\nspace and is canonically equipped with a Lax distribution for ASDVE\nhierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional\nhyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian\nformulations of the ASDVE in the form of the heavenly equations are given. The\nsymplectic form on the moduli space of solutions to heavenly equations is\nderived, and is shown to be compatible with the recursion operator.\n!"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' A twistor construction of the hierarchy associated with the hyper-K\"ahler equations on a metric (the anti-self-dual Einstein vacuum equations, ASDVE, in four dimensions) is given. The recursion operator R is constructed and used to build an infinite-dimensional symmetry algebra and in particular higher flows for the hyper-K\"ahler equations. It is shown that R acts on the twistor data by multiplication with a rational function. The structures are illustrated by the example of the Sparling-Tod (Eguchi-Hansen) solution. An extended space-time ${\\cal N}$ is constructed whose extra dimensions correspond to higher flows of the hierarchy. It is shown that ${\\cal N}$ is a moduli space of rational curves with normal bundle ${\\cal O}(n)\\oplus{\\cal O}(n)$ in twistor space and is canonically equipped with a Lax distribution for ASDVE hierarchies. The space ${\\cal N}$ is shown to be foliated by four dimensional hyper-K{\\\"a}hler slices. The Lagrangian, Hamiltonian and bi-Hamiltonian formulations of the ASDVE in the form of the heavenly equations are given. The symplectic form on the moduli space of solutions to heavenly equations is derived, and is shown to be compatible with the recursion operator. '})-[*2]->(n)\\nRETURN DISTINCT properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Which tweets mention 'Neo4j' and contain a hashtag? Show the first 3."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nWHERE exists{(t)-[:TAGS]->(:Hashtag)}\\nRETURN t\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"MemberOfClub\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"ClubID\": \"INTEGER\",\n \"Position\": \"STRING\"\n }\n },\n \"Club\": {\n \"properties\": {\n \"ClubLocation\": \"STRING\",\n \"ClubName\": \"STRING\",\n \"ClubDesc\": \"STRING\",\n \"ClubID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"MemberOfClub\",\n \"type\": \"MEMBER_OF\",\n \"to\": \"Club\"\n }\n ]\n}"}, {"role": "user", "content": "Count the number of clubs located at \"HHH\"."}, {"role": "assistant", "content": "MATCH (c:Club)\\nWHERE c.ClubLocation = \"HHH\"\\nRETURN count(c)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies with the shortest runtime."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.runtime IS NOT NULL\\nRETURN m\\nORDER BY m.runtime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a `centrality` equal to 1.0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.centrality = 1.0\\nRETURN count(c) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average `pagerank` of characters in `louvain` group 3?"}, {"role": "assistant", "content": "MATCH (c:Character {louvain: 3})\\nRETURN avg(c.pagerank)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Topic where cluster is 2 and share a common property with Categories, for which specifications equals math.IT?"}, {"role": "assistant", "content": "MATCH (a:Topic{cluster:'2'})-[r]->(n), (d:Categories{specifications:'math.IT'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which category_id is 088fbf884bd7c6533956a45531b362b7!"}, {"role": "assistant", "content": "MATCH (n:Categories {category_id:'088fbf884bd7c6533956a45531b362b7'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1071 or article_id is less than 1071!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1071 OR n.article_id < 1071\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"HasAmenity\": {\n \"properties\": {\n \"dormid\": \"INTEGER\",\n \"amenid\": \"INTEGER\"\n }\n },\n \"LivesIn\": {\n \"properties\": {\n \"room_number\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"stuid\": \"INTEGER\"\n }\n },\n \"Dorm\": {\n \"properties\": {\n \"student_capacity\": \"INTEGER\",\n \"dormid\": \"INTEGER\",\n \"gender\": \"STRING\",\n \"dorm_name\": \"STRING\"\n }\n },\n \"DormAmenity\": {\n \"properties\": {\n \"amenid\": \"INTEGER\",\n \"amenity_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"ATTENDS\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"LivesIn\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"Dorm\"\n },\n {\n \"from\": \"HasAmenity\",\n \"type\": \"PROVIDES\",\n \"to\": \"DormAmenity\"\n }\n ]\n}"}, {"role": "user", "content": "Find the total capacity of all dorms."}, {"role": "assistant", "content": "MATCH (d:Dorm)\\nRETURN sum(d.student_capacity)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where article_id is 1063 and Article, for which title is An adelic causality problem related to abelian L-functions?"}, {"role": "assistant", "content": "MATCH (a:Article{article_id:'1063'}), (b:Article{title:'An adelic causality problem related to abelian L-functions'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Find DOI that has a name which begins with d, and is linked to Article via HAS_DOI relationship, where Article has title Free Field Construction for the ABF Models in Regime II!"}, {"role": "assistant", "content": "MATCH (n:Article {title: 'Free Field Construction for the ABF Models in Regime II'}) -[:HAS_DOI]- (m:DOI)\\nWHERE m.name STARTS WITH 'd'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have actors who were born in Canada and have acted in a thriller genre?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(:Genre {name: 'Thriller'})\\nMATCH (a:Actor {bornIn: 'Canada'})-[:ACTED_IN]->(m)\\nRETURN m.title AS movie, collect(a.name) AS actors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have the highest sum of pagerank values across all books? Limit to top 5."}, {"role": "assistant", "content": "MATCH (c:Character)\\nWITH c, c.book1PageRank + c.book45PageRank AS totalPageRank\\nORDER BY totalPageRank DESC\\nLIMIT 5\\nRETURN c.name, totalPageRank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Categories that has specifications q-fin.PR!"}, {"role": "assistant", "content": "MATCH path=(:Categories {specifications:'q-fin.PR'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 genres associated with movies released after 2000?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.year > 2000\\nRETURN g.name AS genre, count(*) AS count\\nORDER BY count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the businesses that have received reviews from users who have also reviewed 'Missoula Public Library'."}, {"role": "assistant", "content": "MATCH (library:Business {name: 'Missoula Public Library'})\\nMATCH (library)<-[:REVIEWS]-(review:Review)<-[:WROTE]-(user:User)\\nMATCH (user)-[:WROTE]->(otherReview:Review)-[:REVIEWS]->(otherBusiness:Business)\\nWHERE otherBusiness <> library\\nRETURN DISTINCT otherBusiness.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1008 or article_id is less than 1008!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1008 OR n.article_id < 1008\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 applications with a PID less than 2000."}, {"role": "assistant", "content": "MATCH (app:Application)\\nWHERE app.pid < 2000\\nRETURN app.name, app.pid\\nORDER BY app.startTime ASC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Keyword, with name equal to layer-by-layer growth, passing through Topic via HAS_TOPIC?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'layer-by-layer growth'})-[:HAS_TOPIC]->(c:Topic)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {}\n },\n \"Categories\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Journal and Categories?"}, {"role": "assistant", "content": "MATCH (a:Journal)-[r]->(n), (d:Categories)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either name is 10.1088/0305-4470/33/25/304 or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.name = '10.1088/0305-4470/33/25/304' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"what movies has top 80% rating?\""}, {"role": "assistant", "content": "MATCH (:Person)-[r:REVIEWED]->(m:Movie)\\nWITH m, avg(r.rating) AS averageRating\\nWHERE averageRating >= 0.8 * 5\\nRETURN m.title, averageRating\\nORDER BY averageRating DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the Topic where description ends with Co!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.description =~'Co.*'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Find all questions that mention 'schema' in their text and have been tagged with 'aws-lambda'."}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag {name: 'aws-lambda'})\\nWHERE q.text CONTAINS 'schema'\\nRETURN q"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with DOI where name is 10.1016/S0393-0440(00)00003-6 and share a common property with Report, for which report_id equals f07a9f85a94d20f473a1bf9b432c05f8?"}, {"role": "assistant", "content": "MATCH (a:DOI{name:'10.1016/S0393-0440(00)00003-6'})-[r]->(n), (d:Report{report_id:'f07a9f85a94d20f473a1bf9b432c05f8'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the description of the Topic that is not related to the Journal with the journal_id 904b65f98bb6823aaf3f72721984560a!"}, {"role": "assistant", "content": "MATCH (n:Topic), (:Journal {journal_id: '904b65f98bb6823aaf3f72721984560a'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find article_id of the Article and return it along with the count of Journal that are linked via PUBLISHED_IN where meta is 218!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.meta = '218'\\nRETURN n.article_id AS article_id, count(m) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is Revised version with a new title and many corrections, 18 pages, 6\n figures and are HAS_KEY linked to a Keyword?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'Revised version with a new title and many corrections, 18 pages, 6 figures'})-[r:HAS_KEY]->(b:Keyword)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average name for DOI that are linked to Article via HAS_DOI and have article_id date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWHERE m.article_id < date('2020-12-31')\\nRETURN avg(m.name) AS avg_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"employee\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"shop\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"name\": \"STRING\",\n \"location\": \"STRING\",\n \"district\": \"STRING\",\n \"number_products\": \"STRING\",\n \"manager_name\": \"STRING\"\n }\n },\n \"hiring\": {\n \"properties\": {\n \"shop_id\": \"STRING\",\n \"employee_id\": \"STRING\",\n \"start_from\": \"STRING\",\n \"is_full_time\": \"STRING\"\n }\n },\n \"evaluation\": {\n \"properties\": {\n \"employee_id\": \"STRING\",\n \"year_awarded\": \"STRING\",\n \"bonus\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many employees are there?"}, {"role": "assistant", "content": "MATCH (employee:employee)\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 customers have a contact title of 'Sales Representative'?"}, {"role": "assistant", "content": "MATCH (c:Customer {contactTitle: 'Sales Representative'})\\nRETURN c.companyName, c.contactName\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Member\": {\n \"properties\": {\n \"membership\": \"STRING\",\n \"name\": \"STRING\",\n \"age\": \"INTEGER\"\n }\n },\n \"Equipment\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"quantity\": \"INTEGER\"\n }\n },\n \"Workout\": {\n \"properties\": {\n \"duration\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Member\",\n \"type\": \"BOOKED\",\n \"to\": \"Workout\"\n },\n {\n \"from\": \"Member\",\n \"type\": \"USES\",\n \"to\": \"Equipment\"\n },\n {\n \"from\": \"Member\",\n \"type\": \"USES\",\n \"to\": \"Equipment\"\n },\n {\n \"from\": \"Member\",\n \"type\": \"BOOKED\",\n \"to\": \"Workout\"\n }\n ],\n \"relationshipProperties\": {\n \"BOOKED\": {\n \"time\": \"STRING\",\n \"date\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "How many members does the gym have?"}, {"role": "assistant", "content": "MATCH (m:Member)\\nRETURN COUNT(DISTINCT m) as member_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the last_name for Author that is linked through a WRITTEN_BY relationship with the Article where title is Chow groups of weighted hypersurfaces!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.title='Chow groups of weighted hypersurfaces'\\nRETURN m.last_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ParkingFine\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"ElectoralRegister\": {\n \"properties\": {\n \"electoral_register_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"RentArrear\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CouncilTax\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BusinessRate\": {\n \"properties\": {\n \"business_rates_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"BenefitsOverpayment\": {\n \"properties\": {\n \"council_tax_id\": \"INTEGER\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CmiCrossReference\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"source_system_code\": \"STRING\",\n \"cmi_cross_ref_id\": \"INTEGER\"\n }\n },\n \"CustomerMasterIndex\": {\n \"properties\": {\n \"master_customer_id\": \"INTEGER\",\n \"cmi_details\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ParkingFine\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"ElectoralRegister\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"RentArrear\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CouncilTax\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BusinessRate\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"BenefitsOverpayment\",\n \"type\": \"REFERENCES\",\n \"to\": \"CmiCrossReference\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BenefitsOverpayment\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"RentArrear\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ElectoralRegister\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"ParkingFine\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"BusinessRate\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CouncilTax\"\n },\n {\n \"from\": \"CmiCrossReference\",\n \"type\": \"REFERENCES\",\n \"to\": \"CustomerMasterIndex\"\n }\n ]\n}"}, {"role": "user", "content": "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?"}, {"role": "assistant", "content": "MATCH (c:ElectoralRegister)-[:REFERENCES]->(t2:CmiCrossReference)\\nWHERE t2.source_system_code = \"Electoral\" OR t2.source_system_code = \"Tax\"\\nRETURN c.electoral_register_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Journal for which journal_id starts with fce!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nWHERE n.journal_id STARTS WITH 'fce'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have played a role in movies with a budget over 200 million dollars?"}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE m.budget > 200000000\\nRETURN a.name AS actor, m.title AS movie"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 users have asked the most questions with a score of 5 or higher?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE q.score >= 5\\nWITH u, count(q) AS questionsCount\\nORDER BY questionsCount DESC\\nLIMIT 3\\nRETURN u.display_name, questionsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes are at the end of a path starting from Article, with abstract equal to I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n, passing through DOI via HAS_DOI?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '})-[:HAS_DOI]->(c:DOI)-[r]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average amount of filings filed between 2014 and 2015?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.begin_date >= '2014-01-01' AND f.begin_date <= '2015-12-31'\\nRETURN avg(f.amount) AS average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the top 5 entities based on the number of filings where they have acted as both originator and beneficiary."}, {"role": "assistant", "content": "MATCH (e:Entity)-[:ORIGINATOR]->(f:Filing)-[:BENEFITS]->(e)\\nWITH e, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 5\\nRETURN e.name, filings_count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who directed 'Speed Racer'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:DIRECTED]->(m:Movie {title: 'Speed Racer'})\\nRETURN p.name AS director"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the update_date for UpdateDate combined with the article_id for Article!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate)\\nRETURN n.update_date AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.article_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Categories where specifications is nlin.SI and Journal, for which name equals Topology?"}, {"role": "assistant", "content": "MATCH p=(a:Categories{specifications:'nlin.SI'})-[*]->(d:Journal{name:'Topology'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "How many movies have been adapted from comic books?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: \"based on comic book\"})\\nWITH count(DISTINCT m) AS count\\nRETURN count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Topic where either cluster exceeds 2 or cluster is less than 4!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster > 2 OR n.cluster < 4\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_id of the Report and the cluster for Topic!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:Topic)\\nRETURN n.report_id, m.cluster\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 genres with the most movies released in the 21st century."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_GENRE]->(g:Genre)\\nWHERE m.release_date >= date('2000-01-01')\\nRETURN g.name AS genre, COUNT(m) AS movie_count\\nORDER BY movie_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average runtime of movies in the 'Science Fiction' genre released after 2005?"}, {"role": "assistant", "content": "MATCH (g:Genre {name: 'Science Fiction'})<-[:IN_GENRE]-(m:Movie)\\nWHERE m.year > 2005\\nWITH avg(m.runtime) AS average_runtime\\nRETURN average_runtime"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which entities have an inactivation date of '27-FEB-2014'?"}, {"role": "assistant", "content": "MATCH (e:Entity {inactivation_date: '27-FEB-2014'})\\nRETURN e"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 movies that have been rated by users from more than 10 different countries."}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:RATED]-(u:User)\\nWITH m, count(DISTINCT u.name) AS numCountries\\nWHERE numCountries > 10\\nRETURN m.title\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average star rating for businesses with an address on 'Main St'?"}, {"role": "assistant", "content": "MATCH (b:Business {address: '301 E Main St'})-[:REVIEWS]-(r:Review)\\nWITH avg(r.stars) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Keyword where name is layer-by-layer growth and Keyword, for which name is logarithms?"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'layer-by-layer growth'}), (b:Keyword{name:'logarithms'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions have a score greater than 0 and are tagged with 'graphql'?"}, {"role": "assistant", "content": "MATCH (q:Question)-[:TAGGED]->(t:Tag)\\nWHERE q.score > 0 AND t.name = 'graphql'\\nRETURN q.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to UpdateDate where update_date is 2011-11-10 and list their properties, including those of UpdateDate!"}, {"role": "assistant", "content": "MATCH (b:UpdateDate)-[r]->(n)\\nWHERE b.update_date = '2011-11-10'\\nRETURN properties(b) AS UpdateDate_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the label for Topic that is linked through a HAS_TOPIC relationship with the Keyword where key_id is c95a6da6fb331984f198feec0b0bb1a5!"}, {"role": "assistant", "content": "MATCH (n:Keyword) -[ha:HAS_TOPIC]->(m)\\nWHERE n.key_id='c95a6da6fb331984f198feec0b0bb1a5'\\nRETURN m.label"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the movie with the lowest budget?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title, m.budget\\nORDER BY m.budget ASC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the names of the directors who have also acted in a movie."}, {"role": "assistant", "content": "MATCH (d:Director)-[:DIRECTED]->(m:Movie)<-[:ACTED_IN]-(d)\\nRETURN DISTINCT d.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three movies have the most different countries listed?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.countries IS NOT NULL\\nRETURN m.title, m.countries, size(m.countries) AS numCountries\\nORDER BY numCountries DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies that have a budget of zero."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.budget = 0\\nRETURN m.title AS MovieTitle, m.release_date AS ReleaseDate, m.overview AS Overview"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve the Article where comments or title contains 16 pages To be published in Journal of Geometry and Physics!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.comments CONTAINS '16 pages To be published in Journal of Geometry and Physics'\\nRETURN n AS node\\nUNION ALL\\nMATCH (m:Article)\\nWHERE m.title CONTAINS '16 pages To be published in Journal of Geometry and Physics'\\nRETURN m AS node"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which adult movies have a budget greater than 500,000 dollars?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.budget > 500000\\nRETURN a.title AS Title, a.budget AS Budget"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 5 customers who have ordered more than once."}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nWITH c, count(o) AS ordersCount\\nWHERE ordersCount > 1\\nRETURN c\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"ExhibitionRecord\": {\n \"properties\": {\n \"Date\": \"STRING\",\n \"Exhibition_ID\": \"INTEGER\",\n \"Attendance\": \"INTEGER\"\n }\n },\n \"Exhibition\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"Theme\": \"STRING\",\n \"Exhibition_ID\": \"INTEGER\",\n \"Artist_ID\": \"INTEGER\",\n \"Ticket_Price\": \"FLOAT\"\n }\n },\n \"Artist\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Age\": \"INTEGER\",\n \"Artist_ID\": \"INTEGER\",\n \"Country\": \"STRING\",\n \"Year_Join\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ExhibitionRecord\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"Exhibition\"\n },\n {\n \"from\": \"ExhibitionRecord\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"Exhibition\"\n },\n {\n \"from\": \"Exhibition\",\n \"type\": \"FEATURES\",\n \"to\": \"Artist\"\n },\n {\n \"from\": \"Exhibition\",\n \"type\": \"FEATURES\",\n \"to\": \"Artist\"\n }\n ]\n}"}, {"role": "user", "content": "How many artists are above age 46 and joined after 1990?"}, {"role": "assistant", "content": "MATCH (a:Artist)\\nWHERE a.Age > 46 AND a.Year_Join > 1990\\nRETURN count(a)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where name is Topology and Topic, with cluster equal 2, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{name:'Topology'})-[*]-(e:Topic{cluster:'2'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Journal for which journal_id is e7b0a9b48142710ab6e87f136f6b7606!"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'e7b0a9b48142710ab6e87f136f6b7606'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Climber\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Time\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Points\": \"FLOAT\",\n \"Country\": \"STRING\",\n \"Climber_ID\": \"INTEGER\"\n }\n },\n \"Mountain\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Prominence\": \"FLOAT\",\n \"Range\": \"STRING\",\n \"Mountain_ID\": \"INTEGER\",\n \"Height\": \"FLOAT\",\n \"Country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n },\n {\n \"from\": \"Climber\",\n \"type\": \"CLIMBS\",\n \"to\": \"Mountain\"\n }\n ]\n}"}, {"role": "user", "content": "What are the names of the climbers, ordered by points descending?"}, {"role": "assistant", "content": "MATCH (c:Climber)\\nRETURN c.Name\\nORDER BY c.Points DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What are the titles of the movies that share the same genre as the movie \"Toy Story\"?"}, {"role": "assistant", "content": "MATCH (toyStory:Movie {title: 'Toy Story'})\\nMATCH (toyStory)-[:IN_GENRE]->(genre)\\nMATCH (otherMovie:Movie)-[:IN_GENRE]->(genre)\\nWHERE otherMovie <> toyStory\\nRETURN DISTINCT otherMovie.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which filings have the shortest duration from begin to end date involving a beneficiary bank from 'United Kingdom'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.beneficiary_bank_country = 'United Kingdom'\\nWITH f, duration.between(f.begin, f.end) AS duration\\nORDER BY duration ASC\\nLIMIT 1\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Which users have written reviews for businesses located on 'W Broadway St'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE b.address CONTAINS 'W Broadway St'\\nRETURN u.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the name from Keyword where either name is logarithmic barrier penalty or name is not null!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name = 'logarithmic barrier penalty' OR n.name IS NOT NULL\\nRETURN DISTINCT n.name AS name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the 'book45PageRank' of the character with the highest 'pagerank'?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.book45PageRank\\nORDER BY c.pagerank DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Article with comments equal to no comments!"}, {"role": "assistant", "content": "MATCH (a:Article)-[*3]->(n)\\nWHERE a.comments = 'no comments'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'amount' of filings where the 'originator_bank' is 'CIMB Bank Berhad'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.originator_bank = 'CIMB Bank Berhad'\\nRETURN avg(f.amount) AS average_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many reviews does each business in San Mateo have? Limit the results to top 3 businesses."}, {"role": "assistant", "content": "MATCH (b:Business {city: 'San Mateo'})-[:REVIEWS]-(r:Review)\\nRETURN b.name, count(r) AS reviewCount\\nORDER BY reviewCount DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the journal_id of the Journal and the affiliation for Author!"}, {"role": "assistant", "content": "MATCH (n:Journal)\\nMATCH (m:Author)\\nRETURN n.journal_id, m.affiliation\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Journal where name is Geom. Topol and Author, with author_id equal a7193c11b0713ccfbb34c90cf18d3e5f, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Journal{name:'Geom. Topol'})-[*]-(e:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where key_id is 468e440686a5984c9dbaefb5ac25d127 and traversing through Journal with journal_id f6582df4742923aacfc6e67638bd4bf6!"}, {"role": "assistant", "content": "MATCH (a:Keyword{key_id:'468e440686a5984c9dbaefb5ac25d127'})-[*]->(d:Journal{journal_id:'f6582df4742923aacfc6e67638bd4bf6'})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the names of businesses located at '313 N 1st St W' and their review texts."}, {"role": "assistant", "content": "MATCH (b:Business {address: '313 N 1st St W'})<-[:REVIEWS]-(r:Review)\\nRETURN b.name AS businessName, r.text AS reviewText"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"WRITTEN_BY\",\n \"to\": \"Author\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the author_id for Author that is linked through a WRITTEN_BY relationship with the Article where abstract is A famous result of Hausdorff states that a sphere with countably many points\nremoved can be partitioned into three pieces A,B,C such that A is congruent to\nB (i.e., there is an isometry of the sphere which sends A to B), B is congruent\nto C, and A is congruent to (B union C); this result was the precursor of the\nBanach-Tarski paradox. Later, R. Robinson characterized the systems of\ncongruences like this which could be realized by partitions of the (entire)\nsphere with rotations witnessing the congruences. The pieces involved were\nnonmeasurable. In the present paper, we consider the problem of which systems\nof congruences can be satisfied using open subsets of the sphere (or related\nspaces); of course, these open sets cannot form a partition of the sphere, but\nthey can be required to cover \"most of\" the sphere in the sense that their\nunion is dense. Various versions of the problem arise, depending on whether one\nuses all isometries of the sphere or restricts oneself to a free group of\nrotations (the latter version generalizes to many other suitable spaces), or\nwhether one omits the requirement that the open sets have dense union, and so\non. While some cases of these problems are solved by simple geometrical\ndissections, others involve complicated iterative constructions and/or results\nfrom the theory of free groups. Many interesting questions remain open.\n!"}, {"role": "assistant", "content": "MATCH (n:Article) -[wr:WRITTEN_BY]->(m)\\nWHERE n.abstract=' A famous result of Hausdorff states that a sphere with countably many points removed can be partitioned into three pieces A,B,C such that A is congruent to B (i.e., there is an isometry of the sphere which sends A to B), B is congruent to C, and A is congruent to (B union C); this result was the precursor of the Banach-Tarski paradox. Later, R. Robinson characterized the systems of congruences like this which could be realized by partitions of the (entire) sphere with rotations witnessing the congruences. The pieces involved were nonmeasurable. In the present paper, we consider the problem of which systems of congruences can be satisfied using open subsets of the sphere (or related spaces); of course, these open sets cannot form a partition of the sphere, but they can be required to cover \"most of\" the sphere in the sense that their union is dense. Various versions of the problem arise, depending on whether one uses all isometries of the sphere or restricts oneself to a free group of rotations (the latter version generalizes to many other suitable spaces), or whether one omits the requirement that the open sets have dense union, and so on. While some cases of these problems are solved by simple geometrical dissections, others involve complicated iterative constructions and/or results from the theory of free groups. Many interesting questions remain open. '\\nRETURN m.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories where specifications contains cond-!"}, {"role": "assistant", "content": "MATCH (n:Categories)\\nWHERE n.specifications CONTAINS 'cond-'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Station\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\",\n \"installation_date\": \"STRING\",\n \"long\": \"FLOAT\",\n \"lat\": \"FLOAT\",\n \"city\": \"STRING\",\n \"dock_count\": \"INTEGER\"\n }\n },\n \"Status\": {\n \"properties\": {\n \"time\": \"STRING\",\n \"docks_available\": \"INTEGER\",\n \"station_id\": \"INTEGER\",\n \"bikes_available\": \"INTEGER\"\n }\n },\n \"Weather\": {\n \"properties\": {\n \"wind_dir_degrees\": \"INTEGER\",\n \"precipitation_inches\": \"INTEGER\",\n \"mean_sea_level_pressure_inches\": \"FLOAT\",\n \"zip_code\": \"INTEGER\",\n \"events\": \"STRING\",\n \"max_humidity\": \"INTEGER\",\n \"min_sea_level_pressure_inches\": \"FLOAT\",\n \"max_sea_level_pressure_inches\": \"INTEGER\",\n \"max_gust_speed_mph\": \"INTEGER\",\n \"date\": \"STRING\",\n \"max_visibility_miles\": \"INTEGER\",\n \"max_wind_Speed_mph\": \"INTEGER\",\n \"mean_wind_speed_mph\": \"INTEGER\",\n \"mean_humidity\": \"INTEGER\",\n \"mean_dew_point_f\": \"INTEGER\",\n \"mean_temperature_f\": \"INTEGER\",\n \"min_humidity\": \"INTEGER\",\n \"min_temperature_f\": \"INTEGER\",\n \"min_dew_point_f\": \"INTEGER\",\n \"mean_visibility_miles\": \"INTEGER\",\n \"min_visibility_miles\": \"INTEGER\",\n \"max_temperature_f\": \"INTEGER\",\n \"max_dew_point_f\": \"INTEGER\",\n \"cloud_cover\": \"INTEGER\"\n }\n },\n \"Trip\": {\n \"properties\": {\n \"start_station_name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"duration\": \"INTEGER\",\n \"end_date\": \"STRING\",\n \"bike_id\": \"INTEGER\",\n \"zip_code\": \"INTEGER\",\n \"end_station_id\": \"INTEGER\",\n \"subscription_type\": \"STRING\",\n \"end_station_name\": \"STRING\",\n \"start_station_id\": \"INTEGER\",\n \"start_date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n },\n {\n \"from\": \"Status\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"Station\"\n }\n ]\n}"}, {"role": "user", "content": "What are the dates in which the mean sea level pressure was between 30.3 and 31?"}, {"role": "assistant", "content": "MATCH (w:Weather)\\nWHERE w.mean_sea_level_pressure_inches >= 30.3 AND w.mean_sea_level_pressure_inches <= 31\\nRETURN w.date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where specifications is math.DS and share a common property with Report, for which report_id equals c3c968646b7780fada2a98b2a5a61746?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.DS'})-[r]->(n), (d:Report{report_id:'c3c968646b7780fada2a98b2a5a61746'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List the businesses that have been reviewed by each user more than once."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWITH u, b, COUNT(r) AS reviews_count\\nWHERE reviews_count > 1\\nRETURN u.name AS UserName, b.name AS BusinessName, reviews_count\\nORDER BY u.name, b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the name for Journal that is linked through a PUBLISHED_IN relationship with the Article where comments is 21 pages, AMS-LaTeX!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN]->(m)\\nWHERE n.comments='21 pages, AMS-LaTeX'\\nRETURN m.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List 3 users who have posted tweets tagging the hashtag 'education'."}, {"role": "assistant", "content": "MATCH (u:User)-[:POSTS]->(t:Tweet)-[:TAGS]->(h:Hashtag {name: 'education'})\\nRETURN u.name, u.screen_name, t.text\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Election\": {\n \"properties\": {\n \"Election_ID\": \"INTEGER\",\n \"Vote_Percent\": \"FLOAT\",\n \"Place\": \"FLOAT\",\n \"Votes\": \"FLOAT\",\n \"Representative_ID\": \"INTEGER\",\n \"Seats\": \"FLOAT\",\n \"Date\": \"STRING\"\n }\n },\n \"Representative\": {\n \"properties\": {\n \"Name\": \"STRING\",\n \"Representative_ID\": \"INTEGER\",\n \"State\": \"STRING\",\n \"Party\": \"STRING\",\n \"Lifespan\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many distinct parties are there for representatives?"}, {"role": "assistant", "content": "MATCH (r:Representative)\\nRETURN count(DISTINCT r.Party)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Find all Intermediaries with the status \"SUSPENDED\" that are associated with Entities in Hong Kong."}, {"role": "assistant", "content": "MATCH (i:Intermediary)-[:intermediary_of]->(e:Entity)\\nWHERE i.status = \"SUSPENDED\" AND e.countries = \"Hong Kong\"\\nRETURN DISTINCT i.name, i.internal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the update_date of the UpdateDate that is not related to the Author with the affiliation unspecified!"}, {"role": "assistant", "content": "MATCH (n:UpdateDate), (:Author {affiliation: 'unspecified'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.update_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article, find the number of Journal linked via PUBLISHED_IN where year is 2004 and retrieve the article_id of the Article and the Journal counts in ascending order!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.year = '2004'\\nWITH DISTINCT n, m\\nRETURN n.article_id AS article_id, count(m) AS count\\nORDER BY count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 adult films based on the number of different languages spoken."}, {"role": "assistant", "content": "MATCH (a:Adult)-[:SPOKEN_IN_LANGUAGE]->(l:Language)\\nWITH a, count(DISTINCT l) AS languages_spoken\\nORDER BY languages_spoken DESC\\nRETURN a.title, languages_spoken\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Journal with journal_id equal to 99571eecaa5c5d622bb0d1f855752d5f!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*3]->(n)\\nWHERE a.journal_id = '99571eecaa5c5d622bb0d1f855752d5f'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the report_id of the Report and the name for DOI!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nMATCH (m:DOI)\\nRETURN n.report_id, m.name\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 persons to have directed and acted in the same movie?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN p.name AS person, m.title AS movie\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the report_id from Report where either report_id is 6949743cea68a5e6f3f5bd286694d356 or report_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_id = '6949743cea68a5e6f3f5bd286694d356' OR n.report_id IS NOT NULL\\nRETURN DISTINCT n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find eight instances of Article where either article_id exceeds 1010 or article_id is less than 1006!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.article_id > 1010 OR n.article_id < 1006\\nRETURN n\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the `customerID` and the number of distinct products they have ordered."}, {"role": "assistant", "content": "MATCH (c:Customer)\\nWITH c\\nOPTIONAL MATCH (c)-[:PURCHASED]->(:Order)-[:ORDERS]->(p:Product)\\nWITH c, count(DISTINCT p) AS distinctProducts\\nRETURN c.customerID, distinctProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Author where author_id is 700c655b31f9b9275ba10a9875c15332 and DOI, for which name is 10.1023/A:1004807104626?"}, {"role": "assistant", "content": "1004807104626?\nA: MATCH (a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'}), (b:DOI{name:'10.1023/A:1004807104626'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Retrieve the specifications for Categories that is linked through a HAS_CATEGORY relationship with the Article where comments is 19 pages with 5 postscript figures!"}, {"role": "assistant", "content": "MATCH (n:Article) -[ha:HAS_CATEGORY]->(m)\\nWHERE n.comments='19 pages with 5 postscript figures'\\nRETURN m.specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the actors who have worked with both Keanu Reeves and Tom Hanks?"}, {"role": "assistant", "content": "MATCH (keanu:Person { name: \"Keanu Reeves\" })\\nMATCH (tom:Person { name: \"Tom Hanks\" })\\nMATCH (keanu)-[:ACTED_IN]->(m1)<-[:ACTED_IN]-(a1)\\nMATCH (tom)-[:ACTED_IN]->(m2)<-[:ACTED_IN]-(a2)\\nWHERE a1 = a2\\nRETURN a1.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been involved in a collection with a backdrop path containing '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:IN_COLLECTION]->(c:Collection)\\nWHERE c.backdrop_path = '/9FBwqcd9IRruEDUrTdcaafOMKUq.jpg'\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Categories where specifications is nlin.SI and share a common property with Categories, for which specifications equals math.DS?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'nlin.SI'})-[r]->(n), (d:Categories{specifications:'math.DS'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Find all movies that feature an actor born in Canada."}, {"role": "assistant", "content": "MATCH (a:Actor)-[:ACTED_IN]->(m:Movie)\\nWHERE a.bornIn = \"Canada\"\\nRETURN m.title AS MovieTitle, m.year AS ReleaseYear, a.name AS ActorName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the doi_id from DOI where either doi_id is 563c3ceee67bbf5fc29c764b86a8c8ca or doi_id is not null!"}, {"role": "assistant", "content": "MATCH (n:DOI)\\nWHERE n.doi_id = '563c3ceee67bbf5fc29c764b86a8c8ca' OR n.doi_id IS NOT NULL\\nRETURN DISTINCT n.doi_id AS doi_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 5 user names who are chatters in streams playing 'Dota 2'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:CHATTER]->(s:Stream)-[:PLAYS]->(g:Game {name: 'Dota 2'})\\nRETURN u.name\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {}\n },\n \"DOI\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to both Journal and DOI, directly or indirectly!"}, {"role": "assistant", "content": "MATCH (a:Journal)-[*]-(n)-[*]-(b:DOI)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Display movies that have been released in the 'United States of America'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:PRODUCED_IN_COUNTRY]->(c:Country {name: 'United States of America'})\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which people were born between 1940 and 1960?"}, {"role": "assistant", "content": "MATCH (p:Person)\\nWHERE p.born >= 1940 AND p.born <= 1960\\nRETURN p.name AS name, p.born AS birth_year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the 3 persons with the most PRODUCED relationships?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)\\nRETURN p.name, count(m) AS produced_count\\nORDER BY produced_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"FROM_DEPARTMENT\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"VARIANT_OF\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Article\",\n \"type\": \"CUSTOMERS_ALSO_LIKE\",\n \"to\": \"Article\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Article\"\n }\n ]\n}"}, {"role": "user", "content": "How is the article 'KELLY SHIRT S9' related to 'BIRKA KNOT TOP'?"}, {"role": "assistant", "content": "MATCH (a1:Article {prodName: 'KELLY SHIRT S9'})-[:CUSTOMERS_ALSO_LIKE*1..3]-(a2:Article {prodName: 'BIRKA KNOT TOP'})\\nRETURN a1, a2"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 sources used by tweets mentioning 'Neo4j' and containing a hashtag."}, {"role": "assistant", "content": "MATCH (t:Tweet)-[:MENTIONS]->(u:User {name: 'Neo4j'})\\nWHERE exists{(t)-[:TAGS]->(:Hashtag)}\\nMATCH (t)-[:USING]->(s:Source)\\nRETURN s.name, count(t) AS tweet_count\\nORDER BY tweet_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the movies directed by Nancy Meyers in order of release date."}, {"role": "assistant", "content": "MATCH (d:Person {name: \"Nancy Meyers\"})\\nMATCH (d)-[:DIRECTED]->(m:Movie)\\nRETURN m.title AS title, m.released AS year\\nORDER BY year"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 entities have benefited from the most filings?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)\\nRETURN e, count(f) AS filings_count\\nORDER BY filings_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Categories for which category_id is f2012d79fe17f02edc7542435cc04510!"}, {"role": "assistant", "content": "MATCH (n:Categories {category_id:'f2012d79fe17f02edc7542435cc04510'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List all users who have been retweeted by 'Neo4j' at least twice."}, {"role": "assistant", "content": "MATCH (neo:User {name: 'Neo4j'})-[:POSTS]->(tweet:Tweet)-[:RETWEETS]->(retweetedTweet:Tweet)<-[:POSTS]-(user:User)\\nWITH user, count(retweetedTweet) AS retweetCount\\nWHERE retweetCount >= 2\\nRETURN user"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "What are the review texts for the highest rated business in 'Burlingame'?"}, {"role": "assistant", "content": "MATCH (b:Business)-[:REVIEWS]-(r:Review)\\nWHERE b.city = 'Burlingame'\\nWITH b, avg(r.stars) AS avgRating\\nORDER BY avgRating DESC\\nLIMIT 1\\nMATCH (b)-[:REVIEWS]-(r:Review)\\nRETURN r.text"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the key_id of the Keyword that is not related to the Journal with the name Journal of Mathematical Logic!"}, {"role": "assistant", "content": "MATCH (n:Keyword), (:Journal {name: 'Journal of Mathematical Logic'})\\nWHERE NOT (n) --> (:Journal)\\nRETURN n.key_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "How many businesses are there in each city?"}, {"role": "assistant", "content": "MATCH (b:Business)\\nRETURN b.city AS city, COUNT(b) AS numberOfBusinesses\\nORDER BY city"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average rating of movies released between 1980 and 1990?"}, {"role": "assistant", "content": "MATCH (m:Movie)<-[r:REVIEWED]-()\\nWHERE m.released >= 1980 AND m.released <= 1990\\nWITH avg(r.rating) AS average_rating\\nRETURN average_rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average popularity score of movies with a vote count greater than 1000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.vote_count > 1000\\nWITH avg(m.popularity) AS average_popularity\\nRETURN average_popularity"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the 3 users who have the highest interaction size and are colored '#FF4500'."}, {"role": "assistant", "content": "MATCH (u:User)-[r:INTERACTED]->(:User)\\nWHERE u.color = '#FF4500'\\nRETURN u.label, SUM(r.size) AS totalInteractionSize\\nORDER BY totalInteractionSize DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name the first 3 movies with a tagline that includes the word 'real' and were released before 2000."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.tagline CONTAINS 'real' AND m.released < 2000\\nRETURN m.title\\nORDER BY m.released\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where first_name is S. O. and share a common property with Topic, for which label equals Topology_5?"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'S. O.'})-[r]->(n), (d:Topic{label:'Topology_5'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 genres associated with the highest-grossing videos."}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre)\\nWITH g, SUM(v.revenue) AS total_revenue\\nORDER BY total_revenue DESC\\nLIMIT 5\\nRETURN g.name AS genre, total_revenue"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 countries in terms of total amount received by beneficiary banks?"}, {"role": "assistant", "content": "MATCH (f:Filing)-[:BENEFITS]->(e:Entity)-[:COUNTRY]->(c:Country)\\nWITH c.name AS country, SUM(f.amount) AS total_amount\\nORDER BY total_amount DESC\\nLIMIT 5\\nRETURN country, total_amount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Find all networks routing through the interface with IP '10.2.8.254'."}, {"role": "assistant", "content": "MATCH (i:Interface {ip: '10.2.8.254'})<-[:ROUTES]-(n:Network)\\nRETURN n.ip AS network_ip, n.size AS network_size, n.zone AS network_zone"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Which Officers are connected to Entities through the \"officer_of\" relationship and have a country code of \"WSM\"?"}, {"role": "assistant", "content": "MATCH (o:Officer {country_codes: \"WSM\"})\\nMATCH (o)-[:officer_of]->(e:Entity)\\nRETURN o.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to UpdateDate for which update_date is 2011-11-10, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:UpdateDate{update_date:'2011-11-10'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many nodes are connected to Journal for which journal_id is 6dc95119d8a737d9ffc7fe367159849b, by exactly two different types of relationships?"}, {"role": "assistant", "content": "MATCH (a:Journal{journal_id:'6dc95119d8a737d9ffc7fe367159849b'})-[r]->(n)\\nWITH n, COLLECT(DISTINCT TYPE(r)) AS Types\\nWHERE SIZE(Types) = 2\\nRETURN COUNT(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with DOI where doi_id is ee4af8f04acefe1036a78a4436691f55 and share a common property with Author, for which affiliation equals unspecified?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'ee4af8f04acefe1036a78a4436691f55'})-[r]->(n), (d:Author{affiliation:'unspecified'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch unique values of author_id and affiliation from Author where author_id does not start with e!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nWHERE NOT n.author_id STARTS WITH 'e'\\nRETURN DISTINCT n.author_id AS author_id, n.affiliation AS affiliation"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been associated with the keyword 'high school' and have an average vote above 6?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword {name: 'high school'})\\nWHERE m.average_vote > 6\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 languages with the highest average number of followers per stream."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_LANGUAGE]->(l:Language)\\nWITH l.name AS language, avg(s.followers) AS avg_followers\\nORDER BY avg_followers DESC\\nRETURN language, avg_followers\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Keyword where name is gain!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nWHERE n.name = 'gain'\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies by revenue?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m.title AS title, m.revenue AS revenue\\nORDER BY m.revenue DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the category_id of the Categories that is not related to the Topic with the cluster 3!"}, {"role": "assistant", "content": "MATCH (n:Categories), (:Topic {cluster: '3'})\\nWHERE NOT (n) --> (:Topic)\\nRETURN n.category_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 videos that have a revenue of zero."}, {"role": "assistant", "content": "MATCH (v:Video)\\nWHERE v.revenue = 0.0\\nRETURN v.title, v.revenue\\nORDER BY v.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 characters with the highest book1BetweennessCentrality values."}, {"role": "assistant", "content": "MATCH (c:Character)\\nRETURN c.name, c.book1BetweennessCentrality\\nORDER BY c.book1BetweennessCentrality DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find nodes that are at the end of a path starting at Keyword where name is population dynamics and traversing through Article with abstract Generalizing the construction of the Maslov class for a Lagrangian embedding\nin a symplectic vector space, we prove that it is possible to give a consistent\ndefinition of this class for any Lagrangian submanifold of a Calabi-Yau\nmanifold. Moreover, we prove that this class can be represented by the\ncontraction of the Kaehler form associated to the Calabi-Yau metric, with the\nmean curvature vector field of the Lagrangian embedding. Finally, we suggest a\npossible generalization of the Maslov class for Lagrangian submanifolds of any\nsymplectic manifold, via the mean curvature representation.\n!"}, {"role": "assistant", "content": "MATCH (a:Keyword{name:'population dynamics'})-[*]->(d:Article{abstract:' Generalizing the construction of the Maslov class for a Lagrangian embedding in a symplectic vector space, we prove that it is possible to give a consistent definition of this class for any Lagrangian submanifold of a Calabi-Yau manifold. Moreover, we prove that this class can be represented by the contraction of the Kaehler form associated to the Calabi-Yau metric, with the mean curvature vector field of the Lagrangian embedding. Finally, we suggest a possible generalization of the Maslov class for Lagrangian submanifolds of any symplectic manifold, via the mean curvature representation. '})-[*]->(n)\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the genres of the movie \"Grumpier Old Men\"?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: 'Grumpier Old Men'})-[:IN_GENRE]->(g:Genre)\\nRETURN g.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which top five movies have been both produced and directed by the same person?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:PRODUCED]->(m:Movie)<-[:DIRECTED]-(p)\\nRETURN m.title AS Movie, p.name AS ProducerDirector\\nORDER BY m.votes DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have both English and French languages."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE 'English' IN m.languages AND 'French' IN m.languages\\nRETURN m\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 3 most recent entities based on their last edit timestamp?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nRETURN e.node_id, e.lastEditTimestamp\\nORDER BY e.lastEditTimestamp DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Endowment\": {\n \"properties\": {\n \"amount\": \"FLOAT\",\n \"School_id\": \"INTEGER\",\n \"donator_name\": \"STRING\",\n \"endowment_id\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"IHSAA_Class\": \"STRING\",\n \"School_id\": \"STRING\",\n \"County\": \"STRING\",\n \"Enrollment\": \"INTEGER\",\n \"IHSAA_Football_Class\": \"STRING\",\n \"Location\": \"STRING\",\n \"Mascot\": \"STRING\",\n \"School_name\": \"STRING\"\n }\n },\n \"Budget\": {\n \"properties\": {\n \"Year\": \"INTEGER\",\n \"School_id\": \"INTEGER\",\n \"Budgeted\": \"INTEGER\",\n \"total_budget_percent_budgeted\": \"FLOAT\",\n \"total_budget_percent_invested\": \"FLOAT\",\n \"Budget_invested_percent\": \"STRING\",\n \"Invested\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Show all donor names."}, {"role": "assistant", "content": "MATCH (e:Endowment)\\nRETURN DISTINCT e.donator_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the report_no for Report combined with the key_id for Keyword!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nRETURN n.report_no AS Records\\nUNION ALL\\nMATCH (m:Keyword)\\nRETURN m.key_id AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a name starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have article_id: 3082 and be PUBLISHED_IN with pages recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {article_id: '3082'}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.name STARTS WITH 'J' AND r.pages IS NOT NULL\\nRETURN n.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Find the top 3 movies with a specific actor named 'Tom Hanks' in the cast."}, {"role": "assistant", "content": "MATCH (p:Person {name: 'Tom Hanks'})-[:CAST_FOR]->(m:Movie)\\nRETURN m\\nORDER BY m.popularity DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where first_name is Amnon and Report, for which report_id equals 5049b80a2935f95cc95cf14dbfb8c610?"}, {"role": "assistant", "content": "MATCH p=(a:Author{first_name:'Amnon'})-[*]->(d:Report{report_id:'5049b80a2935f95cc95cf14dbfb8c610'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What is the expiresAt date and time of the subscription 'e74f7163-eace-4169-8043-41627f1fe236'?"}, {"role": "assistant", "content": "MATCH (s:Subscription {id: 'e74f7163-eace-4169-8043-41627f1fe236'})\\nRETURN s.expiresAt"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"tv_channel\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"series_name\": \"STRING\",\n \"country\": \"STRING\",\n \"language ( English )\": \"STRING\",\n \"content\": \"STRING\",\n \"pixel_aspect_ratio_par\": \"STRING\",\n \"hight_definition_tv\": \"STRING\",\n \"pay_per_view_ppv\": \"STRING\",\n \"package_option\": \"STRING\"\n }\n },\n \"tv_series\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"episode\": \"STRING\",\n \"air_date\": \"STRING\",\n \"rating\": \"STRING\",\n \"share\": \"STRING\",\n \"18_49_rating_share\": \"STRING\",\n \"viewers_m\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"channel\": \"STRING\"\n }\n },\n \"cartoon\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"title\": \"STRING\",\n \"directed_by\": \"STRING\",\n \"written_by\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?"}, {"role": "assistant", "content": "MATCH (tv_series:TV_series)\\nWHERE tv_series.Episode = 'A Love of a Lifetime'\\nRETURN tv_series.Weekly_Rank"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"payment_method_code\": \"STRING\",\n \"customer_code\": \"STRING\",\n \"customer_address\": \"STRING\",\n \"customer_phone\": \"STRING\",\n \"customer_email\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"Staff\": {\n \"properties\": {\n \"staff_gender\": \"STRING\",\n \"staff_name\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"product_price\": \"FLOAT\",\n \"product_name\": \"STRING\",\n \"product_type_code\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status_code\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"DepartmentStore\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"store_phone\": \"STRING\",\n \"store_name\": \"STRING\",\n \"store_email\": \"STRING\",\n \"store_address\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_item_id\": \"INTEGER\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"supplier_id\": \"INTEGER\",\n \"supplier_name\": \"STRING\",\n \"supplier_phone\": \"STRING\"\n }\n },\n \"DepartmentStoreChain\": {\n \"properties\": {\n \"dept_store_chain_name\": \"STRING\",\n \"dept_store_chain_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"address_details\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"dept_store_id\": \"INTEGER\",\n \"department_id\": \"INTEGER\",\n \"department_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Staff\",\n \"type\": \"MANAGES\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"IS_PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"SUPPLIED_BY\",\n \"to\": \"Supplier\"\n },\n {\n \"from\": \"DepartmentStore\",\n \"type\": \"HOSTED_IN\",\n \"to\": \"DepartmentStoreChain\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"LIVES_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"DepartmentStore\"\n },\n {\n \"from\": \"Department\",\n \"type\": \"MANAGES\",\n \"to\": \"Staff\"\n }\n ],\n \"relationshipProperties\": {\n \"LIVES_AT\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"SUPPLIES\": {\n \"date_from\": \"STRING\",\n \"date_to\": \"STRING\"\n },\n \"MANAGES\": {\n \"date_assigned_to\": \"STRING\",\n \"job_title_code\": \"STRING\",\n \"date_assigned_from\": \"STRING\"\n },\n \"SUPPLIED_BY\": {\n \"total_value_purchased\": \"FLOAT\",\n \"date_supplied_from\": \"STRING\",\n \"total_amount_purchased\": \"STRING\",\n \"date_supplied_to\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Give me the product type, name and price for all the products supplied by supplier id 3."}, {"role": "assistant", "content": "MATCH (ps:Product)-[:SUPPLIED_BY]->(s:Supplier)\\nWHERE s.supplier_id = 3\\nRETURN ps.product_type_code, ps.product_name, ps.product_price"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all the reviews with a text containing 'car wash'."}, {"role": "assistant", "content": "MATCH (r:Review)\\nWHERE r.text CONTAINS 'car wash'\\nRETURN r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"VotingRecord\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Vice_President_Vote\": \"INTEGER\",\n \"Class_Senator_Vote\": \"INTEGER\",\n \"Class_President_Vote\": \"INTEGER\",\n \"President_Vote\": \"INTEGER\",\n \"Treasurer_Vote\": \"INTEGER\",\n \"Secretary_Vote\": \"INTEGER\",\n \"Election_Cycle\": \"STRING\",\n \"Registration_Date\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n },\n {\n \"from\": \"VotingRecord\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Student\"\n }\n ]\n}"}, {"role": "user", "content": "Which major has the most students?"}, {"role": "assistant", "content": "MATCH (s:Student)\\nWITH s.Major AS Major, count(*) AS count\\nRETURN Major\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"tv_channel\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"series_name ( Sky Radio )\": \"STRING\",\n \"country\": \"STRING\",\n \"language\": \"STRING\",\n \"content\": \"STRING\",\n \"pixel_aspect_ratio_par\": \"STRING\",\n \"hight_definition_tv\": \"STRING\",\n \"pay_per_view_ppv\": \"STRING\",\n \"package_option ( Option )\": \"STRING\"\n }\n },\n \"tv_series\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"episode\": \"STRING\",\n \"air_date\": \"STRING\",\n \"rating\": \"STRING\",\n \"share\": \"STRING\",\n \"18_49_rating_share\": \"STRING\",\n \"viewers_m\": \"STRING\",\n \"weekly_rank\": \"STRING\",\n \"channel\": \"STRING\"\n }\n },\n \"cartoon\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"title\": \"STRING\",\n \"directed_by\": \"STRING\",\n \"written_by\": \"STRING\",\n \"original_air_date\": \"STRING\",\n \"production_code\": \"STRING\",\n \"channel\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the production code and channel of the most recently aired cartoon ."}, {"role": "assistant", "content": "MATCH (cartoon:Cartoon)\\nRETURN cartoon.Production_code,cartoon.Channel\\nORDER BY cartoon.Original_air_date DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"StuID\": \"INTEGER\",\n \"Major\": \"INTEGER\",\n \"Age\": \"INTEGER\",\n \"Fname\": \"STRING\",\n \"city_code\": \"STRING\",\n \"Advisor\": \"INTEGER\",\n \"LName\": \"STRING\",\n \"Sex\": \"STRING\"\n }\n },\n \"Faculty\": {\n \"properties\": {\n \"Phone\": \"INTEGER\",\n \"Room\": \"STRING\",\n \"Rank\": \"STRING\",\n \"Fname\": \"STRING\",\n \"Building\": \"STRING\",\n \"Lname\": \"STRING\",\n \"FacID\": \"INTEGER\",\n \"Sex\": \"STRING\"\n }\n },\n \"Activity\": {\n \"properties\": {\n \"activity_name\": \"STRING\",\n \"actid\": \"INTEGER\"\n }\n },\n \"ParticipatesIn\": {\n \"properties\": {\n \"stuid\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n },\n \"FacultyParticipatesIn\": {\n \"properties\": {\n \"FacID\": \"INTEGER\",\n \"actid\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "What are the ids of the students who are under 20 years old and are involved in at least one activity."}, {"role": "assistant", "content": "MATCH (p:ParticipatesIn), (s:Student)\\nWHERE p.stuid = s.StuID AND s.Age < 20\\nRETURN DISTINCT p.stuid"}]} {"messages": [{"role": "system", "content": "{\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "\"Which actor played the character Ron Burgundy?\""}, {"role": "assistant", "content": "MATCH (p:Person)-[a:ACTED_IN]->(m:Movie)\\nWHERE any(role IN a.roles\\nWHERE role = \"Ron Burgundy\")\\nRETURN p.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Find the businesses that have received reviews from users with userIds containing the number \"1\"."}, {"role": "assistant", "content": "MATCH (u:User)-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business)\\nWHERE u.userId CONTAINS '1'\\nRETURN b.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which Machine types are used in DataCenter 'DC1'?"}, {"role": "assistant", "content": "MATCH (dc:DataCenter {name: 'DC1'})-[:CONTAINS]->(:Rack)-[:HOLDS]->(m:Machine)-[:TYPE]->(t:Type)\\nRETURN DISTINCT t.name AS MachineType"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "How many entities have the same name but different internal_ids?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWITH e.name AS entity_name, collect(e) AS nodes\\nWHERE size(nodes) > 1\\nUNWIND nodes AS n\\nWITH entity_name, collect(n.internal_id) AS internal_ids\\nWHERE size(internal_ids) > 1\\nRETURN count(DISTINCT entity_name) AS count"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "List all the tweets by 'neo4j' that reply to another tweet."}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:POSTS]->(tweet:Tweet)-[:REPLY_TO]->(repliedTo:Tweet)\\nRETURN tweet.text AS tweet, repliedTo.id_str AS in_reply_to_tweet_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"label\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where label is Mathematical Analysis_8 and Article, with abstract equal I associate to a global field K a Lax-Phillips scattering which has the\nproperty of causality if and only if the Riemann Hypothesis holds for all the\nabelian L-functions of K. As a Hilbert space closure problem this provides an\nadelic variation on a theme initiated by Nyman and Beurling. The adelic aspects\nare related to previous work by Tate, Iwasawa and Connes.\n, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{label:'Mathematical Analysis_8'})-[*]-(e:Article{abstract:' I associate to a global field K a Lax-Phillips scattering which has the property of causality if and only if the Riemann Hypothesis holds for all the abelian L-functions of K. As a Hilbert space closure problem this provides an adelic variation on a theme initiated by Nyman and Beurling. The adelic aspects are related to previous work by Tate, Iwasawa and Connes. '}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'louvain' value of characters who interacted with 'Stevron-Frey' in any book?"}, {"role": "assistant", "content": "MATCH (stevron:Character { name: 'Stevron-Frey' })-[r]->(other:Character)\\nRETURN avg(other.louvain)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "Show the first 3 businesses in 'CA' reviewed by 'Will'."}, {"role": "assistant", "content": "MATCH (u:User {name: 'Will'})-[:WROTE]->(r:Review)-[:REVIEWS]->(b:Business {state: 'CA'})\\nRETURN b.name, b.address, b.city, b.state\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the journal_id in Journal that is linked through a PUBLISHED_IN relationship with Article where comments is 22 pages, LaTeX and PUBLISHED_IN has meta on 220!"}, {"role": "assistant", "content": "MATCH (n:Article) -[pu:PUBLISHED_IN {meta : '220'}]->(m)\\nWHERE n.comments='22 pages, LaTeX'\\nRETURN m.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the description from Topic where cluster is not 9!"}, {"role": "assistant", "content": "MATCH (n:Topic)\\nWHERE n.cluster <> '9'\\nRETURN DISTINCT n.description AS description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch all the Article and return the article_id and the number of nodes connected to them via PUBLISHED_IN with meta = 247."}, {"role": "assistant", "content": "MATCH (n:Article)-[r:PUBLISHED_IN]->()\\nWHERE r.meta = '247'\\nWITH (n), COUNT(*) AS numberOfDirectConnections\\nRETURN n.article_id AS article_id, numberOfDirectConnections"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Person\": {\n \"properties\": {\n \"id\": \"string\",\n \"role\": \"string\",\n \"description\": \"string\"\n }\n },\n \"Position\": {\n \"properties\": {\n \"id\": \"string\",\n \"title\": \"string\",\n \"location\": \"string\",\n \"startDate\": \"string\",\n \"endDate\": \"string\",\n \"url\": \"string\"\n }\n },\n \"Company\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\"\n }\n },\n \"Skill\": {\n \"properties\": {\n \"id\": \"string\",\n \"name\": \"string\",\n \"level\": \"string\"\n }\n },\n \"Education\": {\n \"properties\": {\n \"id\": \"string\",\n \"degree\": \"string\",\n \"university\": \"string\",\n \"graduation_date\": \"string\",\n \"score\": \"string\",\n \"url\": \"string\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many people have worked as a Data Analyst in New York?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:HAS_POSITION]->(pos:Position)\\nWHERE toLower(pos.title) CONTAINS 'data analyst' AND toLower(pos.location) CONTAINS 'new york'\\nRETURN COUNT(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the comments for Article!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION ALL\\nMATCH (m:Article)\\nRETURN m.comments AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "List the tags of the question with the link 'https://stackoverflow.com/questions/62224586/playground-is-not-loading-with-apollo-server-lambda'."}, {"role": "assistant", "content": "MATCH (q:Question {link: 'https://stackoverflow.com/questions/62224586/playground-is-not-loading-with-apollo-server-lambda'})\\nMATCH (q)-[:TAGGED]->(t:Tag)\\nRETURN t.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which Filings have an end date later than 'September 2015'?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWHERE f.end > datetime('2015-09-30T23:59:59Z')\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 countries by the number of videos produced."}, {"role": "assistant", "content": "MATCH (v:Video)-[:PRODUCED_IN_COUNTRY]->(c:Country)\\nRETURN c.name AS Country, count(v) AS NumberOfVideos\\nORDER BY NumberOfVideos DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 movies released in the 2000s."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.year >= 2000 AND m.year < 2010\\nRETURN m\\nORDER BY m.year ASC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"key_id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_KEY\",\n \"to\": \"Keyword\"\n }\n ]\n}"}, {"role": "user", "content": "Find Keyword that has a key_id which begins with k, and is linked to Article via HAS_KEY relationship, where Article has comments no comments!"}, {"role": "assistant", "content": "MATCH (n:Article {comments: 'no comments'}) -[:HAS_KEY]- (m:Keyword)\\nWHERE m.key_id STARTS WITH 'k'\\nRETURN m"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What entities are connected to the intermediary 'MICHAEL PAPAGEORGE, MR.'?"}, {"role": "assistant", "content": "MATCH (i:Intermediary {name: 'MICHAEL PAPAGEORGE, MR.'})-[:intermediary_of]->(e:Entity)\\nRETURN e.name AS entity_name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 applications are instances of the application 'crm'?"}, {"role": "assistant", "content": "MATCH (a:Application {name: 'crm'})-[:INSTANCE]->(instance:Application)\\nRETURN instance.name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the article_id for Article combined with the name for DOI, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nRETURN n.article_id AS Records\\nUNION\\nMATCH (m:DOI)\\nRETURN m.name AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have a fastrf_embedding first element below 0?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.fastrf_embedding[0] < 0\\nRETURN c.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Look for the author_id of the Author that is not related to the Author with the author_id 1184638302ce384c7549eeead253af2d!"}, {"role": "assistant", "content": "MATCH (n:Author), (:Author {author_id: '1184638302ce384c7549eeead253af2d'})\\nWHERE NOT (n) --> (:Author)\\nRETURN n.author_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 suppliers have the most products with zero units on order?"}, {"role": "assistant", "content": "MATCH (s:Supplier)-[:SUPPLIES]->(p:Product)\\nWHERE p.unitsOnOrder = 0\\nWITH s, count(p) AS ProductsCount\\nORDER BY ProductsCount DESC\\nLIMIT 3\\nRETURN s.companyName, ProductsCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"affiliation\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch eight samples of the affiliation of the Author and the abstract for Article!"}, {"role": "assistant", "content": "MATCH (n:Author)\\nMATCH (m:Article)\\nRETURN n.affiliation, m.abstract\\nLIMIT 8"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have a revenue greater than 300000000?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.revenue > 300000000\\nRETURN m.title"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Keyword with name equal to log-balanced!"}, {"role": "assistant", "content": "MATCH (a:Keyword)-[*3]->(n)\\nWHERE a.name = 'log-balanced'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "How many characters have a louvain value greater than 8?"}, {"role": "assistant", "content": "MATCH (c:Character)\\nWHERE c.louvain > 8\\nRETURN count(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which three movies have the longest runtime?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nRETURN m\\nORDER BY m.runtime DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify nodes that are connected to Journal where journal_id is 99571eecaa5c5d622bb0d1f855752d5f and list their properties, including those of Journal!"}, {"role": "assistant", "content": "MATCH (b:Journal)-[r]->(n)\\nWHERE b.journal_id = '99571eecaa5c5d622bb0d1f855752d5f'\\nRETURN properties(b) AS Journal_props, properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify entities with a valid until date and their respective incorporation dates."}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.valid_until IS NOT NULL AND e.incorporation_date IS NOT NULL\\nRETURN e.name, e.valid_until, e.incorporation_date"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated the highest by users who have rated over 100 movies?"}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWITH u, count(r) AS ratingsCount\\nWHERE ratingsCount > 100\\nMATCH (u)-[r:RATED]->(m)\\nRETURN m.title AS MovieTitle, avg(r.rating) AS AverageRating\\nORDER BY AverageRating DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 movies that have the keyword 'best friend'."}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE k.name = 'best friend'\\nWITH m\\nRETURN m.title\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List all streams that have a VIP who is a user."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:VIP]->(:User)\\nRETURN s.name AS stream_name, s.url AS stream_url, s.description AS stream_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "Which 5 filings involve the most number of different originator iso codes?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nWITH f, count(DISTINCT f.originator_iso) AS distinctOriginatorIsos\\nORDER BY distinctOriginatorIsos DESC\\nLIMIT 5\\nRETURN f"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {\n \"update_date\": \"DATE\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the UpdateDate that has update_date 2021-02-09!"}, {"role": "assistant", "content": "MATCH path=(:UpdateDate {update_date:'2021-02-09'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 tweets by 'neo4j' that have been retweeted and contain a link."}, {"role": "assistant", "content": "MATCH (u:User {screen_name: 'neo4j'})-[:POSTS]->(t:Tweet)-[:CONTAINS]->(l:Link)\\nWHERE (t)-[:RETWEETS]->()\\nRETURN t.id_str AS tweet_id, t.text AS tweet_text, t.favorites AS favorites, t.created_at AS created_at, l.url AS link_url\\nORDER BY t.favorites DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the Author for which last_name is Burnol!"}, {"role": "assistant", "content": "MATCH (n:Author {last_name:'Burnol'})\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which movies have been rated by user '1'?"}, {"role": "assistant", "content": "MATCH (u:User {id: 1})-[r:RATED]->(m:Movie)\\nRETURN m.title AS movie, r.rating AS rating"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Which orders have a 'shippedDate' on or after '1996-07-16'?"}, {"role": "assistant", "content": "MATCH (o:Order)\\nWHERE o.shippedDate >= '1996-07-16'\\nRETURN o.orderID, o.shippedDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Student\": {\n \"properties\": {\n \"STU_DOB\": \"STRING\",\n \"STU_LNAME\": \"STRING\",\n \"STU_HRS\": \"INTEGER\",\n \"STU_INIT\": \"STRING\",\n \"STU_NUM\": \"INTEGER\",\n \"PROF_NUM\": \"INTEGER\",\n \"STU_TRANSFER\": \"INTEGER\",\n \"DEPT_CODE\": \"STRING\",\n \"STU_FNAME\": \"STRING\",\n \"STU_PHONE\": \"STRING\",\n \"STU_CLASS\": \"STRING\",\n \"STU_GPA\": \"FLOAT\"\n }\n },\n \"Course\": {\n \"properties\": {\n \"CRS_DESCRIPTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"CRS_CREDIT\": \"FLOAT\"\n }\n },\n \"Professor\": {\n \"properties\": {\n \"PROF_EXTENSION\": \"STRING\",\n \"PROF_HIGH_DEGREE\": \"STRING\",\n \"PROF_OFFICE\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Clas\": {\n \"properties\": {\n \"CLASS_CODE\": \"STRING\",\n \"CLASS_SECTION\": \"STRING\",\n \"CRS_CODE\": \"STRING\",\n \"PROF_NUM\": \"INTEGER\",\n \"CLASS_TIME\": \"STRING\",\n \"CLASS_ROOM\": \"STRING\"\n }\n },\n \"Department\": {\n \"properties\": {\n \"DEPT_ADDRESS\": \"STRING\",\n \"DEPT_EXTENSION\": \"STRING\",\n \"DEPT_CODE\": \"STRING\",\n \"DEPT_NAME\": \"STRING\",\n \"SCHOOL_CODE\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Employee\": {\n \"properties\": {\n \"EMP_INITIAL\": \"STRING\",\n \"EMP_JOBCODE\": \"STRING\",\n \"EMP_LNAME\": \"STRING\",\n \"EMP_HIREDATE\": \"STRING\",\n \"EMP_DOB\": \"STRING\",\n \"EMP_FNAME\": \"STRING\",\n \"EMP_NUM\": \"INTEGER\"\n }\n },\n \"Enroll\": {\n \"properties\": {\n \"ENROLL_GRADE\": \"STRING\",\n \"CLASS_CODE\": \"STRING\",\n \"STU_NUM\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n },\n {\n \"from\": \"Student\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"WORKS_IN\",\n \"to\": \"Department\"\n },\n {\n \"from\": \"Professor\",\n \"type\": \"SUPERVISES\",\n \"to\": \"Employee\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first and last names of the employee with the earliest date of birth?"}, {"role": "assistant", "content": "MATCH (e:Employee)\\nRETURN e.EMP_FNAME, e.EMP_LNAME\\nORDER BY e.EMP_DOB\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average number of favorites for tweets that mention users followed by Neo4j?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)<-[:MENTIONS]-(tweet:Tweet)\\nWITH avg(tweet.favorites) AS average_favorites\\nRETURN average_favorites"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "List the first 3 orders made by 'Alfreds Futterkiste' with a freight cost greater than 10."}, {"role": "assistant", "content": "MATCH (c:Customer {companyName: \"Alfreds Futterkiste\"})-[:PURCHASED]->(o:Order)\\nWHERE o.freight > \"10\"\\nRETURN o\\nORDER BY o.orderDate\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Author where author_id is 700c655b31f9b9275ba10a9875c15332 and Keyword, with name equal super-population viewpoint, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Author{author_id:'700c655b31f9b9275ba10a9875c15332'})-[*]-(e:Keyword{name:'super-population viewpoint'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Article where abstract is The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n and DOI, for which doi_id is abce5ed79c520bdb8fd79a61a852648d?"}, {"role": "assistant", "content": "MATCH (a:Article{abstract:' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '}), (b:DOI{doi_id:'abce5ed79c520bdb8fd79a61a852648d'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have an INTERACTS relationship in book 1 with a weight over 250?"}, {"role": "assistant", "content": "MATCH (c:Character)-[r:INTERACTS1]->(:Character)\\nWHERE r.weight > 250\\nRETURN c"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Article where article_id is 1008 and Article, with title equal Solutions to congruences using sets with the property of Baire, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Article{article_id:'1008'})-[*]-(e:Article{title:'Solutions to congruences using sets with the property of Baire'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"year\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "What are the properties of Journal that is PUBLISHED_IN, with year equal to 2001, connected to Article that has article_id equal to 2007?"}, {"role": "assistant", "content": "MATCH (n:Article) -[:PUBLISHED_IN{year: '2001'}]->(m:Journal)\\nWHERE n.article_id = '2007'\\nRETURN properties(m) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Article where abstract contains The main result of this paper is the proof of the \"transversal part\" of the\nhomological mirror symmetry conjecture for an elliptic curve which states an\nequivalence of two $A_{\\infty}$-structures on the category of vector bundles on\nan elliptic curves. The proof is based on the study of $A_{\\infty}$-structures\non the category of line bundles over an elliptic curve satisfying some natural\nrestrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with\nthe usual composition). The key observation is that such a structure is\nuniquely determined up to homotopy by certain triple products.\n, along with the type of their relationship with Article!"}, {"role": "assistant", "content": "MATCH (d:Article)-[r]->(n)\\nWHERE d.abstract CONTAINS ' The main result of this paper is the proof of the \"transversal part\" of the homological mirror symmetry conjecture for an elliptic curve which states an equivalence of two $A_{\\infty}$-structures on the category of vector bundles on an elliptic curves. The proof is based on the study of $A_{\\infty}$-structures on the category of line bundles over an elliptic curve satisfying some natural restrictions (in particular, $m_1$ should be zero, $m_2$ should coincide with the usual composition). The key observation is that such a structure is uniquely determined up to homotopy by certain triple products. '\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the name of the Intermediary with node ID 10001?"}, {"role": "assistant", "content": "MATCH (i:Intermediary)\\nWHERE i.internal_id = \"10001\"\\nRETURN i.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Display the first 3 users with the highest following who follow 'Neo4j'."}, {"role": "assistant", "content": "MATCH (neo4j:Me {screen_name: 'neo4j'})<-[:FOLLOWS]-(user:User)\\nRETURN user.name, user.following\\nORDER BY user.following DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"SchoolPerformance\": {\n \"properties\": {\n \"School_Year\": \"STRING\",\n \"Class_A\": \"STRING\",\n \"Class_AA\": \"STRING\",\n \"School_Id\": \"INTEGER\"\n }\n },\n \"Player\": {\n \"properties\": {\n \"Age\": \"INTEGER\",\n \"Player\": \"STRING\",\n \"Position\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Player_ID\": \"INTEGER\",\n \"Team\": \"STRING\"\n }\n },\n \"SchoolDetail\": {\n \"properties\": {\n \"Nickname\": \"STRING\",\n \"League\": \"STRING\",\n \"Division\": \"STRING\",\n \"Class\": \"STRING\",\n \"Colors\": \"STRING\",\n \"School_ID\": \"INTEGER\"\n }\n },\n \"School\": {\n \"properties\": {\n \"Boys_or_Girls\": \"STRING\",\n \"Denomination\": \"STRING\",\n \"Founded\": \"FLOAT\",\n \"School_Colors\": \"STRING\",\n \"Year_Entered_Competition\": \"FLOAT\",\n \"Enrollment\": \"FLOAT\",\n \"Location\": \"STRING\",\n \"School_ID\": \"INTEGER\",\n \"Day_or_Boarding\": \"STRING\",\n \"School\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolPerformance\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"Player\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n },\n {\n \"from\": \"SchoolDetail\",\n \"type\": \"RELATED_TO\",\n \"to\": \"School\"\n }\n ]\n}"}, {"role": "user", "content": "What are the nicknames of schools whose division is not 1?"}, {"role": "assistant", "content": "MATCH (s:School_details)\\nWHERE s.Division <> \"Division 1\"\\nRETURN s.Nickname"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"Customer_ID\": \"INTEGER\",\n \"Customer_name\": \"STRING\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"Service_ID\": \"INTEGER\",\n \"Service_name\": \"STRING\"\n }\n },\n \"FirstNotificationOfLos\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Service_ID\": \"INTEGER\",\n \"Customer_ID\": \"INTEGER\",\n \"Policy_ID\": \"INTEGER\"\n }\n },\n \"Claim\": {\n \"properties\": {\n \"FNOL_ID\": \"INTEGER\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\"\n }\n },\n \"Settlement\": {\n \"properties\": {\n \"Settlement_Amount\": \"FLOAT\",\n \"Effective_Date\": \"STRING\",\n \"Claim_ID\": \"INTEGER\",\n \"Settlement_ID\": \"INTEGER\"\n }\n },\n \"AvailablePolicy\": {\n \"properties\": {\n \"policy_type_code\": \"STRING\",\n \"Customer_Phone\": \"STRING\",\n \"Policy_ID\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"FirstNotificationOfLos\"\n },\n {\n \"from\": \"Claim\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Settlement\"\n },\n {\n \"from\": \"Settlement\",\n \"type\": \"RELATED_TO\",\n \"to\": \"Claim\"\n },\n {\n \"from\": \"AvailablePolicy\",\n \"type\": \"OFFERS\",\n \"to\": \"Customer\"\n }\n ],\n \"relationshipProperties\": {\n \"OFFERS\": {\n \"Date_Opened\": \"STRING\",\n \"Date_Closed\": \"STRING\"\n }\n }\n}"}, {"role": "user", "content": "Count the total number of available services."}, {"role": "assistant", "content": "MATCH (n:Service)\\nRETURN COUNT(*)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that are connected with Author where author_id is 788db042978edbbfc654927e23ac21d1 and share a common property with Categories, for which category_id equals f2012d79fe17f02edc7542435cc04510?"}, {"role": "assistant", "content": "MATCH (a:Author{author_id:'788db042978edbbfc654927e23ac21d1'})-[r]->(n), (d:Categories{category_id:'f2012d79fe17f02edc7542435cc04510'})\\nWHERE ANY(key in keys(n)\\nWHERE n[key] = d[key])\\nRETURN n"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article and its article_id, count the DOI connected through HAS_DOI and fetch the article_id and the counts that are greater than 5, starting with the largest article_id and count!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_DOI]->(m:DOI)\\nWITH DISTINCT n, m\\nWITH n.article_id AS article_id, count(m) AS count\\nWHERE count > 4\\nRETURN article_id, count\\nORDER BY article_id DESC, count DESC"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Characteristic\": {\n \"properties\": {\n \"characteristic_name\": \"STRING\",\n \"characteristic_id\": \"INTEGER\",\n \"characteristic_data_type\": \"STRING\",\n \"characteristic_type_code\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_category_code\": \"STRING\",\n \"typical_buying_price\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"product_name\": \"STRING\",\n \"color_code\": \"STRING\",\n \"typical_selling_price\": \"STRING\",\n \"product_description\": \"STRING\"\n }\n },\n \"RefCharacteristicType\": {\n \"properties\": {\n \"characteristic_type_code\": \"STRING\",\n \"characteristic_type_description\": \"STRING\"\n }\n },\n \"RefColor\": {\n \"properties\": {\n \"color_code\": \"STRING\",\n \"color_description\": \"STRING\"\n }\n },\n \"RefProductCategory\": {\n \"properties\": {\n \"unit_of_measure\": \"STRING\",\n \"product_category_code\": \"STRING\",\n \"product_category_description\": \"STRING\"\n }\n },\n \"ProductCharacteristic\": {\n \"properties\": {\n \"product_id\": \"INTEGER\",\n \"characteristic_id\": \"INTEGER\",\n \"product_characteristic_value\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"Characteristic\",\n \"type\": \"IS_A\",\n \"to\": \"RefCharacteristicType\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"ASSOCIATED_WITH\",\n \"to\": \"RefColor\"\n },\n {\n \"from\": \"Product\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"RefProductCategory\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Characteristic\"\n },\n {\n \"from\": \"ProductCharacteristic\",\n \"type\": \"HAS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "What is the unit of measuerment of the product category code \"Herbs\"?"}, {"role": "assistant", "content": "MATCH (c:RefProductCategory {product_category_code: \"Herbs\"})\\nRETURN c.unit_of_measure"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 videos that have a genre of 'Horror' and are rated above 5."}, {"role": "assistant", "content": "MATCH (v:Video)-[:IN_GENRE]->(g:Genre {name: 'Horror'})\\nWHERE v.average_vote > 5\\nRETURN v.title, v.average_vote\\nORDER BY v.average_vote DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Question\": {\n \"properties\": {\n \"favorites\": \"INTEGER\",\n \"answered\": \"BOOLEAN\",\n \"text\": \"STRING\",\n \"link\": \"STRING\",\n \"createdAt\": \"DATE_TIME\",\n \"title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"upVotes\": \"INTEGER\",\n \"score\": \"INTEGER\",\n \"downVotes\": \"INTEGER\"\n }\n },\n \"Tag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"image\": \"STRING\",\n \"link\": \"STRING\",\n \"id\": \"INTEGER\",\n \"reputation\": \"INTEGER\",\n \"display_name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Question\",\n \"type\": \"TAGGED\",\n \"to\": \"Tag\"\n },\n {\n \"from\": \"User\",\n \"type\": \"ASKED\",\n \"to\": \"Question\"\n }\n ]\n}"}, {"role": "user", "content": "Which questions were asked most recently by users with an image link containing 'googleusercontent'?"}, {"role": "assistant", "content": "MATCH (u:User)-[:ASKED]->(q:Question)\\nWHERE u.image CONTAINS 'googleusercontent'\\nRETURN q.title, q.createdAt, u.display_name\\nORDER BY q.createdAt DESC\\nLIMIT 10"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "For each Article find its article_id and the count of Journal linked via PUBLISHED_IN where pages is not '641-672', and retrieve seven results in desc order of the counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages <> '641-672'\\nWITH DISTINCT n, m\\nRETURN n.article_id AS article_id, count(m) AS count\\nORDER BY count DESC\\nLIMIT 7"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_CATEGORY\",\n \"to\": \"Categories\"\n }\n ]\n}"}, {"role": "user", "content": "Calculate the average specifications for Categories that are linked to Article via HAS_CATEGORY and have abstract date before December 31, 2020!"}, {"role": "assistant", "content": "MATCH (n:Article) -[:HAS_CATEGORY]->(m:Categories)\\nWHERE m.abstract < date('2020-12-31')\\nRETURN avg(m.specifications) AS avg_specifications"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Who wrote 'Something's Gotta Give' and what is the movie's release year?"}, {"role": "assistant", "content": "MATCH (m:Movie {title: \"Something's Gotta Give\"})<-[:WROTE]-(p:Person)\\nRETURN p.name AS writer, m.released AS releaseYear"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"first_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the nodes connected to Author where first_name is J. Daniel and list their properties!"}, {"role": "assistant", "content": "MATCH (a:Author{first_name:'J. Daniel'})-[r]->(n)\\nRETURN properties(n), r"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {}\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"pages\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Search for the abstract values from 20 Article that are linked to Journal via PUBLISHED_IN with pages = 89-106, and return abstract along with the respective Journal counts!"}, {"role": "assistant", "content": "MATCH (n:Article) -[r:PUBLISHED_IN]->(m:Journal)\\nWHERE r.pages='89-106'\\nWITH DISTINCT n, m\\nRETURN n.abstract AS abstract, count(m) AS count\\nLIMIT 20"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "What is the highest number of favorites received by a tweet that mentions a user followed by 'Tobias Lindaaker'?"}, {"role": "assistant", "content": "MATCH (u1:User {screen_name: 'Tobias Lindaaker'})-[:FOLLOWS]->(u2:User)\\nWITH u2\\nMATCH (u2)-[:POSTS]->(t:Tweet)-[:MENTIONS]->(u3:User)\\nWITH t, max(t.favorites) AS max_favorites\\nRETURN max(max_favorites) AS highest_favorites"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Report\": {\n \"properties\": {\n \"report_no\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Return the name for Keyword combined with the report_no for Report, filter the duplicates if any!"}, {"role": "assistant", "content": "MATCH (n:Keyword)\\nRETURN n.name AS Records\\nUNION\\nMATCH (m:Report)\\nRETURN m.report_no AS Records"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 3 movies that were released before the year 2000 and have an 'original_language' of 'en'."}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE m.release_date < date('2000-01-01') AND m.original_language = 'en'\\nRETURN m.title, m.release_date, m.original_language\\nORDER BY m.release_date DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"UpdateDate\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Find nodes that share a relationship with both UpdateDate and UpdateDate!"}, {"role": "assistant", "content": "MATCH (c:UpdateDate)<-[r1]-(n)-[r2]->(d:UpdateDate)\\nRETURN labels(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "How many products are in the 'Confections' category and have a unit price greater than 20?"}, {"role": "assistant", "content": "MATCH (p:Product)-[:PART_OF]->(c:Category)\\nWHERE c.categoryName = 'Confections' AND p.unitPrice > 20\\nRETURN count(p) AS numberOfProducts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Identify the first 3 users who have rated movies released before 1980."}, {"role": "assistant", "content": "MATCH (u:User)-[r:RATED]->(m:Movie)\\nWHERE m.year < 1980\\nWITH u, r, m\\nORDER BY r.timestamp\\nRETURN u.name AS user, m.title AS movie, m.year AS year\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Identify the longest path originating from DOI for which doi_id is fe8768ee88f2d27ed51861639e63a4ff, and list the properties of the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=(a:DOI{doi_id:'fe8768ee88f2d27ed51861639e63a4ff'})-[*]->(n)\\nRETURN p, nodes(p)\\nORDER BY LENGTH(p) DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DataCenter\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"location\": \"STRING\"\n }\n },\n \"Router\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Egress\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Interface\": {\n \"properties\": {\n \"ip\": \"STRING\"\n }\n },\n \"Network\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Zone\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"size\": \"INTEGER\",\n \"zone\": \"INTEGER\"\n }\n },\n \"Rack\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"zone\": \"INTEGER\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Switch\": {\n \"properties\": {\n \"ip\": \"STRING\",\n \"rack\": \"INTEGER\"\n }\n },\n \"Type\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"type\": \"STRING\",\n \"ram\": \"INTEGER\",\n \"name\": \"STRING\",\n \"disk\": \"INTEGER\",\n \"cpu\": \"INTEGER\"\n }\n },\n \"Machine\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Software\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"versions\": \"LIST\",\n \"ports\": \"LIST\",\n \"dependencies\": \"LIST\"\n }\n },\n \"OS\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\"\n }\n },\n \"Service\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Application\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Version\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Process\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"startTime\": \"INTEGER\",\n \"pid\": \"INTEGER\"\n }\n },\n \"Port\": {\n \"properties\": {\n \"port\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Rack\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Router\"\n },\n {\n \"from\": \"DataCenter\",\n \"type\": \"CONTAINS\",\n \"to\": \"Egress\"\n },\n {\n \"from\": \"Router\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Egress\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"EXPOSES\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Interface\",\n \"type\": \"CONNECTS\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Network\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Zone\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Machine\"\n },\n {\n \"from\": \"Rack\",\n \"type\": \"HOLDS\",\n \"to\": \"Switch\"\n },\n {\n \"from\": \"Switch\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"OS\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"RUNS\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"ROUTES\",\n \"to\": \"Interface\"\n },\n {\n \"from\": \"Machine\",\n \"type\": \"TYPE\",\n \"to\": \"Type\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"VERSION\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Software\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"OS\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Service\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Application\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Version\",\n \"type\": \"PREVIOUS\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Version\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Software\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Application\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"INSTANCE\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Service\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"DEPENDS_ON\",\n \"to\": \"Process\"\n },\n {\n \"from\": \"Process\",\n \"type\": \"LISTENS\",\n \"to\": \"Port\"\n }\n ]\n}"}, {"role": "user", "content": "Which interfaces connect to the router named DC1-R-2?"}, {"role": "assistant", "content": "MATCH (r:Router {name: 'DC1-R-2'})-[:ROUTES]->(i:Interface)\\nRETURN i.ip AS interface_ip"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the top 5 movies with a tagline that includes the word 'adventure'?"}, {"role": "assistant", "content": "MATCH (m:Movie)\\nWHERE toLower(m.tagline) CONTAINS 'adventure'\\nRETURN m.title, m.tagline\\nORDER BY m.popularity DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "What are the first 3 videos with the most associated keywords?"}, {"role": "assistant", "content": "MATCH (v:Video)-[:HAS_KEYWORD]->(k:Keyword)\\nWITH v, count(k) AS keywordCount\\nORDER BY keywordCount DESC\\nLIMIT 3\\nRETURN v.title AS video, keywordCount"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Fetch the distinct values of the report_id from Report where either report_no is PAM-780 or report_id is not null!"}, {"role": "assistant", "content": "MATCH (n:Report)\\nWHERE n.report_no = 'PAM-780' OR n.report_id IS NOT NULL\\nRETURN DISTINCT n.report_id AS report_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n },\n \"Journal\": {\n \"properties\": {\n \"journal_id\": \"STRING\"\n }\n },\n \"PUBLISHED_IN\": {\n \"properties\": {\n \"meta\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"PUBLISHED_IN\",\n \"to\": \"Journal\"\n }\n ]\n}"}, {"role": "user", "content": "Find the Journal with a journal_id starting with J, and linked with an Article through PUBLISHED_IN relationship. The Article must have abstract: Let F be a local net of von Neumann algebras in four spacetime dimensions\nsatisfying certain natural structural assumptions. We prove that if F has\ntrivial superselection structure then every covariant, Haag-dual subsystem B is\nthe fixed point net under a compact group action on one component in a suitable\ntensor product decomposition of F. Then we discuss some application of our\nresult, including free field models and certain theories with at most countably\nmany sectors.\n and be PUBLISHED_IN with meta recorded!"}, {"role": "assistant", "content": "MATCH (n:Article {abstract: ' Let F be a local net of von Neumann algebras in four spacetime dimensions satisfying certain natural structural assumptions. We prove that if F has trivial superselection structure then every covariant, Haag-dual subsystem B is the fixed point net under a compact group action on one component in a suitable tensor product decomposition of F. Then we discuss some application of our result, including free field models and certain theories with at most countably many sectors. '}) -[r:PUBLISHED_IN]- (m:Journal)\\nWHERE m.journal_id STARTS WITH 'J' AND r.meta IS NOT NULL\\nRETURN n.journal_id"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"DOI\": {\n \"properties\": {\n \"doi_id\": \"STRING\"\n }\n },\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting DOI where doi_id is 6ecd77a291d325cb3e01160880d88c69 and Topic, for which cluster is 6?"}, {"role": "assistant", "content": "MATCH (a:DOI{doi_id:'6ecd77a291d325cb3e01160880d88c69'}), (b:Topic{cluster:'6'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List nodes that are 3 hops away from Categories for which specifications=q-fin.PR!"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'q-fin.PR'})-[*3]->(n)\\nRETURN labels(n) AS FarNodes"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Name 3 persons who have acted in movies released in consecutive years."}, {"role": "assistant", "content": "MATCH (p1:Person)-[:ACTED_IN]->(m1:Movie), (p2:Person)-[:ACTED_IN]->(m2:Movie), (p3:Person)-[:ACTED_IN]->(m3:Movie)\\nWHERE m1.released = m2.released - 1 AND m2.released = m3.released - 1 AND p1 <> p2 AND p1 <> p3 AND p2 <> p3\\nRETURN p1.name AS person1, p2.name AS person2, p3.name AS person3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List all nodes that are connected to Categories where specifications contains cs.NI, along with the type of their relationship with Categories!"}, {"role": "assistant", "content": "MATCH (d:Categories)-[r]->(n)\\nWHERE d.specifications CONTAINS 'cs.NI'\\nRETURN n, TYPE(r)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"label\": \"STRING\",\n \"key\": \"STRING\",\n \"y\": \"FLOAT\",\n \"color\": \"STRING\",\n \"x\": \"FLOAT\",\n \"area\": \"FLOAT\",\n \"size\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"INTERACTED\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "What is the average 'x' value of Users with an 'area' less than 3?"}, {"role": "assistant", "content": "MATCH (u:User)\\nWHERE u.area < 3\\nWITH avg(u.x) AS average_x\\nRETURN average_x"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"cluster\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Topic with cluster equal to 4!"}, {"role": "assistant", "content": "MATCH (a:Topic)-[*3]->(n)\\nWHERE a.cluster = '4'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Show the top 5 people who have reviewed the most movies."}, {"role": "assistant", "content": "MATCH (p:Person)-[r:REVIEWED]->(m:Movie)\\nWITH p, count(r) AS num_reviews\\nORDER BY num_reviews DESC\\nLIMIT 5\\nRETURN p.name AS person, num_reviews"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {}\n },\n \"Topic\": {\n \"properties\": {}\n }\n }\n}"}, {"role": "user", "content": "Are there any nodes that share a common relationship type with both Report and Topic?"}, {"role": "assistant", "content": "MATCH (a:Report)-[r]->(n), (d:Topic)-[s]->(m)\\nWHERE TYPE(r) = TYPE(s)\\nRETURN labels(n), labels(m)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"specifications\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Is there a path connecting Categories where specifications is math.AT and Article, for which title is Free Field Construction for the ABF Models in Regime II?"}, {"role": "assistant", "content": "MATCH (a:Categories{specifications:'math.AT'}), (b:Article{title:'Free Field Construction for the ABF Models in Regime II'})\\nRETURN EXISTS((a)-[*]-(b)) AS pathExists"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"abstract\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Retrieve distinct values of the abstract from Article where abstract is not Using matrix inversion and determinant evaluation techniques we prove several\nsummation and transformation formulas for terminating, balanced,\nvery-well-poised, elliptic hypergeometric series.\n!"}, {"role": "assistant", "content": "MATCH (n:Article)\\nWHERE n.abstract <> ' Using matrix inversion and determinant evaluation techniques we prove several summation and transformation formulas for terminating, balanced, very-well-poised, elliptic hypergeometric series. '\\nRETURN DISTINCT n.abstract AS abstract"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"runtime\": \"INTEGER\",\n \"revenue\": \"INTEGER\",\n \"imdbRating\": \"FLOAT\",\n \"released\": \"STRING\",\n \"countries\": \"LIST\",\n \"languages\": \"LIST\",\n \"plot\": \"STRING\",\n \"imdbVotes\": \"INTEGER\",\n \"imdbId\": \"STRING\",\n \"year\": \"INTEGER\",\n \"poster\": \"STRING\",\n \"movieId\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"title\": \"STRING\",\n \"budget\": \"INTEGER\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"userId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Actor\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"bio\": \"STRING\",\n \"died\": \"DATE\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"poster\": \"STRING\"\n }\n },\n \"Director\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"died\": \"DATE\",\n \"tmdbId\": \"STRING\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"bio\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"url\": \"STRING\",\n \"died\": \"DATE\",\n \"bornIn\": \"STRING\",\n \"born\": \"DATE\",\n \"imdbId\": \"STRING\",\n \"name\": \"STRING\",\n \"poster\": \"STRING\",\n \"tmdbId\": \"STRING\",\n \"bio\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Actor\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Director\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "Which actors have a biography mentioning 'Broadway'?"}, {"role": "assistant", "content": "MATCH (a:Actor)\\nWHERE a.bio CONTAINS 'Broadway'\\nRETURN a.name, a.bio"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "Identify entities with a type of 'LIMITED LIABILITY COMPANY' in the Paradise Papers."}, {"role": "assistant", "content": "MATCH (e:Other)\\nWHERE e.type = 'LIMITED LIABILITY COMPANY' AND e.sourceID STARTS WITH 'Paradise Papers'\\nRETURN e.name, e.node_id, e.incorporation_date, e.jurisdiction, e.jurisdiction_description"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"User\": {\n \"properties\": {\n \"betweenness\": \"FLOAT\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"following\": \"INTEGER\",\n \"profile_image_url\": \"STRING\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\",\n \"url\": \"STRING\",\n \"statuses\": \"INTEGER\"\n }\n },\n \"Me\": {\n \"properties\": {\n \"profile_image_url\": \"STRING\",\n \"betweenness\": \"FLOAT\",\n \"following\": \"INTEGER\",\n \"url\": \"STRING\",\n \"location\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"screen_name\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Tweet\": {\n \"properties\": {\n \"created_at\": \"DATE_TIME\",\n \"id\": \"INTEGER\",\n \"id_str\": \"STRING\",\n \"text\": \"STRING\",\n \"favorites\": \"INTEGER\",\n \"import_method\": \"STRING\"\n }\n },\n \"Hashtag\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Link\": {\n \"properties\": {\n \"url\": \"STRING\"\n }\n },\n \"Source\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"User\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"User\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"SIMILAR_TO\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"FOLLOWS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"POSTS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"INTERACTS_WITH\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"RT_MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Me\",\n \"type\": \"AMPLIFIES\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"MENTIONS\",\n \"to\": \"Me\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"USING\",\n \"to\": \"Source\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"TAGS\",\n \"to\": \"Hashtag\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"CONTAINS\",\n \"to\": \"Link\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"RETWEETS\",\n \"to\": \"Tweet\"\n },\n {\n \"from\": \"Tweet\",\n \"type\": \"REPLY_TO\",\n \"to\": \"Tweet\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the first 3 users that a specific user identified by screen name 'neo4j' follows?"}, {"role": "assistant", "content": "MATCH (me:Me {screen_name: 'neo4j'})-[:FOLLOWS]->(user:User)\\nRETURN user.screen_name\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "List the top 5 streams by total view count that have a team associated with them."}, {"role": "assistant", "content": "MATCH (s:Stream)-[:HAS_TEAM]->(:Team)\\nWHERE s.total_view_count IS NOT NULL\\nRETURN s.name AS stream_name, s.total_view_count AS total_views\\nORDER BY s.total_view_count DESC\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the properties of nodes that are 3 hops away from Categories with category_id equal to 978aee6db23fc939cec71ac05eb15b7a!"}, {"role": "assistant", "content": "MATCH (a:Categories)-[*3]->(n)\\nWHERE a.category_id = '978aee6db23fc939cec71ac05eb15b7a'\\nRETURN properties(n) AS props"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "What is the average number of properties per node connected to Categories for which category_id is 088fbf884bd7c6533956a45531b362b7!"}, {"role": "assistant", "content": "MATCH (a:Categories{category_id:'088fbf884bd7c6533956a45531b362b7'})-[r]->(n)\\nRETURN AVG(SIZE(keys(n))) AS AvgProps"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Keyword\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Keyword\",\n \"type\": \"HAS_TOPIC\",\n \"to\": \"Topic\"\n }\n ]\n}"}, {"role": "user", "content": "Fetch five Keyword that are not linked through HAS_TOPIC relationships!"}, {"role": "assistant", "content": "MATCH (p:Keyword)\\nWHERE NOT EXISTS ((p)-[:HAS_TOPIC]->())\\nRETURN p\\nLIMIT 5"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"article_id\": \"INTEGER\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find all nodes directly connected to the Article that has article_id 1069!"}, {"role": "assistant", "content": "MATCH path=(:Article {article_id:'1069'})-->()\\nRETURN path"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Document\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"document_type_code\": \"STRING\",\n \"response_received_date\": \"STRING\",\n \"document_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"sent_date\": \"STRING\"\n }\n },\n \"ProjectStaff\": {\n \"properties\": {\n \"date_from\": \"STRING\",\n \"role_code\": \"STRING\",\n \"date_to\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"staff_id\": \"FLOAT\"\n }\n },\n \"OrganisationType\": {\n \"properties\": {\n \"organisation_type_description\": \"STRING\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"Organisation\": {\n \"properties\": {\n \"organisation_details\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"organisation_type\": \"STRING\"\n }\n },\n \"ResearchOutcome\": {\n \"properties\": {\n \"outcome_description\": \"STRING\",\n \"outcome_code\": \"STRING\"\n }\n },\n \"ResearchStaff\": {\n \"properties\": {\n \"employer_organisation_id\": \"INTEGER\",\n \"staff_details\": \"STRING\",\n \"staff_id\": \"INTEGER\"\n }\n },\n \"Grant\": {\n \"properties\": {\n \"other_details\": \"STRING\",\n \"grant_amount\": \"FLOAT\",\n \"grant_start_date\": \"STRING\",\n \"organisation_id\": \"INTEGER\",\n \"grant_id\": \"INTEGER\",\n \"grant_end_date\": \"STRING\"\n }\n },\n \"Task\": {\n \"properties\": {\n \"task_details\": \"STRING\",\n \"project_id\": \"INTEGER\",\n \"task_id\": \"INTEGER\"\n }\n },\n \"ProjectOutcome\": {\n \"properties\": {\n \"outcome_code\": \"STRING\",\n \"project_id\": \"INTEGER\"\n }\n },\n \"Project\": {\n \"properties\": {\n \"project_id\": \"INTEGER\",\n \"organisation_id\": \"INTEGER\",\n \"project_details\": \"STRING\"\n }\n },\n \"DocumentType\": {\n \"properties\": {\n \"document_type_code\": \"STRING\",\n \"document_description\": \"STRING\"\n }\n },\n \"StaffRole\": {\n \"properties\": {\n \"role_description\": \"STRING\",\n \"role_code\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"Organisation\",\n \"type\": \"IS_A\",\n \"to\": \"OrganisationType\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"ResearchStaff\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Task\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Project\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Organisation\"\n },\n {\n \"from\": \"Project\",\n \"type\": \"BELONGS_TO\",\n \"to\": \"Task\"\n }\n ]\n}"}, {"role": "user", "content": "How many tasks are there?"}, {"role": "assistant", "content": "MATCH (n:Task)\\nRETURN count(n)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the `valid_until` date for the officer with `name` \"MOSSFON SUBSCRIBERS LTD.\"?"}, {"role": "assistant", "content": "MATCH (o:Officer {name: \"MOSSFON SUBSCRIBERS LTD.\"})\\nRETURN o.valid_until"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Stream\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"id\": \"STRING\",\n \"description\": \"STRING\",\n \"url\": \"STRING\",\n \"name\": \"STRING\",\n \"followers\": \"INTEGER\",\n \"total_view_count\": \"INTEGER\"\n }\n },\n \"Game\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n },\n \"Team\": {\n \"properties\": {\n \"createdAt\": \"DATE_TIME\",\n \"name\": \"STRING\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Stream\",\n \"type\": \"PLAYS\",\n \"to\": \"Game\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"HAS_TEAM\",\n \"to\": \"Team\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"Stream\",\n \"type\": \"VIP\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"CHATTER\",\n \"to\": \"User\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"Stream\"\n },\n {\n \"from\": \"User\",\n \"type\": \"MODERATOR\",\n \"to\": \"User\"\n }\n ]\n}"}, {"role": "user", "content": "How many streams have a followers to total view count ratio less than 0.01 and are moderated by a user who is also a VIP?"}, {"role": "assistant", "content": "MATCH (s:Stream)\\nWITH s, s.followers / toFloat(s.total_view_count) AS follower_view_ratio\\nWHERE follower_view_ratio < 0.01\\nMATCH (s)-[:MODERATOR]->(u:User)-[:VIP]->(s)\\nRETURN count(DISTINCT s)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the suppliers for the product with ID '3'?"}, {"role": "assistant", "content": "MATCH (p:Product {productID: '3'})-[:SUPPLIES]-(s:Supplier)\\nRETURN s"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which 3 keywords are most commonly associated with movies that have a budget less than 1 million dollars?"}, {"role": "assistant", "content": "MATCH (m:Movie)-[:HAS_KEYWORD]->(k:Keyword)\\nWHERE m.budget < 1000000\\nRETURN k.name, count(k) AS keyword_count\\nORDER BY keyword_count DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Report\": {\n \"properties\": {\n \"report_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "List the nodes that are connected to Report for which report_id is 45009bf7f2e3f4f275de6d92deab7b27, with their relationship types and count these types!"}, {"role": "assistant", "content": "MATCH (a:Report{report_id:'45009bf7f2e3f4f275de6d92deab7b27'})-[r]->(n)\\nRETURN n, TYPE(r) AS Relations, COUNT(r) AS Counts"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Business\": {\n \"properties\": {\n \"address\": \"STRING\",\n \"location\": \"POINT\",\n \"city\": \"STRING\",\n \"state\": \"STRING\",\n \"businessId\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"userId\": \"STRING\"\n }\n },\n \"Review\": {\n \"properties\": {\n \"date\": \"DATE\",\n \"text\": \"STRING\",\n \"stars\": \"FLOAT\",\n \"reviewId\": \"STRING\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Business\",\n \"type\": \"IN_CATEGORY\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"User\",\n \"type\": \"WROTE\",\n \"to\": \"Review\"\n },\n {\n \"from\": \"Review\",\n \"type\": \"REVIEWS\",\n \"to\": \"Business\"\n }\n ]\n}"}, {"role": "user", "content": "List all the reviews with a star rating below 3.5."}, {"role": "assistant", "content": "MATCH (r:Review)-[:REVIEWS]->(b:Business)\\nWHERE r.stars < 3.5\\nRETURN r.reviewId AS reviewId, r.text AS reviewText, r.stars AS starRating, b.name AS businessName"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Character\": {\n \"properties\": {\n \"centrality\": \"FLOAT\",\n \"book45PageRank\": \"FLOAT\",\n \"fastrf_embedding\": \"LIST\",\n \"book1BetweennessCentrality\": \"FLOAT\",\n \"book1PageRank\": \"FLOAT\",\n \"louvain\": \"INTEGER\",\n \"community\": \"INTEGER\",\n \"degree\": \"FLOAT\",\n \"name\": \"STRING\",\n \"pagerank\": \"FLOAT\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS45\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS1\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS3\",\n \"to\": \"Character\"\n },\n {\n \"from\": \"Character\",\n \"type\": \"INTERACTS2\",\n \"to\": \"Character\"\n }\n ]\n}"}, {"role": "user", "content": "Which characters have an INTERACTS45 relationship with a weight greater than 50?"}, {"role": "assistant", "content": "MATCH (c1:Character)-[r:INTERACTS45]->(c2:Character)\\nWHERE r.weight > 50\\nRETURN c1.name, c2.name"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"vote_count\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"title\": \"STRING\",\n \"poster_path\": \"STRING\",\n \"imdb_id\": \"STRING\",\n \"status\": \"STRING\",\n \"runtime\": \"FLOAT\",\n \"popularity\": \"FLOAT\",\n \"homepage\": \"STRING\",\n \"release_date\": \"DATE\",\n \"id\": \"INTEGER\",\n \"original_title\": \"STRING\",\n \"original_language\": \"STRING\"\n }\n },\n \"Language\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Country\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"name\": \"STRING\"\n }\n },\n \"Genre\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"ProductionCompany\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Collection\": {\n \"properties\": {\n \"name\": \"STRING\",\n \"id\": \"INTEGER\",\n \"backdrop_path\": \"STRING\",\n \"poster_path\": \"STRING\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"gender\": \"INTEGER\",\n \"profile_path\": \"STRING\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"User\": {\n \"properties\": {\n \"id\": \"INTEGER\"\n }\n },\n \"Keyword\": {\n \"properties\": {\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Video\": {\n \"properties\": {\n \"tagline\": \"STRING\",\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Adult\": {\n \"properties\": {\n \"average_vote\": \"FLOAT\",\n \"overview\": \"STRING\",\n \"revenue\": \"FLOAT\",\n \"poster_path\": \"STRING\",\n \"vote_count\": \"INTEGER\",\n \"title\": \"STRING\",\n \"release_date\": \"DATE\",\n \"status\": \"STRING\",\n \"budget\": \"INTEGER\",\n \"popularity\": \"FLOAT\",\n \"imdb_id\": \"STRING\",\n \"original_title\": \"STRING\",\n \"id\": \"INTEGER\",\n \"runtime\": \"FLOAT\",\n \"original_language\": \"STRING\",\n \"tagline\": \"STRING\",\n \"homepage\": \"STRING\"\n }\n },\n \"Package\": {\n \"properties\": {\n \"price\": \"FLOAT\",\n \"duration\": \"DURATION\",\n \"id\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n },\n \"Subscription\": {\n \"properties\": {\n \"expiresAt\": \"DATE_TIME\",\n \"id\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Movie\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Movie\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CAST_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"CREW_FOR\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"User\",\n \"type\": \"RATED\",\n \"to\": \"Video\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Video\",\n \"type\": \"IN_COLLECTION\",\n \"to\": \"Collection\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"ORIGINAL_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"SPOKEN_IN_LANGUAGE\",\n \"to\": \"Language\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_IN_COUNTRY\",\n \"to\": \"Country\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"IN_GENRE\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"PRODUCED_BY\",\n \"to\": \"ProductionCompany\"\n },\n {\n \"from\": \"Adult\",\n \"type\": \"HAS_KEYWORD\",\n \"to\": \"Keyword\"\n },\n {\n \"from\": \"Package\",\n \"type\": \"PROVIDES_ACCESS_TO\",\n \"to\": \"Genre\"\n },\n {\n \"from\": \"Subscription\",\n \"type\": \"FOR_PACKAGE\",\n \"to\": \"Package\"\n }\n ]\n}"}, {"role": "user", "content": "Which adult films have a homepage listed?"}, {"role": "assistant", "content": "MATCH (a:Adult)\\nWHERE a.homepage IS NOT NULL\\nRETURN a.title, a.homepage"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Customer\": {\n \"properties\": {\n \"other_customer_details\": \"STRING\",\n \"customer_name\": \"STRING\",\n \"date_became_customer\": \"STRING\",\n \"payment_method\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"CustomerAddress\": {\n \"properties\": {\n \"address_id\": \"INTEGER\",\n \"date_address_to\": \"STRING\",\n \"date_address_from\": \"STRING\",\n \"address_type\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n },\n \"OrderItem\": {\n \"properties\": {\n \"order_quantity\": \"STRING\",\n \"product_id\": \"INTEGER\",\n \"order_id\": \"INTEGER\"\n }\n },\n \"CustomerContactChannel\": {\n \"properties\": {\n \"contact_number\": \"STRING\",\n \"active_from_date\": \"STRING\",\n \"channel_code\": \"STRING\",\n \"customer_id\": \"INTEGER\",\n \"active_to_date\": \"STRING\"\n }\n },\n \"Product\": {\n \"properties\": {\n \"product_details\": \"STRING\",\n \"product_id\": \"INTEGER\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"zip_postcode\": \"STRING\",\n \"address_content\": \"STRING\",\n \"address_id\": \"INTEGER\",\n \"state_province_county\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"CustomerOrder\": {\n \"properties\": {\n \"order_details\": \"STRING\",\n \"order_date\": \"STRING\",\n \"order_id\": \"INTEGER\",\n \"order_status\": \"STRING\",\n \"customer_id\": \"INTEGER\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerContactChannel\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"BUYS\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"CustomerAddress\",\n \"type\": \"IS_AT\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"CustomerOrder\",\n \"type\": \"PLACED_BY\",\n \"to\": \"Customer\"\n },\n {\n \"from\": \"OrderItem\",\n \"type\": \"PART_OF\",\n \"to\": \"CustomerOrder\"\n }\n ]\n}"}, {"role": "user", "content": "Which city is post code 255 located in?"}, {"role": "assistant", "content": "MATCH (a:Address {zip_postcode:\"255\"})\\nRETURN a.city"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Country\": {\n \"properties\": {\n \"location\": \"POINT\",\n \"code\": \"STRING\",\n \"name\": \"STRING\",\n \"tld\": \"STRING\"\n }\n },\n \"Filing\": {\n \"properties\": {\n \"begin\": \"DATE_TIME\",\n \"end\": \"DATE_TIME\",\n \"originator_bank_id\": \"STRING\",\n \"sar_id\": \"STRING\",\n \"beneficiary_bank\": \"STRING\",\n \"filer_org_name_id\": \"STRING\",\n \"originator_bank_country\": \"STRING\",\n \"beneficiary_bank_country\": \"STRING\",\n \"filer_org_name\": \"STRING\",\n \"originator_iso\": \"STRING\",\n \"beneficiary_bank_id\": \"STRING\",\n \"origin_lat\": \"STRING\",\n \"origin_lng\": \"STRING\",\n \"end_date_format\": \"STRING\",\n \"begin_date_format\": \"STRING\",\n \"originator_bank\": \"STRING\",\n \"beneficiary_lat\": \"STRING\",\n \"beneficiary_iso\": \"STRING\",\n \"beneficiary_lng\": \"STRING\",\n \"begin_date\": \"STRING\",\n \"id\": \"STRING\",\n \"end_date\": \"STRING\",\n \"amount\": \"INTEGER\",\n \"number\": \"INTEGER\"\n }\n },\n \"Entity\": {\n \"properties\": {\n \"id\": \"STRING\",\n \"location\": \"POINT\",\n \"name\": \"STRING\",\n \"country\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Filing\",\n \"type\": \"BENEFITS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"CONCERNS\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Filing\",\n \"type\": \"ORIGINATOR\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"FILED\",\n \"to\": \"Filing\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"COUNTRY\",\n \"to\": \"Country\"\n }\n ]\n}"}, {"role": "user", "content": "What is the date of the earliest filing in the database?"}, {"role": "assistant", "content": "MATCH (f:Filing)\\nRETURN min(f.begin) AS earliestFilingDate"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Entity\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"ibcRUC\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"service_provider\": \"STRING\",\n \"address\": \"STRING\",\n \"inactivation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"status\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"original_name\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"name\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"former_name\": \"STRING\",\n \"company_type\": \"STRING\",\n \"tax_stat_description\": \"STRING\",\n \"note\": \"STRING\",\n \"dorm_date\": \"STRING\",\n \"type\": \"STRING\",\n \"closed_date\": \"STRING\",\n \"company_number\": \"STRING\",\n \"comments\": \"STRING\",\n \"entity_number\": \"STRING\"\n }\n },\n \"Intermediary\": {\n \"properties\": {\n \"countries\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"status\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"internal_id\": \"STRING\",\n \"registered_office\": \"STRING\"\n }\n },\n \"Officer\": {\n \"properties\": {\n \"valid_until\": \"STRING\",\n \"name\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"lastEditTimestamp\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"countries\": \"STRING\",\n \"note\": \"STRING\"\n }\n },\n \"Address\": {\n \"properties\": {\n \"original_address\": \"STRING\",\n \"lastEditTimestamp\": \"STRING\",\n \"countries\": \"STRING\",\n \"address\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"icij_id\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"sourceID\": \"STRING\",\n \"country_codes\": \"STRING\",\n \"name\": \"STRING\",\n \"addressID\": \"STRING\",\n \"country_code\": \"STRING\",\n \"country\": \"STRING\"\n }\n },\n \"Other\": {\n \"properties\": {\n \"lastEditTimestamp\": \"STRING\",\n \"incorporation_date\": \"STRING\",\n \"struck_off_date\": \"STRING\",\n \"jurisdiction\": \"STRING\",\n \"jurisdiction_description\": \"STRING\",\n \"valid_until\": \"STRING\",\n \"sourceID\": \"STRING\",\n \"name\": \"STRING\",\n \"type\": \"STRING\",\n \"node_id\": \"INTEGER\",\n \"closed_date\": \"STRING\",\n \"note\": \"STRING\",\n \"countries\": \"STRING\",\n \"country_codes\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Entity\",\n \"type\": \"same_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_company_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Entity\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"intermediary_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Intermediary\",\n \"type\": \"same_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"officer_of\",\n \"to\": \"Other\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"similar\",\n \"to\": \"Intermediary\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Officer\",\n \"type\": \"same_id_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Address\",\n \"type\": \"same_as\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"registered_address\",\n \"to\": \"Address\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"connected_to\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Entity\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Officer\"\n },\n {\n \"from\": \"Other\",\n \"type\": \"same_name_as\",\n \"to\": \"Other\"\n }\n ]\n}"}, {"role": "user", "content": "What is the most common country for entities that have been struck off?"}, {"role": "assistant", "content": "MATCH (e:Entity)\\nWHERE e.struck_off_date IS NOT NULL\\nWITH e.countries AS country, count(*) AS count\\nRETURN country, count\\nORDER BY count DESC\\nLIMIT 1"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n },\n \"Article\": {\n \"properties\": {\n \"title\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "How many paths are there between Author where author_id is a7193c11b0713ccfbb34c90cf18d3e5f and Article, for which title equals Failure of Brown representability in derived categories?"}, {"role": "assistant", "content": "MATCH p=(a:Author{author_id:'a7193c11b0713ccfbb34c90cf18d3e5f'})-[*]->(d:Article{title:'Failure of Brown representability in derived categories'})\\nRETURN count(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Article\": {\n \"properties\": {\n \"comments\": \"STRING\"\n }\n },\n \"DOI\": {\n \"properties\": {}\n }\n },\n \"relationships\": [\n {\n \"from\": \"Article\",\n \"type\": \"HAS_DOI\",\n \"to\": \"DOI\"\n }\n ]\n}"}, {"role": "user", "content": "Which nodes have a common property with Article where comments is 44 pages and are HAS_DOI linked to a DOI?"}, {"role": "assistant", "content": "MATCH (a:Article {comments:'44 pages'})-[r:HAS_DOI]->(b:DOI)\\nWHERE ANY(key IN keys(a)\\nWHERE a[key] = b[key])\\nRETURN b"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Product\": {\n \"properties\": {\n \"productName\": \"STRING\",\n \"quantityPerUnit\": \"STRING\",\n \"unitsOnOrder\": \"INTEGER\",\n \"supplierID\": \"STRING\",\n \"productID\": \"STRING\",\n \"discontinued\": \"BOOLEAN\",\n \"categoryID\": \"STRING\",\n \"reorderLevel\": \"INTEGER\",\n \"unitsInStock\": \"INTEGER\",\n \"unitPrice\": \"FLOAT\"\n }\n },\n \"Category\": {\n \"properties\": {\n \"picture\": \"STRING\",\n \"categoryID\": \"STRING\",\n \"description\": \"STRING\",\n \"categoryName\": \"STRING\"\n }\n },\n \"Supplier\": {\n \"properties\": {\n \"companyName\": \"STRING\",\n \"contactName\": \"STRING\",\n \"homePage\": \"STRING\",\n \"phone\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"fax\": \"STRING\",\n \"supplierID\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Customer\": {\n \"properties\": {\n \"fax\": \"STRING\",\n \"companyName\": \"STRING\",\n \"customerID\": \"STRING\",\n \"phone\": \"STRING\",\n \"contactName\": \"STRING\",\n \"contactTitle\": \"STRING\",\n \"region\": \"STRING\",\n \"address\": \"STRING\",\n \"postalCode\": \"STRING\",\n \"country\": \"STRING\",\n \"city\": \"STRING\"\n }\n },\n \"Order\": {\n \"properties\": {\n \"shipName\": \"STRING\",\n \"requiredDate\": \"STRING\",\n \"shipCity\": \"STRING\",\n \"employeeID\": \"STRING\",\n \"shipPostalCode\": \"STRING\",\n \"shippedDate\": \"STRING\",\n \"freight\": \"STRING\",\n \"orderDate\": \"STRING\",\n \"orderID\": \"STRING\",\n \"shipAddress\": \"STRING\",\n \"customerID\": \"STRING\",\n \"shipCountry\": \"STRING\",\n \"shipVia\": \"STRING\",\n \"shipRegion\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Product\",\n \"type\": \"PART_OF\",\n \"to\": \"Category\"\n },\n {\n \"from\": \"Supplier\",\n \"type\": \"SUPPLIES\",\n \"to\": \"Product\"\n },\n {\n \"from\": \"Customer\",\n \"type\": \"PURCHASED\",\n \"to\": \"Order\"\n },\n {\n \"from\": \"Order\",\n \"type\": \"ORDERS\",\n \"to\": \"Product\"\n }\n ]\n}"}, {"role": "user", "content": "Who are the top 3 customers based on the number of orders placed?"}, {"role": "assistant", "content": "MATCH (c:Customer)-[:PURCHASED]->(o:Order)\\nRETURN c.companyName, count(o) AS NumberOfOrders\\nORDER BY NumberOfOrders DESC\\nLIMIT 3"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"student\": {\n \"properties\": {\n \"stuid\": \"STRING\",\n \"lname\": \"STRING\",\n \"fname\": \"STRING\",\n \"age\": \"STRING\",\n \"sex\": \"STRING\",\n \"major\": \"STRING\",\n \"advisor\": \"STRING\",\n \"city_code\": \"STRING\"\n }\n },\n \"has_pet\": {\n \"properties\": {\n \"stuid\": \"STRING\",\n \"petid\": \"STRING\"\n }\n },\n \"pets\": {\n \"properties\": {\n \"petid\": \"STRING\",\n \"pettype\": \"STRING\",\n \"pet_age\": \"STRING\",\n \"weight\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the id and weight of all pets whose age is older than 1."}, {"role": "assistant", "content": "MATCH (pets:Pets)\\nWHERE pets.pet_age > 1\\nRETURN pets.PetID,pets.weight"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Movie\": {\n \"properties\": {\n \"title\": \"STRING\",\n \"votes\": \"INTEGER\",\n \"tagline\": \"STRING\",\n \"released\": \"INTEGER\"\n }\n },\n \"Person\": {\n \"properties\": {\n \"born\": \"INTEGER\",\n \"name\": \"STRING\"\n }\n }\n },\n \"relationships\": [\n {\n \"from\": \"Person\",\n \"type\": \"ACTED_IN\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"DIRECTED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"PRODUCED\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"WROTE\",\n \"to\": \"Movie\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"FOLLOWS\",\n \"to\": \"Person\"\n },\n {\n \"from\": \"Person\",\n \"type\": \"REVIEWED\",\n \"to\": \"Movie\"\n }\n ]\n}"}, {"role": "user", "content": "How many people have acted in 'Something's Gotta Give'?"}, {"role": "assistant", "content": "MATCH (p:Person)-[:ACTED_IN]->(m:Movie {title: \"Something's Gotta Give\"})\\nRETURN count(p) AS NumberOfActors"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Topic\": {\n \"properties\": {\n \"description\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"last_name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Topic where description is Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts. and Author, with last_name equal Warnaar, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Topic{description:'Study of mathematical structures called categories, characterized by objects and morphisms that relate them, with emphasis on reductions and indecomposability concepts.'})-[*]-(e:Author{last_name:'Warnaar'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Categories\": {\n \"properties\": {\n \"category_id\": \"STRING\"\n }\n },\n \"Author\": {\n \"properties\": {\n \"author_id\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Find the shortest path between Categories where category_id is 4b7053a7def1fb0250a0e83ebd2f9a7b and Author, with author_id equal fd6fcf9374c7e5fd0377800da5e8f846, including the nodes on the path!"}, {"role": "assistant", "content": "MATCH p=shortestPath((a:Categories{category_id:'4b7053a7def1fb0250a0e83ebd2f9a7b'})-[*]-(e:Author{author_id:'fd6fcf9374c7e5fd0377800da5e8f846'}))\\nRETURN nodes(p)"}]} {"messages": [{"role": "system", "content": "{\n \"nodes\": {\n \"Journal\": {\n \"properties\": {\n \"name\": \"STRING\"\n }\n }\n }\n}"}, {"role": "user", "content": "Enumerate the properties of nodes that are either directly or indirectly connected to Journal for which name is Izv. Math!"}, {"role": "assistant", "content": "MATCH (a:Journal{name:'Izv. Math'})-[*]->(n)\\nRETURN DISTINCT properties(n) AS Properties"}]}